[3.0.3] Viewforum php error after auto update from 3.0.2 !

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators


[3.0.3] Viewforum php error after auto update from 3.0.2 !

Postby GoBieN » Sun Nov 30, 2008 8:28 pm

Your board's URL: http://www.camino-tuning.be
Version of phpBB3: 3.0.3
Was this a fresh install or a(n) update/upgrade/conversion (please be specific)? update from 3.0.2
If update, what package(s) did you use? auto-update from phpBB.nl
Did you use an automated wizard provided by your host to install phpBB? no
MODs you have installed: mods-db, gallery, seo, language, ...
When the problem started: after update from 3.0.2
Your level of expertise (be honest): 5 years of experience running phpBB and applying updates & mods, some self learned basic php knowledge.

Additionally, you may wish to provide the following (where applicable)
Template(s) used: only prosilver
Language(s) used: NL,EN
Version of PHP used: PHP Version 4.3.9
Database and version used: mysql 4.1.20


Hello there,

I hope anyone can help me with my problem. The problem started after update from 3.0.2 to 3.0.3
Every time i try to view a forum i get an error:
Code: Select all
Parse error: parse error, unexpected $ in /var/www/vhosts/camino-tuning.be/httpdocs/phpBB3/cache/tpl_prosilver_viewforum_body.html.php on line 171

If i purge general cache, i get a different error the 1st time i try to view the page again.
Code: Select all
Parse error: parse error, unexpected $ in /var/www/vhosts/camino-tuning.be/httpdocs/phpBB3/includes/template.php(187) : eval()'d code on line 171


I have looked at the viewforum.php and viewforum_body.html file but do not see any error with my limited knowledge. The files are copy/paste beneath.

Please assist !

styles/prosilver/template/viewforum_body.html:
[mod]Too much code, please post a zip file[/mod]

viewforum.php:
[mod]Too much code, please post a zip file[/mod]

ps: I have the same topic running on phpbb.com support forums.
GoBieN
PR0
PR0
 
Posts: 92
Joined: Mon Mar 10, 2008 7:12 pm
Location: Belgium

Advertisement

Postby GoBieN » Sun Nov 30, 2008 9:46 pm

GoBieN wrote:
Erik Frèrejean wrote:In the specified template file you open two if statements, but you never close them:
Code: Select all
<!-- IF GYM_LINKS --><h3>{GYM_HTML_FORUM_NEWS_LINK} {GYM_HTML_FORUM_MAP_LINK} {GYM_RSS_FORUM_LINK}<!-- IF (TOTAL_PAGES * PER_PAGE) gt GYM_GOOGLE_THRESOLD --> {GYM_GOOGLE_FORUM_LINK}<!

It also looks like you're missing a closing h3. I think restoring this part will fix you're error

Dear Erik, thank you so much. I must have been sleeping, when reviewing the viewforum_body file.
That linke you mentioned should have been much longer, something must have goon wrong in updating the file.
Now i fixed that line, with the one from the install.xml file and errors have gone away.

Thank you very much for helping.
regards

I believe this error in updating is caused by the fact that when updating the GYM mod to RC2 i was suggested a few code changes. However the lines were not breaked and the width of the page was not sufficient the get the full lines of code.
Maybe something to fix in the next version.
GoBieN
PR0
PR0
 
Posts: 92
Joined: Mon Mar 10, 2008 7:12 pm
Location: Belgium

Postby SeO » Mon Dec 01, 2008 9:44 am

Erik is right, the full line there should be :
Code: Select all
<!-- IF GYM_LINKS --><h3>{GYM_HTML_FORUM_NEWS_LINK} {GYM_HTML_FORUM_MAP_LINK} {GYM_RSS_FORUM_LINK}<!-- IF (TOTAL_PAGES * PER_PAGE) gt GYM_GOOGLE_THRESOLD --> {GYM_GOOGLE_FORUM_LINK}<!-- ENDIF --></h3><!-- ENDIF -->


Should work when you update this part.

Something that can help in such cases is to open the cached compiled template, phpBB3/cache/tpl_prosilver_viewforum_body.html.php in this case.
Sometime it's easier to find the error (here a missing bracket "}").
SeO
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 5527
Joined: Wed Mar 15, 2006 9:41 pm

Postby GoBieN » Mon Dec 01, 2008 7:00 pm

SeO wrote:Erik is right, the full line there should be :
Code: Select all
<!-- IF GYM_LINKS --><h3>{GYM_HTML_FORUM_NEWS_LINK} {GYM_HTML_FORUM_MAP_LINK} {GYM_RSS_FORUM_LINK}<!-- IF (TOTAL_PAGES * PER_PAGE) gt GYM_GOOGLE_THRESOLD --> {GYM_GOOGLE_FORUM_LINK}<!-- ENDIF --></h3><!-- ENDIF -->


Should work when you update this part.

Something that can help in such cases is to open the cached compiled template, phpBB3/cache/tpl_prosilver_viewforum_body.html.php in this case.
Sometime it's easier to find the error (here a missing bracket "}").

I tried opening the cache file but the owner of the cache files is apache and the rights are set to 600, so i cannot read the file.

I have already fixed that line, but i gave some advice to you abouthe installer not breaking the lines and the width being fixed. That's what caused this error of mine.
GoBieN
PR0
PR0
 
Posts: 92
Joined: Mon Mar 10, 2008 7:12 pm
Location: Belgium


Return to Advanced SEO URL




Who is online

Users browsing this forum: No registered users and 7 guests