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
suprise
Registered User
Posts: 10
Joined: Sat Mar 27, 2004 4:53 pm

Post by suprise »

Parse error: parse error in /home/httpd/vhosts/freepgs.com/httpdocs/suprise/phpBB2/install/install.php on line 297 don't know what to do!
User avatar
eezee
Registered User
Posts: 27
Joined: Fri Feb 06, 2004 11:31 pm
Location: Wash DC
Contact:

Post by eezee »

when trying to restore db:
Error importing backup file

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '

Powered by phpBB 2.0.6 © 2001 phpBB Group


seems like it should be something real simple. but no matter what i do i cant seem to find out whats wrong
neonnekoami
Registered User
Posts: 7
Joined: Sun May 02, 2004 6:44 am

Post by neonnekoami »

I'm currently plagued with a similar problem (already have a thread for it, but haven't recieved much of a solution yet);
Parse error: parse error, unexpected '=', expecting ',' or ')' in /usr/local/apache/htdocs/phpBB2/includes/functions.php on line 331

Fatal error: Call to undefined function: encode_ip() in /usr/local/apache/htdocs/phpBB2/common.php on line 155


Tried reuploading both the files in question, no dice. And to the best of my knowledge, my host hasn't upgraded the version of php I'm running. Any ideas?
firedragon064
Registered User
Posts: 4
Joined: Sun Aug 29, 2004 11:20 am

Post by firedragon064 »

