php errors on webui (gentoo) zoneminder 1.9.1
Posted: Fri Apr 08, 2016 5:26 pm
The errors are as follows:
Here is some info:
Google returns some results for these errors, but the solution is usually that the events directory has been moved or did not exist. I'm wondering if perhaps there's something specific to gentoo (most of these errors came up on gentoo machines), or perhaps I'm missing something.
This relates to the events folder. The install is fresh and everything seems to work aside from those errors. If I set a camera to modect, images will show up in the events folder.Warning: disk_total_space(): No such file or directory in /usr/share/zoneminder/www/includes/functions.php on line 1670
Warning: disk_free_space(): No such file or directory in /usr/share/zoneminder/www/includes/functions.php on line 1671
Warning: Division by zero in /usr/share/zoneminder/www/includes/functions.php on line 1671
Here is some info:
Code: Select all
zoneminder www # pwd
/usr/share/zoneminder/www
zoneminder www # ls -l
total 52
drwxr-xr-x 2 apache apache 4096 Apr 7 13:15 ajax
drwxr-xr-x 4 apache apache 4096 Apr 7 13:15 api
drwxr-xr-x 2 apache apache 4096 Apr 7 13:15 css
lrwxrwxrwx 1 root root 26 Apr 7 13:15 events -> /var/lib/zoneminder/events
drwxr-xr-x 2 apache apache 4096 Apr 7 13:15 graphics
lrwxrwxrwx 1 root root 26 Apr 7 13:15 images -> /var/lib/zoneminder/images
drwxr-xr-x 2 apache apache 4096 Apr 7 13:15 includes
-rw-r--r-- 1 root root 6435 Apr 7 13:12 index.php
drwxr-xr-x 2 apache apache 4096 Apr 7 13:15 js
drwxr-xr-x 2 apache apache 4096 Apr 7 13:15 lang
drwxr-xr-x 3 apache apache 4096 Apr 5 15:45 skins
drwxr-xr-x 2 apache apache 4096 Apr 7 13:15 temp
drwxr-xr-x 3 apache apache 4096 Apr 5 15:45 tools
drwxr-xr-x 2 apache apache 4096 Apr 7 13:15 views
Code: Select all
zoneminder zoneminder # pwd
/var/lib/zoneminder
zoneminder zoneminder # ls -l
total 8
drwxrwxr-x 4 apache apache 4096 Apr 6 16:24 events
drwxrwxr-x 2 apache apache 4096 Apr 6 17:19 images
zoneminder zoneminder #