This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Undefined variable page_id
#1

Hello

I don't know if it's a bug or not but yesterday I've upgraded to version 3.0 and after finishing all te setup I've noticed that the script generates some errors.
Whatever if a page has comments or not I'm getting this notice (error):
Quote:PHP Notice:  Undefined variable: page_id in /comment/frontend/view/default/template/part/notify.tpl on line 80

What is the cause? Should I move on with the upgrade of v3.1? Huh  

Thank you for your answer.
Reply
#2

That's a strange one. Are there any other errors or only that?

Do you have a corresponding page in the admin area in 'Manage -> Pages'?

If you PM me a link to your page I'd be happy to look into it further.

Anyway yes it's fine to continue with the upgrade to v3.1.

Have you completed the interview?
Reply
#3

No other errors. Only that kind of one, but dozens of it. Every time somebody visits a page with the script integrated in it generates this error. I've sent a PM with the page link.
Reply
#4

Okay, it's hard to tell from your site. I'd try upgrading to v3.1 first. If anything it will fix at least another issue I noticed.

If, after upgrading, the problem continues, add this as a temporary solution at the top of the notify.tpl file.

PHP Code:
<?php
if (!isset($page_id)) {
$page_id = 0;
}
?>

Have you completed the interview?
Reply
#5

I saw the comment you made at the page. What can I make to help you identify the source of the problem? Tomorrow I'll upgrade to v3.1 and recheck the errors. If I have something new I'll post it.
Thanks for your help.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
18-Jan-2017, 12:32 PM
Last Post by utaka
20-Dec-2010, 09:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)