Page 1 of 1

Can't open event detail export file 'zmEventDetail.html'

Posted: Thu May 25, 2017 11:16 am
by lixgear
Hello
when i want to export i can see this error:
FAT [Can't open event detail export file 'zmEventDetail.html']
and the file zmEventDetail.html is nowhere
tail -f /var/log/httpd/error_log :

PHP Warning: fopen(events/8/17/05/24/20/07/10/zmEventDetail.html): failed to open stream: Permission denied in /usr/share/zoneminder/www/skins/classic/includes/export_functions.php on line 782, referer: http://1.1.1.1/zm/index.php?view=export ... eids[]=684
[Thu May 25 14:13:17.143270 2017] [:error] [pid 20979] [client 1.1.1.2:51221] FAT [Can't open event detail export file 'zmEventDetail.html'], referer: http://1.1.1.1/zm/index.php?view=export ... eids[]=684

at the browser screen no errors just waiting for export

Re: Can't open event detail export file 'zmEventDetail.html'

Posted: Thu May 25, 2017 2:59 pm
by rockedge
check if the directory (in my Ubuntu based setup) /var/cache/zoneminder/temp exists and belongs to user www-data. This would be the same location of the directories "events" and "images". Make sure a symlink exists for the /var/cache/zoneminder/temp directory in /usr/share/zoneminder/www

Re: Can't open event detail export file 'zmEventDetail.html'

Posted: Fri May 26, 2017 11:58 am
by lixgear
i have this link
temp -> ../../../../var/lib/zoneminder/temp

pwd
/usr/share/zoneminder/www

Re: Can't open event detail export file 'zmEventDetail.html'

Posted: Fri May 26, 2017 2:54 pm
by rockedge
I have had trouble exporting events when ZM's temp directory does not exist or can't be accessed.