• Resolved Robert

    (@roberthedlund)


    Hi

    Our site is hosted at pressable and they are going pretty soon stop supporting PHP 7.4 that we are using today, and are advicing using PHP 8.X. When I tried PHP 8.0 and 8.1 on our staging site the /cart/ and /checkout/ page is giving me http error 500.

    The support at pressable adviced that i should show you guys this error code below:

    Error log shows following errors:
    [03-Aug-2022 14:11:44 UTC] PHP Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/htdocs/wp-content/plugins/woocommerce/src/Admin/PageController.php on line 128
    [03-Aug-2022 14:11:44 UTC] PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /srv/htdocs/wp-content/plugins/klarna-checkout-for-woocommerce/classes/class-kco-confirmation.php on line 51

    —-

    We have latest WordPress/WooCommerce version, everything is up to date.

    • This topic was modified 2 years, 3 months ago by Robert.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support montazar

    (@montazaraj)

    Hello @roberthedlund !

    We’ll be fixing the deprecation warning in an upcoming release.

    I am not aware of a deprecation warning causing a fatal error though, since unlike an obsolete, it will still work for the time being. Is this a one time event, or can you reliably recreate it, and does it still happen if you downgrade to PHP 7.4? We haven’t encountered this issue in our testing when running PHP 7.3, 7.4, 8.0, and 8.1.

    Thread Starter Robert

    (@roberthedlund)

    Hi @montazaraj

    It goes away if i downgrade back to 7.4.
    I can create an staging site for you guys to check if you want. Where do i send this info to?

    I can recreate it everytime.

    Thread Starter Robert

    (@roberthedlund)

    I reinstalled the Klarna plugin and now it seems to work correctly with PHP 8.X

    Plugin Author Niklas H?gefjord

    (@niklashogefjord)

    Great to hear Robert! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTTP Error 500 with PHP 8.0+’ is closed to new replies.