Parse errors in template.php, sessions.php and mysql4.php

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
User avatar
zeroK
Former Team Member
Posts: 20964
Joined: Sun Jan 20, 2002 7:36 pm
Location: Klagenfurt / Austria
Contact:

Parse errors in template.php, sessions.php and mysql4.php

Post by zeroK »

There currently seems to be a problem with some hosts running cPanel and PHP 4.3.3. If you get the following erorrs ...

Code: Select all

Parse error: parse error in /.../includes/template.php on line 356 

Parse error: parse error in /.../includes/sessions.php on line 205 

Parse error: parse error in /.../db/mysql4.php on line 103 

Fatal error: Cannot instantiate non-existent class: sql_db in /.../includes/db.php on line 60
... please contact your host's support and make them aware of this problem :-) According to some reports downgrading or upgrading PHP can solve this problem.

For further details please read this topic:
http://www.phpbb.com/phpBB/viewtopic.php?t=162665

Note: Please keep in mind, that we don't support the cPanel installation of phpBB here. Please contact your host if you notice any problem with your installation.
Image My weblog | gamerslog.com | No support via PM or ICQ or email - If you don't know a term or a program mentioned in a post -> Google is your friend
Slow Joe
Registered User
Posts: 26
Joined: Thu Dec 11, 2003 9:48 pm

Post by Slow Joe »

Great information. I've sooo been there before.
Rebos
Registered User
Posts: 13
Joined: Tue Feb 03, 2004 2:51 am

Post by Rebos »

Would this be effecting installation process on phpbb also? I recently deleted all my sql and my files for my pbpBB board to reinstall a new one and here is what I get. Here is what I get when I attempt to do the install by typing mysite.com/forum/phpBB2.install/install.php .

Parse error: parse error in mysite.com/forum/phpBB2/install/install.php on line 813

My host is 1and1 if that helps.
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34459
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Post by A_Jelly_Doughnut »

No, it would not, as the installation isn't used on CPanel installed boards ;)
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
cazny
Registered User
Posts: 146
Joined: Wed Feb 11, 2004 3:53 am

Post by cazny »

what about this?

Parse error: parse error in /home/webmaste/public_html/viewtopic.php on line 422
wilff
Registered User
Posts: 32
Joined: Mon Mar 08, 2004 9:28 pm

Post by wilff »

Strange I've just had this parse error, so I reloaded an old viewtopic.php, wasnt this one updated recently....works ok again now??
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34459
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Post by A_Jelly_Doughnut »

Both of you: You probably b0rked something with the latest security fix (if you applied it)
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34459
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Post by A_Jelly_Doughnut »

Both of you: You probably b0rked something with the latest security fix (if you applied it)
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
Rebos
Registered User
Posts: 13
Joined: Tue Feb 03, 2004 2:51 am

Post by Rebos »

I figured out my problem in this case. Being first time I installed it I followed directions exactly. Second time was on easyphp so it was extremely easy. Then third I tried to install it like easyphp again. That's where my problem started. Needless to say I never messed with CHMOD. :oops:
User avatar
Mudwalker
Registered User
Posts: 5
Joined: Mon Feb 09, 2004 1:12 pm
Location: Virginia, USA
Contact:

Post by Mudwalker »

Does this error fall under this category?

Parse error: parse error in /..../..../..../..../gruntbunker.com/phpBB2/includes/bbcode.php(61) : eval()'d code on line 7

It only shows on one topic in my forum and I have searched this forum for information but have been unsuccessful.

How can I get this fixed? Would deleting the topic solve it?

Any advice would be greatly appreciated.
Scars will heal...Glory will fade...Freedom will Live
catfish109tc
Registered User
Posts: 4
Joined: Thu Mar 18, 2004 9:38 pm

Post by catfish109tc »

I have the same type of error, but on line 1 showing in one of my posts. I am curious as to what I can do to fix it.
catfish109tc
Registered User
Posts: 4
Joined: Thu Mar 18, 2004 9:38 pm

Post by catfish109tc »

Mudwalker,

Try re-uploading your bbcode.tpl file. I did it and the error message dissappeared.

Hope it works for you!
brianru
Registered User
Posts: 38
Joined: Mon Feb 23, 2004 12:30 pm
Location: NY
Contact:

Post by brianru »

i have also been having a parse error but one in my index.php file. Which is really annoying cause I can't access my forums at all! Sadly this is my 3rd. The others I have fixed by replacing the file with a new copy of it. Is this a bug that will be fixed in 2.2?
amagab
Registered User
Posts: 148
Joined: Sat Dec 13, 2003 12:29 am
Location: Toilet.SE
Contact:

Post by amagab »

I get the messag too but when trying to do a search:

Parse error: parse error in /usr/www/user/.../forum/search.php on line 692

Someone please help?

Below is code for lines above and below line 692:
(line 692 in red)

if ( $search_id )
{
$sql = "SELECT search_array
FROM " . SEARCH_TABLE . "
WHERE search_id = $search_id
AND session_id = '". $userdata['session_id'] . "'"
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql);
}

Thanks!
amagab
Registered User
Posts: 148
Joined: Sat Dec 13, 2003 12:29 am
Location: Toilet.SE
Contact:

Post by amagab »

Anyone?????? Need help with post right above this one. Thanks!

:?: :?:
Locked

Return to “2.0.x Support Forum”