Message: Syntax error Line: 420 Char: 20 Code: 0 URI: http://wehavetomorrow.co.uk/user_home.php Can you spot it, cos' i can't? On and around line 420; PHP: {* BEGIN BIRTHDAYS*}{*-------------------*} <img class="right_block_hr" src="./images/hr.gif"> <div class="right_block_content"><b>{lang_print id=1176}</b></div> <div class="right_block_content"><div style="width:20px; float:left; margin-right:5px;"><img src='./images/icons/gift.gif' border='0' class='icon'/></div><div style="width:295px; float:left;"> {* SHOW UPCOMING BIRTHDAYS *} {section name=birthday_loop loop=$birthdays max=20} <div><a href='{$url->url_create('profile', $birthdays[birthday_loop].birthday_user_username)}'>{$birthdays[birthday_loop].birthday_user_displayname}</a> - {$datetime->cdate("M. d", $datetime->timezone($birthdays[birthday_loop].birthday_date, $global_timezone))}</div> {sectionelse} {lang_print id=1180} {/section}</div> </div>{*-------------------*} {* END BIRTHDAYS*}{* BEGIN BIRTHDAYS test*}{*-------------------*} <img class="right_block_hr" src="./images/hr.gif"> <div class="right_block_content"><b>Forums</b></div> <div class="right_block_content"><div style="width:20px; float:left; margin-right:5px;"><img src='./images/forum/icon_navbar_main.gif' border='0' class='icon'/></div><div style="width:295px; float:left;"><br><a href="index.php?">Click to Visit!</a></div> </div>{*-------------------*}
You need to supply the PHP source code so we can see what line 420 is. You are only giving us the interpreted results that the web page sees.
Actually, just an update. It's ot going to be caused by user_home because i noticed the same error appear on all pages. Then the file name changes but the line of error stays the same, so it is something more global. Any ideas? It could be anything really couldn't it.
It's telling you *exactly* where the syntax error is.. on line 420, character 20. (Of your Javascript.) Spot the missing value... You've also got countless CSS errors, but that's not a big thing. (e.g. can't parse expression()'s)
Looking at the 'global' code, i am being told by dreamweaver that these lines have a syntax error: These are the global, core lines. I am quite surprised these shown up as a error, do you see anything wrong? I actually think this might just be dreamweaver being weird as it wont understand the code..maybe? Apart from that, the error could be in any one of the many javascript files...or, as a newb...am i lost here and you know what file its in? Line A: PHP: <script type="text/javascript"><!-- var SocialEngine = new SocialEngineAPI.Base(); // Core SocialEngine.Core = new SocialEngineAPI.Core(); SocialEngine.Core.ImportSettings({$se_javascript->generateSettings($setting)}); SocialEngine.Core.ImportPlugins({$se_javascript->generatePlugins($global_plugins)}); SocialEngine.RegisterModule(SocialEngine.Core); // URL SocialEngine.URL = new SocialEngineAPI.URL(); SocialEngine.URL.ImportURLBase({$se_javascript->generateURLBase($url)}); SocialEngine.URL.ImportURLInfo({$se_javascript->generateURLInfo($url)}); SocialEngine.RegisterModule(SocialEngine.URL); // Language SocialEngine.Language = new SocialEngineAPI.Language(); SocialEngine.RegisterModule(SocialEngine.Language); // User - Viewer SocialEngine.Viewer = new SocialEngineAPI.User(); SocialEngine.Viewer.ImportUserInfo({$se_javascript->generateUserInfo($user)}); SocialEngine.RegisterModule(SocialEngine.Viewer); // User - Owner SocialEngine.Owner = new SocialEngineAPI.User(); SocialEngine.Owner.ImportUserInfo({$se_javascript->generateUserInfo($owner)}); SocialEngine.RegisterModule(SocialEngine.Owner); // Back SELanguage = SocialEngine.Language;//--></script>