export problems

Support and queries relating to all previous versions of ZoneMinder
Locked
rrk
Posts: 22
Joined: Sat Mar 11, 2006 10:17 pm

export problems

Post by rrk »

i'm having a problem with the export function-- it errors out on line 196 of the zm_export_funcs.php script -- it is generating the wrong path name to the selected event
dir -- it tries to add the monitor name
$event_path = sprintf( "%s/%s/%d", ZM_DIR_EVENTS, $event['MonitorName'], $event['Id']

my event folder's are
root@bills:/var/www/events# ls
1 10 11 12 13 14 15 16 2 3 4 5 6 7 8 9

the error message is

Warning: opendir(events/3_CENTER-STORE/7620): failed to open dir: No such file or directory in /var/www/zm_export_funcs.php on line 196

rob
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

There should be soft links that are the name of your monitors that point to the corresponding camera ID. If you check in the contribs topic, I had created a function a while back for a sainity check to make sure all the links were correct and present. We had a issue in one of the previous releases were the links were not always properly created and I had included it in the rpms till 1.22.0 which does not have this patch as the problem had been fixed.

You might want to add that function and call it before the export so that it fixes your links.

Cheers,
Corey
Locked