Syntax error in functions.php - [Solved]
Posted: Mon Oct 04, 2010 2:07 am
All
A new installation of Zoneminder, version 1.24.2, using the Source Code on OpenSUSE 11.2
Have compiled and installed the software and the prerequisites. Created the DB and fired up Apache.
When I browse to the web page for the very first time it is blank and the following errors are generated in the Apache logs.
== /var/log/apache2/error_log ==
-Mon Oct 04 14:34:19 2010- -error- -client xxx.xxx.xxx.xxx- PHP Parse error: syntax error, unexpected $end in /srv/www/htdocs/includes/functions.php on line 2309
== /var/log/apache2/access_log ==
xxx.xxx.xxx.xxx - - -04/Oct/2010:14:34:19 +1300- "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100506 SUSE/3.5.10-0.1 Firefox/3.5.10"
The Apache start log entry is:
-Mon Oct 04 14:33:52 2010- -notice- Apache/2.2.13 (Linux/SUSE) mod_ssl/2.2.13 OpenSSL/0.9.8k PHP/5.3.3 configured -- resuming normal operations
The line 2309 referred to in the function.php file will in fact cause an EOF error as the file only has 2308 lines according to the less command, when I went to look at the file.
The file has the correct owner and permissions for the webserver to be able to see the file.
I am a perl programmer, and have very little experience with PHP, any thoughts on what is going on here?
Cheers
JP
A new installation of Zoneminder, version 1.24.2, using the Source Code on OpenSUSE 11.2
Have compiled and installed the software and the prerequisites. Created the DB and fired up Apache.
When I browse to the web page for the very first time it is blank and the following errors are generated in the Apache logs.
== /var/log/apache2/error_log ==
-Mon Oct 04 14:34:19 2010- -error- -client xxx.xxx.xxx.xxx- PHP Parse error: syntax error, unexpected $end in /srv/www/htdocs/includes/functions.php on line 2309
== /var/log/apache2/access_log ==
xxx.xxx.xxx.xxx - - -04/Oct/2010:14:34:19 +1300- "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100506 SUSE/3.5.10-0.1 Firefox/3.5.10"
The Apache start log entry is:
-Mon Oct 04 14:33:52 2010- -notice- Apache/2.2.13 (Linux/SUSE) mod_ssl/2.2.13 OpenSSL/0.9.8k PHP/5.3.3 configured -- resuming normal operations
The line 2309 referred to in the function.php file will in fact cause an EOF error as the file only has 2308 lines according to the less command, when I went to look at the file.
The file has the correct owner and permissions for the webserver to be able to see the file.
I am a perl programmer, and have very little experience with PHP, any thoughts on what is going on here?
Cheers
JP