Errors en-mass in error log

[2023-12-14 12:29:26] (ERROR @ /home/bossly/mx3.bossly.eu/core/src/Revolution/modTemplateVar.php : 331) PHP warning: Undefined array key “class_key”

What?

What version of MODX are you using?

This is 3.0.4 - just upgraded from 3.0.3
It is odd - seems to have stopped - more later.
The form for adding users was also not showing, so I could not add user. Now it mysteriously is working.
Is this some cache ‘problem’ maybe?

Just ran a ‘save’ on a page and opened the ‘add user’ form. Here is what was generated in the error log:

[2023-12-15 00:22:26] (ERROR @ /home/bossly/mx3.bossly.eu/core/src/Revolution/Processors/System/PhpThumb.php : 78) PHP warning: file_get_contents(/assets/themes/codrop/media/bg.svg): Failed to open stream: No such file or directory
[2023-12-15 00:22:33] (ERROR @ /home/bossly/mx3.bossly.eu/core/vendor/james-heinrich/phpthumb/phpthumb.class.php : 3546) PHP warning: Trying to access array offset on value of type bool
[2023-12-15 00:22:33] (ERROR @ /home/bossly/mx3.bossly.eu/core/vendor/james-heinrich/phpthumb/phpthumb.class.php : 3554) PHP warning: Trying to access array offset on value of type bool
[2023-12-15 00:22:33] (ERROR @ /home/bossly/mx3.bossly.eu/core/vendor/james-heinrich/phpthumb/phpthumb.class.php : 3916) PHP warning: Trying to access array offset on value of type bool
[2023-12-15 00:22:33] (ERROR @ /home/bossly/mx3.bossly.eu/core/vendor/james-heinrich/phpthumb/phpthumb.class.php : 3994) PHP warning: Trying to access array offset on value of type bool
[2023-12-15 00:22:33] (ERROR @ /home/bossly/mx3.bossly.eu/core/vendor/james-heinrich/phpthumb/phpthumb.class.php : 4046) PHP warning: Trying to access array offset on value of type bool
[2023-12-15 00:22:33] (ERROR @ /home/bossly/mx3.bossly.eu/core/src/Revolution/modPhpThumb.php : 230) phpThumb was unable to generate a thumbnail for: /home/bossly/mx3.bossly.eu/core/cache/phpthumb/mx3.bossly.eu__src9803625f12432fd0a36ce11cf25fac51_par50a064df300e664cfff2fbd5ed8df8e3_dat1702541189.png
[2023-12-15 00:22:34] (ERROR @ /home/bossly/mx3.bossly.eu/core/src/Revolution/modPhpThumb.php : 246) Error outputting thumbnail:
OutputThumbnail() failed because !is_resource($this->gdimg_output) in file “phpthumb.class.php” on line 702

Not sure how much of this have any impact on the site, but error log should be ‘clean’ I assume. Sorry for not understanding much of these messages.

Most of these messages are mere “PHP warnings”, so the site should work fine.

PHP 8 generates a lot more warnings (than PHP 7.4), which can fill up the MODX error log (until the code gets eventually updated).


All your log messages occur when the code tries to generate thumbnails:

Here for example, the code tries to create a thumbnail for the file /assets/themes/codrop/media/bg.svg, but this file doesn’t seem to exist.

Thank you Harry,
Yes, site seems to function OK. I most likely do not need those thumbs anyway.