fop2 phonebook failure
-
Hi all
My receptionists suddenly receive this error when trying to load phone book,
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/html/fop2/lib/dblib.php on line 4
I've checked my database is in place and readable by following other posts here,
php -v
PHP 4.3.9 (cgi) (built: Nov 30 2010 03:45:20)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologiesmysql -u root fop2 -e "desc visual_phonebook"
+-----------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| firstname | varchar(50) | YES | | NULL | |
| lastname | varchar(50) | YES | | NULL | |
| company | varchar(100) | YES | | NULL | |
| phone1 | varchar(25) | YES | | NULL | |
| phone2 | varchar(25) | YES | | NULL | |
| picture | varchar(100) | YES | | NULL | |
+-----------+--------------+------+-----+---------+----------------+Is there anything else I can check ?
cheers
nigel -
php 4? it is kind of unsupported, there is a version detection and a special library for php4, but it is not tested well. Perhaps you updated to a more recent php 4 and the version check is failing, and includes the php5 libraries and fails. Look at the config.php file and be sure to include the version 4 library files, I think you have dblib4.php instead of dblib.php, etc.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login