[Solved]Hide/Show pagination (of events)

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

[Solved]Hide/Show pagination (of events)

Post 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
Last edited by lyallp on Wed Nov 03, 2021 1:50 am, edited 1 time in total.
...Lyall
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Hide/Show pagination (of events)

Post by iconnor »

Probably running out of ram trying to parse all the rows. Check your logs. Increase memory_limit in php.ini
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Re: Hide/Show pagination (of events)

Post 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
...Lyall
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Hide/Show pagination (of events)

Post by iconnor »

Fixed in master and proposed. Will be in .11
Post Reply