Zone Image blank

Forum for questions and support relating to the 1.25.x releases only.
Locked
lspiehler
Posts: 21
Joined: Tue May 19, 2009 1:54 pm

Zone Image blank

Post 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!
wuffi
Posts: 1
Joined: Sat Jul 13, 2013 8:50 am

Re: Zone Image blank

Post 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.
jHeron
Posts: 73
Joined: Sun Jun 16, 2013 5:06 pm

Re: Zone Image blank

Post 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
lspiehler
Posts: 21
Joined: Tue May 19, 2009 1:54 pm

Re: Zone Image blank

Post 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.
DaveV
Posts: 8
Joined: Fri Sep 06, 2013 10:27 am

Re: Zone Image blank

Post by DaveV »

Hi - Similar problem - following this post http: // www.zoneminder.com / forums / viewtopic.php?f=21&t=18604
TheKorn
Posts: 142
Joined: Fri Aug 02, 2013 12:39 pm

Re: Zone Image blank

Post 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.
Locked