Broken thumbnails/images

Forum for questions and support relating to the 1.30.x releases only.
Locked
sphillips
Posts: 12
Joined: Fri Jul 06, 2018 10:21 am

Broken thumbnails/images

Post by sphillips »

i have been trying to figure it out why the stale images and thumbnails are showing as broken since the new ubuntu 18.04 setup and php 7.2 update
brokenThumbnails.jpg
brokenThumbnails.jpg (50.9 KiB) Viewed 1640 times
brokenImages.jpg
brokenImages.jpg (19.31 KiB) Viewed 1640 times

zoneminder 1.30.4
System: ubuntu 18.04
apache2: Apache/2.4.29 (Ubuntu)
php: PHP 7.2.7-0ubuntu0.18.04.2

i used the Ubuntu 18.04 Shell Script and then Set up Dedicated HardDrive for saving events and images on separate hard drive. everything was working fine right after installing (images showing fine).
i think the problem showed it self after i upgraded some php7.2 modules with

Code: Select all

apt-get update && upgrade
(at least that was the only thing i remember doing it).

so here some logs
apache2 log related error when opening page with thumbnail.

Code: Select all

192.168.2.90 - - [08/Jul/2018:18:33:34 -0300] "GET /zm/?view=image&eid=164&fid=39&width=128&height=72 HTTP/1.1" 200 283 "http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
[Sun Jul 08 18:33:34.502218 2018] [php7:warn] [pid 11573] [client 192.168.2.90:63718] PHP Warning:  imagecreatefromjpeg(events/1/18/07/08/17/10/05/00052-capture.jpg): failed to open stream: No such file or directory in /usr/share/zoneminder/www/views/image.php on line 138, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502254 2018] [php7:warn] [pid 11573] [client 192.168.2.90:63718] PHP Warning:  imagesx() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/views/image.php on line 139, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502289 2018] [php7:warn] [pid 11573] [client 192.168.2.90:63718] PHP Warning:  imagesy() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/views/image.php on line 140, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502312 2018] [php7:warn] [pid 11573] [client 192.168.2.90:63718] PHP Warning:  imagescale() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/views/image.php on line 161, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502331 2018] [php7:warn] [pid 11573] [client 192.168.2.90:63718] PHP Warning:  imagejpeg() expects parameter 1 to be resource, null given in /usr/share/zoneminder/www/views/image.php on line 162, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502349 2018] [php7:warn] [pid 11573] [client 192.168.2.90:63718] PHP Warning:  imagedestroy() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/views/image.php on line 163, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502367 2018] [php7:warn] [pid 11573] [client 192.168.2.90:63718] PHP Warning:  imagedestroy() expects parameter 1 to be resource, null given in /usr/share/zoneminder/www/views/image.php on line 164, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502432 2018] [php7:warn] [pid 11575] [client 192.168.2.90:63722] PHP Warning:  imagecreatefromjpeg(events/1/18/07/08/17/11/36/00058-capture.jpg): failed to open stream: No such file or directory in /usr/share/zoneminder/www/views/image.php on line 138, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502463 2018] [php7:warn] [pid 11575] [client 192.168.2.90:63722] PHP Warning:  imagesx() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/views/image.php on line 139, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502484 2018] [php7:warn] [pid 11575] [client 192.168.2.90:63722] PHP Warning:  imagesy() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/views/image.php on line 140, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502505 2018] [php7:warn] [pid 11575] [client 192.168.2.90:63722] PHP Warning:  imagescale() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/views/image.php on line 161, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502524 2018] [php7:warn] [pid 11575] [client 192.168.2.90:63722] PHP Warning:  imagejpeg() expects parameter 1 to be resource, null given in /usr/share/zoneminder/www/views/image.php on line 162, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
[Sun Jul 08 18:33:34.502542 2018] [php7:warn] [pid 11575] [client 192.168.2.90:63722] PHP Warning:  imagedestroy() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/views/image.php on line 163, referer: http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
192.168.2.90 - - [08/Jul/2018:18:33:34 -0300] "GET /zm/?view=image&eid=162&fid=52&width=128&height=72 HTTP/1.1" 200 282 "http://192.168.1.254:6101/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
Browser log error when opening page with a thumbnail

Code: Select all

index.php?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1:6 The key "maxiumum-scale" is not recognized and ignored.
onloadwff.js:58 Uncaught TypeError: e.action.indexOf is not a function
    at e (onloadwff.js:58)
    at MutationObserver.<anonymous> (onloadwff.js:58)
onloadwff.js:58 Uncaught TypeError: e.action.indexOf is not a function
    at e (onloadwff.js:58)
    at MutationObserver.<anonymous> (onloadwff.js:58)
onloadwff.js:58 Uncaught TypeError: e.action.indexOf is not a function
    at e (onloadwff.js:58)
    at MutationObserver.<anonymous> (onloadwff.js:58)
onloadwff.js:58 Uncaught TypeError: e.action.indexOf is not a function
    at HTMLDocument.e (onloadwff.js:58)
i am unsure of what others log should help to debug the problem so if i can provide more info please let me know very newbie on linux, i did check other threads with some related problem but it did not help me.

Edit: i realize threes no zoneminder log because there is no errors in zoneminder (log link shows green) EVERYTHING is working except for the broken images, i have also confirmed that the images are being created and saved(images are definitely there) i could really use some input here

EDIT2: i keep editing since its against double post or bump thread so i hope people will see these

taking a closer look at the client browser error:

Code: Select all

The key "maxiumum-scale" is not recognized and ignored.
thats a misprint"maxiumum-scale" it prob is "maximum-scale" it most definitly is from zoneminder release files since i would never mess with /usr/share/zoneminder/www files, but it does not resolve my problem.
Locked