phpThumbOf Errors in Manager

Summary

Using pThumb as part of my ModMore moreGallery and getting errors in the Manager console each time I upload an image. Occurred after updating to MODx 3.2.4, and PHP 8.4. Images display fine on the front end. Cache folder permission is 0755.

Step to reproduce

Uploading an image to the gallery produces the following error.


[2026-09-12 12:25:12] (ERROR @ /home3/pmaryslh/public_html/core/cache/includes/elements/modx/revolution/modplugin/10.include.cache.php : 21) PHP warning: Undefined array key "file"
[2026-09-12 12:25:12] (ERROR @ /home3/pmaryslh/public_html/core/cache/includes/elements/modx/revolution/modplugin/10.include.cache.php : 24) PHP warning: Trying to access array offset on null
[2026-09-12 12:25:12] (ERROR @ /home3/pmaryslh/public_html/core/cache/includes/elements/modx/revolution/modplugin/10.include.cache.php : 28) PHP warning: Trying to access array offset on null

Observed behavior

Expected behavior

How it should behave after following the steps above.

Environment

MODx 3.2.4, PHP 8.4

Just to be clear, what is plugin ID 10? If it’s More Gallery, you should probably reach out to modmore for support.

I’ve discovered that it’s related to pThumb. I used it for resizing images loaded to the MoreGallery. I’ve downloaded Thumb3x, but have not had a chance to test.

I’d be interested to learn what the issue is with pThumb, and if an update to it migth be able to resolve it. Mind filing or adding to a bug? Issues · modxcms/pThumb · GitHub

From what I found on the “ai”, it said the phpThumbOf and pThumb is not compatible with PHP 8+. Gave various methods of editing the code, but nothing that I had in my actual files matched what the “ai” said to edit. Can’t trust the ai anyhow.

I believe phpThumb go the PHP 8 compatibility a while ago, in fact some pre-8 compatibility was addressed a few years ago by some MODXers: Fix TypeError for PHP 7.4 by halftrainedharry · Pull Request #218 · JamesHeinrich/phpThumb · GitHub

I could be completely wrong.

I’ll have to take a look. Perhaps it’s related to the way I have it set up. IDK. It’s worked fantastic for a long long time. Only now after the recent MODx update, and switch to PHP 8.4 did the errors began to appear each time I upload an image to the MoreGallery. After I’ve had a chance to investigate, I’ll post back with results. Thank you for your attention.

MODX 3.2.4, php 8.4, pThumb 2.3.3-pl → everything ist fine. (I do not use moreGallery)

I had not had a window of time here to investigate. My installed pThumb is 2.3.3. I wonder if I should try uninstalling and then do a reinstall? I will say that MoreGallery, in my opinion, best gallery manager that I have come across. I work with a lot of client, and “their” preferred website host, and have yet to come across any gallery manager that is a fast, intuitive, and easy to use as MoreGallery. Thank you though for taking a look, and providing feedback.