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

Forum for questions and support relating to the 1.30.x releases only.
Locked
lixgear
Posts: 3
Joined: Fri May 19, 2017 9:00 am

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

Post 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
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

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

Post 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
lixgear
Posts: 3
Joined: Fri May 19, 2017 9:00 am

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

Post by lixgear »

i have this link
temp -> ../../../../var/lib/zoneminder/temp

pwd
/usr/share/zoneminder/www
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

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

Post by rockedge »

I have had trouble exporting events when ZM's temp directory does not exist or can't be accessed.
Locked