• Resolved Jonathan Webpixelia

    (@marocweb)


    Hi,

    There is a fatal error with PHP 8.1:

    “Fatal error: Cannot acquire reference to $GLOBALS in \wp-content\plugins\worker\src\MWP\WordPress\Context.php on line 31”

    Could you make compatible the plugin with PHP 8.1 please ?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support ddragovic

    (@ddragovic)

    Hi there,

    Thanks for bringing this up to us, and also apologies for the late reply. We are aware of the Worker plugin not being compatible with the PHP 8.1 and the team is looking into ways of resolving this as we speak. We expect the compatibility fix to be applied in the upcoming period.

    Kind regards.

    I am also looking for an answer regarding the PHP 8.1 fix, for the &$GLOBALS; issue.

    I was able to get it temporary fixed by simple editing line 31 in \wp-content\plugins\worker\src\MWP\WordPress\Context.php from:

    $this->context = &$GLOBALS;

    to

    $this->context = &$GLOBALS[null];

    this is my temporary fix until they provide a new updated version, perhaps as &$GLOBALS[”]; or &$GLOBALS[‘blog_id’]; and this one I decided to use that seems to work fine &$GLOBALS[null];

    I hope it helps anyone else with this same issue with PHP 8.1 update

    Plugin Support ddragovic

    (@ddragovic)

    Hey again,

    Again sorry for the delay in our response. We had to confirm something with the team and finally have found a way how to make the Worker compatible with PHP 8.1. Therefore, we have released the new version of the Worker plugin that ensures compatibility with the PHP 8.1 version.

    Kindly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error with PHP 8.1’ is closed to new replies.