MODX 2.8.6/3.0.4 + PHP 7.4 breaks thumbnails in the manager

The same problem occurs with MODX version 3.0.4.

Step to fix the issue

In MODX 3 the file to change is core/vendor/james-heinrich/phpthumb/phpthumb.class.php
Remove the word mixed on line 317 (or change the PHP version to at least 8.0).

Environment

MODX 3.0.4-pl
PHP 7.4

5 Likes