Page 1 of 1

[Solved]Hide/Show pagination (of events)

Posted: Fri Oct 29, 2021 7:27 am
by lyallp
Clicking on a cameras event numbers for today, I see a nice list of events.

However, if I click the Hide/Show Pagination option, I get told "Loading, Please wait", the events never show up. If I click Hide/Show pagination again, they show.

It appears to be stuck only when the pagination is hidden.

Zone Minder v1.37.1

Re: Hide/Show pagination (of events)

Posted: Fri Oct 29, 2021 1:57 pm
by iconnor
Probably running out of ram trying to parse all the rows. Check your logs. Increase memory_limit in php.ini

Re: Hide/Show pagination (of events)

Posted: Sat Oct 30, 2021 12:30 am
by lyallp
Don't think memory, it's at 768MB, I use, testing only, tt-rss, NextCloud and Drupal, just fine.

I chose a nice small event, only 80 images.

When the pagination hide is set, my web server is absolutely spammed, over the next 18 seconds with 7500 requests. No errors in the error log.

Code: Select all

IPADDR - user [30/Oct/2021:10:49:25 +1030] "GET /zm/index.php?view=request&request=frames&task=query&eid=1430&search=&sort=FrameId&order=asc HTTP/1.1" 200 90
IPADDR - user [30/Oct/2021:10:49:25 +1030] "GET /zm/index.php?view=request&request=frames&task=query&eid=1430&search=&sort=FrameId&order=asc HTTP/1.1" 200 90
IPADDR - user [30/Oct/2021:10:49:25 +1030] "GET /zm/index.php?view=request&request=frames&task=query&eid=1430&search=&sort=FrameId&order=asc HTTP/1.1" 200 90
When I unhide the pagination, the expected requests (thumbnails I assume) are generated 300 requests result, the show analyse requests are much less frequent than, what I assume are, thumbnail requests.

Code: Select all

IPADDR - user [30/Oct/2021:10:49:31 +1030] "GET /zm/index.php?view=image&fid=367845&width=48&height= HTTP/1.1" 200 2476
IPADDR - user [30/Oct/2021:10:49:31 +1030] "GET /zm/index.php?view=image&fid=367848&width=48&height= HTTP/1.1" 200 2490
IPADDR - user [30/Oct/2021:10:49:31 +1030] "GET /zm/index.php?view=image&fid=367849&show=analyse&width=48&height= HTTP/1.1" 200 2488
IPADDR - user [30/Oct/2021:10:49:31 +1030] "GET /zm/index.php?view=image&fid=367847&width=48&height= HTTP/1.1" 200 2480
IPADDR - user [30/Oct/2021:10:49:31 +1030] "GET /zm/index.php?view=image&fid=367852&width=48&height= HTTP/1.1" 200 2488

Re: Hide/Show pagination (of events)

Posted: Tue Nov 02, 2021 9:25 pm
by iconnor
Fixed in master and proposed. Will be in .11