• Resolved costib

    (@costib)


    Hello!

    I’m getting this error when I activate the plugin:

    2021/03/08 21:23:13 [error] 892#892: *1854 FastCGI sent in stderr: "PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/REDACTED/public_html/wp-content/plugins/wp-pgp-encrypted-emails/vendor/singpolyma/openpgp-php/lib/openpgp.php on line 125" while reading response header from upstream, client: REDACTED, server: REDACTED, request: "GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP/1.1", upstream: "fastcgi://unix:/opt/alt/php-fpm80/usr/var/sockets/platadev.sock:", host: "REDACTED", referrer: "https://REDACTED/wp-admin/plugins.php"

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Meitar

    (@meitar)

    This error indicates an upstream library is incompatible with the version of PHP you are using.

    I’ll have to see if this has been fixed upstream and if so update the version of the library this plugin uses. Thanks for letting me know. Hopefully I can get a fix released in the next few days.

    Thread Starter costib

    (@costib)

    Awesome! We are using PHP 8.0.2

    Plugin Author Meitar

    (@meitar)

    @costlib, will you please test the latest tagged release candidate, version 0.7.5 to ensure it works in your environment? This version updates the dependencies and should support PHP 8.x versions. Once you let reply letting me know it works, I will make this version an automatic update.

    Thread Starter costib

    (@costib)

    hello!

    I did clone the github repo activated the plugin but the error is similar to the prev one. this time on another line:

    [error] 25010#25010: *2183 FastCGI sent in stderr: "PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/REDACTED/public_html/wp-content/plugins/wp-pgp-encrypted-emails-develop/vendor/singpolyma/openpgp-php/lib/openpgp.php on line 127" while reading response header from upstream

    • This reply was modified 3 years, 8 months ago by costib.
    Plugin Author Meitar

    (@meitar)

    Oh, that’s disappointing. ?? I’m now using the latest released version of the upstream library so if that error is still there we’ll have to wait until the upstream library cuts a new stable release with support for PHP 8.

    Thread Starter costib

    (@costib)

    Hello!

    Well, we had to downgrade to PHP 7.4.16 because PHP 8.0.2 has issues with other plugins also.

    With PHP 7.4.16 everything seems fine!

    Hello Meitar,

    I’ve just read this support thread and recognized that in your version 0.7.5 the openpgp.php file (https://plugins.trac.www.ads-software.com/browser/wp-pgp-encrypted-emails/tags/0.7.5/vendor/singpolyma/openpgp-php/lib/openpgp.php) does not fit the one in the latest singpolyma (https://github.com/singpolyma/openpgp-php). In line 127 in your file there are still the curly braces while in the singpolyma openpgp.php the “problem” is solved by using brackets.

    I’ve exchanged the folder singpolyma of your version 0.7.5 with the folder of https://github.com/singpolyma/openpgp-php and there are no more errors with PHP 8 as far as I can see at the moment.

    I hope I could help a bit and thanks a lot for creating this fantastic plugin!
    Best regards!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wordpress website breaks with a php fatal error’ is closed to new replies.