Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 27
Total Posts: 110
Posted 04/28/08 - 05:10 AM:
#1
Hi,
I get the following errors on my comments page after upgrade. I don't know if it;s as I haven't done the manual updates yet after the auto upgrade but thought I should mention it in case:
If you are not the administrator of this site, please report this page to the administrator. If you are the administrator, please pay careful attention: You have a parse error in your template templates/default/viewcomments.tpl (or perhaps in your header or footer) which you need to repair before this page can be displayed correctly. The error is picked up on by php at line 444 of the output.Line #439: <?php } else { ?> Line #440: <?php if (0) { ?> Line #441: <p>This thread is closed, so you cannot post a reply.</p> Line #442: <?php } else { ?> Line #443: <p><?php echo str_replace('{PLACEHOLDER}', 'to post', 'Sorry, you don't have permission {PLACEHOLDER}. <?php if (0) { ?><a href="http://www.accommodation-uk.net/index.php?action=userlogin">Log in</a>, or <a href="http://www.accommodation-uk.net/register.php">register</a> if you haven't yet.<?php } ?>'); ?></p> Line #444: <?php if (0 || 0) { ?>
Note that the line of the output is not necessarily the same line number in your template... just look for a similar looking area. The source of your error is probably not on line 444 itself, but most likely a line or two before it. Check your code carefully for syntax mistakes. If you cannot recognize one, copy and paste this output into a thread on the support forum. Now outputing the page without any conditional or php sections evaluated: <"text/javascript" src="http://www.accommodation-uk.net/templates/default/javascriptheader.js"> onload="load()" onunload="GUnload()">
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/30/08 - 01:38 AM:
#4
Waiting will just make the changes harder and harder, since it'll have applied half of them for you and you won't know which ones and your templates won't look as described anymore.