Montage Layout, Edit Layout, Width, Height...etc not working

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
Rigor
Posts: 10
Joined: Sat Jan 25, 2020 3:16 pm

Montage Layout, Edit Layout, Width, Height...etc not working

Post by Rigor »

Hello all,
My apologies if this has already been answered - I searched and did not find a similar issue.

On the ZoneMinder webui, I have found that the Montage page doesn't respond to inputs from Width, Height, Scale, Layout or EDIT LAYOUT. These errors show up in my log when I try to use them:
2020-01-25 09:27:33.240282 web_js[2240].ERR-zm/cache/skins_classic_views_js_montage-dark-1579538170.js/2 [ReferenceError: monitorData is not defined]
2020-01-25 09:27:32.937432 web_js[3127].ERR-zm/cache/skins_classic_views_js_montage-dark-1579538170.js/217 [ReferenceError: layouts is not defined]
2020-01-25 09:27:05.687620 web_js[2236].ERR-zm/cache/skins_classic_views_js_montage-dark-1579538170.js/2 [ReferenceError: monitorData is not defined]
2020-01-25 09:21:29.157427 web_js[2240].ERR-zm/cache/skins_classic_views_js_montage-dark-1579538170.js/383 [TypeError: monitors is undefined]
2020-01-25 09:20:08.623659 web_js[16375].ERR-zm/cache/skins_classic_views_js_montage-dark-1579538170.js/2 [ReferenceError: monitorData is not defined]

I have tried changing browsers to be sure it wasn't Chrome, and tried from multiple computers in my house - all have the same behavior.

I'm running ZoneMinder v1.34.0 on Ubuntu 18.04.3 LTS and accessing it through Chrome Version 79.0.3945.130 (Official Build) (64-bit) on Windows 10.

It seems to be an issue with the underlying javascript, and unfortunately I am just not that good at troubleshooting js... so I'm hoping someone on here knows what's going on or how I can troubleshoot it.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Montage Layout, Edit Layout, Width, Height...etc not working

Post by iconnor »

I expect problem is fixed in 1.34.1 which has been released today and packages are building.
Rigor
Posts: 10
Joined: Sat Jan 25, 2020 3:16 pm

Re: Montage Layout, Edit Layout, Width, Height...etc not working

Post by Rigor »

Thanks for letting me know - I'll test it out once it's available!
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Montage Layout, Edit Layout, Width, Height...etc not working

Post by bbunge »

Update is avaliable
Rigor
Posts: 10
Joined: Sat Jan 25, 2020 3:16 pm

Re: Montage Layout, Edit Layout, Width, Height...etc not working

Post by Rigor »

Thanks for letting me know the update was available - I had to add the 1.34 ppa to get the new update.

Upgraded to v1.34.1 - still the same issue with Width, Height, Layout, and EDIT LAYOUT, but Scale works if I reload the page after making a selection.

I seem to recall this working in an older version (not sure which) where you could switch these selections and get an instantaneous change in the bottom pane.

I should note that I still have some custom layouts in the Layout drop-down box from my initial messing around with ZM. These won't load, but they are still in the list. Error listed is:

2020-01-26 11:22:55.037435 web_js[1691].ERR-zm/cache/skins_classic_views_js_montage-classic-1579975273.js/217 [Uncaught ReferenceError: layouts is not defined]
2020-01-26 11:21:45.293734 web_js[1691].ERR-zm/cache/skins_classic_views_js_montage-classic-1579975273.js/383 [Uncaught TypeError: Cannot read property 'length' of undefined]

I'm wondering if this is maybe an issue with my database -- I'll try to look at the contents later to see if I can find how the Layouts are stored.
leonyu13
Posts: 1
Joined: Fri Jun 19, 2020 4:50 am

Re: Montage Layout, Edit Layout, Width, Height...etc not working

Post by leonyu13 »

Did you ever figure out the layout issue? I'm having the same problem. 1.35.4
Rigor
Posts: 10
Joined: Sat Jan 25, 2020 3:16 pm

Re: Montage Layout, Edit Layout, Width, Height...etc not working

Post by Rigor »

No, I never found a solution.

I'm still having the same issue in 1.35.6
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Montage Layout, Edit Layout, Width, Height...etc not working

Post by iconnor »

I just pushed a fix for when the layout has invalid json in it's Positions. So maybe that will fix your issue.

Do any of your layout names have weird characters in them, specifically "?

Look in javascript console for earlier errors. Right click, Inspect => Console
Post Reply