Title: HTTP Error 500 with PHP 8.0+
Last modified: August 3, 2022

---

# HTTP Error 500 with PHP 8.0+

 *  Resolved [Robert](https://wordpress.org/support/users/roberthedlund/)
 * (@roberthedlund)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/http-error-500-with-php-8-0/)
 * 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 3 years, 10 months ago by [Robert](https://wordpress.org/support/users/roberthedlund/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [montazar](https://wordpress.org/support/users/montazaraj/)
 * (@montazaraj)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/http-error-500-with-php-8-0/#post-15887638)
 * Hello [@roberthedlund](https://wordpress.org/support/users/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](https://wordpress.org/support/users/roberthedlund/)
 * (@roberthedlund)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/http-error-500-with-php-8-0/#post-15887664)
 * Hi [@montazaraj](https://wordpress.org/support/users/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](https://wordpress.org/support/users/roberthedlund/)
 * (@roberthedlund)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/http-error-500-with-php-8-0/#post-15888683)
 * I reinstalled the Klarna plugin and now it seems to work correctly with PHP 8.
   X
 *  Plugin Author [Niklas Högefjord](https://wordpress.org/support/users/niklashogefjord/)
 * (@niklashogefjord)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/http-error-500-with-php-8-0/#post-15890638)
 * 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.

 * ![](https://ps.w.org/klarna-checkout-for-woocommerce/assets/icon-256x256.png?
   rev=3332778)
 * [Kustom Checkout for WooCommerce](https://wordpress.org/plugins/klarna-checkout-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/klarna-checkout-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Niklas Högefjord](https://wordpress.org/support/users/niklashogefjord/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/http-error-500-with-php-8-0/#post-15890638)
 * Status: resolved