PHP FATAL below PHP 8.0
-
Hi,
I just tried to install the plugin on page with PHP 7.4 – as it is claimed to work with.
Plugin:2.0.10
WP:6.1.3
PHP:7.4.33
Server:nginx/1.24.0Plugin installed, but after activation I got an 500.
Basically in the filemediaflow.phpThere are 2 functions that have
mixedreturn type.
–mediaflow_get_envLine 181
–mediaflow_get_optionLine 195The
mixedis supported from PHP 8+, and this is causing the error on the website.
I’d suggest to remove return type or if you want to keep the return type, just set use same type of return instead of returningnullin case of missing settings 🙂Or add check support for PHP 8+ and rise requirements for the plugin.
But this wouldn’t be ideal I think yet 🙂
The topic ‘PHP FATAL below PHP 8.0’ is closed to new replies.