PHP fatal error upon upgrading to Ubuntu 13.10

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
c0ldfusi0nz
Posts: 5
Joined: Mon Mar 22, 2010 1:00 am

PHP fatal error upon upgrading to Ubuntu 13.10

Post by c0ldfusi0nz »

I just upgraded to Ubuntu 13.10 and ZoneMinder fails to start; the following error shows up in the Apache error log:

[Sun Oct 27 10:02:57.752050 2013] [:error] [pid 24598] [client 127.0.0.1:39862] PHP Parse error: syntax error, unexpected end of file in /usr/share/zoneminder/includes/functions.php on line 2438

It looks like the ZM version in the Ubuntu repository is "zoneminder 1.25.0-4ubuntu2"

I'm well versed in PHP and after spending ~15 min examining this rather large file, I don't see any syntax errors or missing PHP close tags. I'm baffled at this point. Has anyone else experienced this problem or have any recommendations other than blowing away my install and installing the latest version from source?
nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Re: PHP fatal error upon upgrading to Ubuntu 13.10

Post by nuck »

Is this an upgrade in ZM versions for you? If so, look at the changelog and any upgrade requirements in the source tarball..
c0ldfusi0nz
Posts: 5
Joined: Mon Mar 22, 2010 1:00 am

Re: PHP fatal error upon upgrading to Ubuntu 13.10

Post by c0ldfusi0nz »

Negative; it looks like the ZM version in Ubuntu's repo is still 1.25.0. ZM was not upgraded, though I'm guessing that PHP ~was~ upgraded and now something in ZM's functions.php file is incompatible with the new version of PHP.
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: PHP fatal error upon upgrading to Ubuntu 13.10

Post by mastertheknife »

Enable php short tags.
Kfir Itzhak.
c0ldfusi0nz
Posts: 5
Joined: Mon Mar 22, 2010 1:00 am

Re: PHP fatal error upon upgrading to Ubuntu 13.10

Post by c0ldfusi0nz »

mastertheknife wrote:Enable php short tags.
Ah, crap, it looks like you're right - PHP has deprecated short tags and apparently the upgrade changed the php.ini file to reflect that. Thanks!
sajid7
Posts: 1
Joined: Wed Dec 31, 2014 7:42 am

Re: PHP fatal error upon upgrading to Ubuntu 13.10

Post by sajid7 »

I try to find if it is possible to use a rearback camera from a park aid assist system like this one : PLCM10-License-Rearview-Camera-Vision on Amazon (Sorry I'm newboe on the forum and I can't paste a full URL :) )
It is unexpensive, waterproof. But is it possible to connect to a Linux System and to ZoneMinder ?
Post Reply