PHP Error No8 pg_title

PHP Error No8 pg_title, a forum discussion on Jojo CMS. Join us for more discussions on PHP Error No8 pg_title on our General Discussion forum.

Back to Forum Index : Back to General Discussion   RSS
MajorC

14 Jan 2011
Posts: 9

Hi,

since the first time I use your nice CMS I get every day this error report.


== PHP Error ==
14th Jan, 2011 07:52am
/homepages/23/d88237964/htdocs/jojo/plugins/jojo_article/jojo_article.php "Undefined index: pg_title" line 365
Error No: 8
Description: Undefined index: pg_title
File: /homepages/23/d88237964/htdocs/jojo/plugins/jojo_article/jojo_article.php
Line: 365
Url: http://www.hvfl.de/


I get this error multiple time in the report, all the same error.

Any idea?

THX,

Christian
MajorC

14 Jan 2011
Posts: 9

Is it possible, that my problem is a ü in the page title?
tom

Developer

tom

15 Jan 2011
Posts: 379

no - it just means that some pages don't have a title (usually only the login page) where the template was expecting one.
In the template, where it says {$pg_title} change it to {if $pg_title}{$pg_title}{/if}
MajorC

16 Jan 2011
Posts: 9

ok, now something new:


== PHP Error ==
16th Jan, 2011 07:19am
/homepages/23/d88237964/htdocs/jojo/plugins/jojo_article/jojo_article.php "Undefined index: pg_title" line 365
Error No: 8
Description: Undefined index: pg_title
File: /homepages/23/d88237964/htdocs/jojo/plugins/jojo_article/jojo_article.php
Line: 365
Url: http://www.hvfl.de/79/clubheim


Line 365 is:

$a['category'] = ($_CATEGORIES && !empty($a['pg_menutitle'])) ? $a['pg_menutitle'] : $a['pg_title'];
tom

Developer

tom

17 Jan 2011
Posts: 379

oh. right..
can you change that line to:
$a['category'] = $_CATEGORIES ? (!empty($a['pg_menutitle']) ? $a['pg_menutitle'] : $a['pg_title']) : '';


That bug is fixed in the current development version.
MajorC

17 Jan 2011
Posts: 9

thanks, I will give it a try and post my reply here... :-)
MajorC

20 Jan 2011
Posts: 9

Now we get something new:


== PHP Error ==
19th Jan, 2011 07:34am
/homepages/23/d88237964/htdocs/jojo/plugins/jojo_article/jojo_article.php "Uninitialized string offset: 0" line 458
Error No: 8
Description: Uninitialized string offset: 0
File: /homepages/23/d88237964/htdocs/jojo/plugins/jojo_article/jojo_article.php
Line: 458
Url: http://www.hvfl.de/aktuelles/22/osterlehrgang


Lien 458 is:

// For some reason the page url gets set wrong.
$smarty->assign('pg_url', $categorydata['pc_url']);
tom

Developer

tom

20 Jan 2011
Posts: 379

Sorry - another bug fixed in the current svn copy
$categorydata['pc_url']
should be
$categorydata['ac_url']
at least I think that's it, the current version of articlecategory doesn't use that field any more.
MajorC

20 Jan 2011
Posts: 9

good evening, or in your case good morning!

Thanks again for your help, I will check this out.

Greatings from Berlin, Germany

Christian
MajorC

25 Jan 2011
Posts: 9


== PHP Error ==
24th Jan, 2011 13:40pm
/homepages/23/d88237964/htdocs/jojo/plugins/jojo_article/jojo_article.php "Uninitialized string offset: 0" line 458
Error No: 8
Description: Uninitialized string offset: 0
File: /homepages/23/d88237964/htdocs/jojo/plugins/jojo_article/jojo_article.php
Line: 458
Url: http://www.hvfl.de/aktuelles/19/streckenflugseminar-am-20022011


Line 458 is now:

$smarty->assign('pg_url', $categorydata['ac_url']);
tom

Developer

tom

25 Jan 2011
Posts: 379

ah - this is why I got rid of all this in the current version :p
just delete the line altogether - it doesn't do anything that isn't already taken care of anyway.
MajorC

29 Jan 2011
Posts: 9

still going on, now something new:


== PHP Error ==
28th Jan, 2011 12:04pm
/homepages/23/d88237964/htdocs/jojo/plugins/jojo_core/classes/Jojo.php "unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 8147 of 8192 bytes" line 195
Error No: 8
Description: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 8147 of 8192 bytes
File: /homepages/23/d88237964/htdocs/jojo/plugins/jojo_core/classes/Jojo.php
Line: 195
Url: http://www.hvfl.de/63/webcam



== PHP Error ==
27th Jan, 2011 12:30pm
/homepages/23/d88237964/htdocs/jojo/plugins/jojo_core/classes/Jojo.php "unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 8188 of 8192 bytes" line 195
Error No: 8
Description: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 8188 of 8192 bytes
File: /homepages/23/d88237964/htdocs/jojo/plugins/jojo_core/classes/Jojo.php
Line: 195
Url: http://www.hvfl.de/images/menu_item_active_left.gif

tom

Developer

tom

1 Feb 2011
Posts: 379

That one I can't help you with - it seems to occur at random and I haven't worked out yet what causes it. It doesn't seem to cause any actual problems (apart from generating event log entries)
MajorC

1 Feb 2011
Posts: 9

Ok,

maybe it will fix by itself on Jojo 1.0.1.

Thanks for your help,

Christian
Back to Forum Index : Back to General Discussion   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.