Closed baudneo closed 7 months ago
There may be useful errors in apache2 or php_fpm logs depending on which web server you are running.Typically a 500 logs a syntax error something with some useful details.
I think it may have to do with us assuming REQUEST['mids'] is set... quick fix incoming.
typo? arrap_map()
cat /var/log/apache2/error.log
[Sun Mar 10 00:00:04.115252 2024] [mpm_prefork:notice] [pid 142] AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Sun Mar 10 00:00:04.115301 2024] [core:notice] [pid 142] AH00094: Command line: '/usr/sbin/apache2'
[Sun Mar 10 08:21:40.303287 2024] [php:error] [pid 3313231] [client 10.0.1.10:40914] PHP Fatal error: Uncaught Error: Call to undefined function arrap_map() in /usr/share/zoneminder/www/skins/classic/views/zones.php:26\nStack trace:\n#0 /usr/share/zoneminder/www/index.php(260): require_once()\n#1 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/views/zones.php on line 26, referer: http://10.0.1.7/zm/index.php?view=zones&mid=5
[Sun Mar 10 08:21:57.590226 2024] [php:error] [pid 3155750] [client 10.0.1.10:60966] PHP Fatal error: Uncaught Error: Call to undefined function arrap_map() in /usr/share/zoneminder/www/skins/classic/views/zones.php:26\nStack trace:\n#0 /usr/share/zoneminder/www/index.php(260): require_once()\n#1 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/views/zones.php on line 26, referer: http://10.0.1.7/zm/index.php?view=zones&mid=5
[Sun Mar 10 08:22:09.373479 2024] [php:error] [pid 3155897] [client 10.0.1.10:35886] PHP Fatal error: Uncaught Error: Call to undefined function arrap_map() in /usr/share/zoneminder/www/skins/classic/views/zones.php:26\nStack trace:\n#0 /usr/share/zoneminder/www/index.php(260): require_once()\n#1 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/views/zones.php on line 26
[Sun Mar 10 08:27:25.925641 2024] [php:error] [pid 3370322] [client 10.0.1.10:39712] PHP Fatal error: Uncaught Error: Call to undefined function arrap_map() in /usr/share/zoneminder/www/skins/classic/views/zones.php:26\nStack trace:\n#0 /usr/share/zoneminder/www/index.php(260): require_once()\n#1 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/views/zones.php on line 26, referer: http://10.0.1.7/zm/?view=zones&mid=5
Describe Your Environment
If the issue concerns a camera
Describe the bug When I was editing zones, the server returned a 500 in the middle of the session. I was able to edit 1/3 zones then delete a zone. When I edited the last remaining zone (2/2 after delete) and went to save it, the server returned code 500 with no meaningful output in dev tools. The delete and save commands appear to have worked though.
When I tried to recreate the error, I could only do it when deleting a zone.
I did notice that the URL looks mangled:
http://10.0.1.7/zm/index.php?view=zones&mids[]=5
To Reproduce Steps to reproduce the behavior:
Expected behavior No 500 Debug Logs