Page 1 of 1

Zone Image blank

Posted: Sat Jul 06, 2013 11:10 pm
by lspiehler
When I go to edit or add a zone, the "Zone Image" is blank. I can move the zone points, but it is very difficult to work with having no reference to the image. My apache log shows
[Sat Jul 06 18:04:17 2013] [error] [client 192.168.1.51] File does not exist: /var/www/zm/images/Zones1.jpg, referer: http://<mydomainname>/index.php?view=zone&mid=1&zid=1
My /var/www/zm/images directory has nothing in it. I tried making it writable and restarting zoneminder to no avail. Your help is greatly appreciated and thank you for such an awesome DVR!

Re: Zone Image blank

Posted: Sat Jul 13, 2013 9:24 am
by wuffi
I had the same issue.
The problem is that zm isn't allowed to read/write files outside the path defined in

Code: Select all

open_basedir (php.ini)
On my machine /srv/httpd/zoneminder/image was symlinked to somewhere outside the open_basedir.
please check that.

Re: Zone Image blank

Posted: Mon Jul 15, 2013 7:36 pm
by jHeron
If you changed the default folders for events, images and sounds under the options tab then you must put sym links in the default path linking to your desired path. See the suggestion by CKrypto near the bottom of this thread: http://www.zoneminder.com/forums/viewto ... 29&t=20902
That worked for me!
Good luck!
Jon

Re: Zone Image blank

Posted: Mon Jul 15, 2013 11:56 pm
by lspiehler
On my setup /var/www/zm/images is not symlinked and I have not changed the default options. The apache logs indicate that it is looking for the "Zones1.jpg" image in the correct directory, but it does not exist. What process is supposed to be creating this image and when does it occur? During startup or when the zones hyperlink is pressed for the monitor? I'm not sure where to look. Thank you for your help.

Re: Zone Image blank

Posted: Fri Sep 06, 2013 11:12 am
by DaveV
Hi - Similar problem - following this post http: // www.zoneminder.com / forums / viewtopic.php?f=21&t=18604

Re: Zone Image blank

Posted: Fri Sep 06, 2013 5:43 pm
by TheKorn
What you need to link where depends on if you're using a package or if you compiled it yourself.

For example, using the ubuntu 1.25 package, zoneminder lives in /usr/share/zoneminder .

SOOOooo, if you want to move your events and images files someplace intelligent, you need to symlink

/usr/share/zoneminder/events -> (new events home)
/usr/share/zoneminder/images -> (new images home)

Make sure user www-data has read/write permissions to those new areas.

Then go to the zm options screen, under paths, make sure "dir_events" is set to just "events" (that's the default) and "dir_images" is set to just "images".

Restart apache (for good measure) & zm. Try and add a zone, should get an image now when adding zones.