Warning: Unknown(): open_basedir restriction in effect. File(/usr/home/thereco/public_html/phpBB2/install/install.php) is not within the allowed path(s): (/usr/home/lgserver/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/usr/home/thereco/public_html/phpBB2/install/install.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening '/usr/home/thereco/public_html/phpBB2/install/install.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown

is wat i get via cpanel or not
anakinvader
Registered User
Posts: 1
Joined: Wed Sep 08, 2004 7:48 pm

Post by anakinvader »

how do you insert a style or template in a preinstalled phpbb template
boetel4
Registered User
Posts: 2
Joined: Thu Sep 16, 2004 6:01 am

Post by boetel4 »

Is this an error that falls under the category of contacting my host?

Parse error: parse error, unexpected $end, expecting ')' in C:\Accounts\totalweb\wwwRoot\bbinnkeeper\admin\admin_forums.php on line 1004

This error comes up when I try to access the Admin area...it's in the left pane where I'm assuming the various Admin options would be.

Thanks!
kirksite
Registered User
Posts: 1
Joined: Tue Aug 12, 2003 12:17 am
Contact:

Post by kirksite »

I have recently uploaded my back-up forum onto the server. The Home, FAQ, Memberlist, Usergroup ,Register and Profile features work fine but the Search and Log in to check your PM's does not. Can not search for posts by a given user or send a PM. Errors given;

Parse error: parse error, unexpected $ in /home/special/public_html/forums/search.php on line 1367

Parse error: parse error, unexpected $, expecting ')' in /home/special/public_html/forums/privmsg.php on line 2062

Any suggestions?
mjr856
Registered User
Posts: 8
Joined: Tue Jan 25, 2005 6:32 pm
Contact:

Post by mjr856 »

I get an error just trying to view the forum...

Parse error: parse error, unexpected T_DOUBLE_ARROW in /nfs/cust/2/26/06/560622/web/forum/index.php on line 314

that make any sense to anyone?
espresso shot
Registered User
Posts: 1
Joined: Sat Jan 29, 2005 6:35 pm
Location: world
Contact:

Post by espresso shot »

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /home/faithmag/public_html/forum/viewtopic.php on line 487

^i'm receiving this error only when trying to read topics. i am able to view private messages, and the index for each forum. i'm stumped.

any suggestions?
oatsy
Registered User
Posts: 5
Joined: Fri Feb 04, 2005 9:53 am

Post by oatsy »

You can get parse errors if there are stray ...

<!-- BEGIN -->
or
<!-- END -->

type line in your files.

It happens occasionally especially if you have applied any mods to your board. Try doing a search in the relevant files for '<!--' and see if you can spot any 'BEGIN' lines that don't have a corresponding 'END' line for example. If you do find any you aren't sure about try deleting them (back up the file first!).
justron
Registered User
Posts: 4
Joined: Sun Mar 06, 2005 10:16 pm
Location: fiji
Contact:

template.php(127) : eval()'d code on line 190

Post by justron »

Anybody got a solution for this......................

Parse error: parse error, unexpected $ in /home/httpd/vhosts/fijilive.com/httpdocs/forum/includes/template.php(127) : eval()'d code on line 190

:arrow:
ron
Kane Mitchells
Registered User
Posts: 3
Joined: Tue Mar 15, 2005 8:09 pm

Post by Kane Mitchells »

Anyone can help me?

Warning: main(): open_basedir restriction in effect. File(./../extension.inc) is not within the allowed path(s): (.) in /home/www/ifelipe/telperion.dreams.ro/forum/install/install.php on line 297

Warning: main(./../extension.inc): failed to open stream: Operation not permitted in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 297

Warning: main(): Failed opening './../extension.inc' for inclusion (include_path='.:/usr/local/sys_php_module/lib/php') in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 297

Warning: main(): open_basedir restriction in effect. File(./../includes/constants.) is not within the allowed path(s): (.) in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 305

Warning: main(./../includes/constants.): failed to open stream: Operation not permitted in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 305

Warning: main(): Failed opening './../includes/constants.' for inclusion (include_path='.:/usr/local/sys_php_module/lib/php') in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 305

Warning: main(): open_basedir restriction in effect. File(./../includes/functions.) is not within the allowed path(s): (.) in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 306

Warning: main(./../includes/functions.): failed to open stream: Operation not permitted in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 306

Warning: main(): Failed opening './../includes/functions.' for inclusion (include_path='.:/usr/local/sys_php_module/lib/php') in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 306

Warning: main(): open_basedir restriction in effect. File(./../includes/sessions.) is not within the allowed path(s): (.) in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 307

Warning: main(./../includes/sessions.): failed to open stream: Operation not permitted in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 307

Warning: main(): Failed opening './../includes/sessions.' for inclusion (include_path='.:/usr/local/sys_php_module/lib/php') in /home/www/...../telperion.dreams.ro/forum/install/install.php on line 307
dante16191
Registered User
Posts: 3
Joined: Mon Apr 11, 2005 4:03 pm

Urgent help needed

Post by dante16191 »

Hey everyone,

Been trying to get my forum up for ages now, just had my server changed over to linux so i could get php my admin on it and i get to the install page and enter all the details as usall and i just keep getting these error messages driving me insaign someone please help!

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/fhlinux200/h/hellandbackagain.com/user/htdocs/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/fhlinux200/h/hellandbackagain.com/user/htdocs/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/fhlinux200/h/hellandbackagain.com/user/htdocs/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database

:?: :?: :?: :?: :?:

Details i put in:

Default board language: English
Database Type: mysql4
server hostname: local host
database name: hellandback
database user: *******
password;********
server port 80
script path: i dont know what to put here..... :?:


Someone please help me i would greatfully apreciate it! thanks!
mistakeprone
Registered User
Posts: 18
Joined: Tue Jun 01, 2004 5:42 pm

Post by mistakeprone »

I am seeing a very similar set of error messages. This started within the last few hours. :-?
Warning: mysql_connect(): Too many connections in /home/hostname/public_html/forum/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/hostname/public_html/forum/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/hostname/public_html/forum/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database

I'm contacting the webhosting company.
mistakeprone
Registered User
Posts: 18
Joined: Tue Jun 01, 2004 5:42 pm

Post by mistakeprone »

I contacted my hosting company, and they fixed the problem. (They didn't tell me what it was. ;-) )
Locked

Return to “2.0.x Support Forum”