• 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.0

    Plugin installed, but after activation I got an 500.
    Basically in the file

    mediaflow.php

    There are 2 functions that have mixed return type.
    mediaflow_get_env Line 181
    mediaflow_get_option Line 195

    The mixed is 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 returning null in 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 ??

    • This topic was modified 1 year, 1 month ago by Isu.
  • The topic ‘PHP FATAL below PHP 8.0’ is closed to new replies.