Webmastersite.net
Register Log In

Error on comments page

Comments on Error on comments page

Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Apr 28, 2008 - 5:10 AM:

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) { ?>

[Load this template in your template editor]

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()">

on the above URL
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 28, 2008 - 7:55 PM:

Confirmed, will fix for alpha 4.
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Apr 29, 2008 - 2:37 AM:

Ok, I'll wait until the upgrade before making the manual changes.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 30, 2008 - 1:38 AM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.