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 Technologies

mysql -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

Comments

  • 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.
  • Thanks for the suggestion. Had to reinstall php and mysql library to fix after someone had run subversion on it.
    cheers
Sign In or Register to comment.