You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When looking at images in the media browser in the manager using php version < 8 (like 7.4.3), it generates the following error:
PHP Fatal error: Uncaught TypeError: Argument 2 passed to phpthumb::__set() must be an instance of mixed, bool given in xxxx/core/model/phpthumb/phpthumb.class.php
Step to reproduce
open media browser and got to a directory where you have an image
Observed behavior
PHP Fatal error: Uncaught TypeError: Argument 2 passed to phpthumb::__set() must be an instance of mixed, bool given
Expected behavior
no php error... as server requirements on the modx website are about php:
Component Minimum Required Recommended for Production
PHP 5.6.x 7.4+
To solve the problem, it is needed to change line 317 in core/model/phpthumb/phpthumb.class.php
//public function __set(string $name, mixed $value): void {
public function __set(string $name, $value): void {
}
Environment
MODX version, apache/nginx and version, mysql version, browser, etc. Any relevant information.
Modx V2.8.6, Apache/2.4.38 (Debian) PHP 7.4.33
The text was updated successfully, but these errors were encountered:
intersel
added
the
bug
The issue in the code or project, which should be addressed.
label
Oct 25, 2023
Bug report
Summary
When looking at images in the media browser in the manager using php version < 8 (like 7.4.3), it generates the following error:
PHP Fatal error: Uncaught TypeError: Argument 2 passed to phpthumb::__set() must be an instance of mixed, bool given in xxxx/core/model/phpthumb/phpthumb.class.php
Step to reproduce
open media browser and got to a directory where you have an image
Observed behavior
PHP Fatal error: Uncaught TypeError: Argument 2 passed to phpthumb::__set() must be an instance of mixed, bool given
Expected behavior
no php error... as server requirements on the modx website are about php:
Component Minimum Required Recommended for Production
PHP 5.6.x 7.4+
To solve the problem, it is needed to change line 317 in core/model/phpthumb/phpthumb.class.php
//public function __set(string $name, mixed $value): void {
public function __set(string $name, $value): void {
}
Environment
MODX version, apache/nginx and version, mysql version, browser, etc. Any relevant information.
Modx V2.8.6, Apache/2.4.38 (Debian) PHP 7.4.33
The text was updated successfully, but these errors were encountered: