Title: PHP 8 error
Last modified: February 27, 2023

---

# PHP 8 error

 *  Resolved [audreysmith](https://wordpress.org/support/users/audreysmith/)
 * (@audreysmith)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-error-31/)
 *     ```wp-block-code
       Hi
   
       wordpress is using the latest version
   
       I am trying to upgrade this site to PHP8 Unfortunately, everytime that I upgrade to PHP8 the admin section gives me the "white page" in the browser and the site itself gives me the wordpress page saying there is a critical error on the site but wordpress does not send me any email giving me any indication of the issue.
   
       I removed all plugins from the site except woocommerce and wordfence.
   
       If I delete wordfence and put the site on PHP8, I still have the same issue.
   
       I am using the wordpress 2023 theme.
   
       plugins ansd themes using the latest versions
   
       There are no custom codes in any of the files.
   
       This is just a basic demo site of wordpress. No problem for me to make any changes to the site that you suggest.
   
       I changed the theme to storefront - same issue
   
       I do not see a Fatal Error Log with PHP 7.4 or PHP 8
   
       I cannot get a status report after I put the site on PHP8 below is the PHP7.4 status report.
   
       ### WordPress Environment ###
   
       WordPress address (URL):https://woocommerce.bestwebhost.com
   
       Site address (URL):https://woocommerce.bestwebhost.com
   
       WC Version: 7.4.0
   
       REST API Version: ✔ 7.4.0
   
       WC Blocks Version: ✔ 9.4.3
   
       Action Scheduler Version: ✔ 3.5.4
   
       Log Directory Writable: ✔
   
       WP Version: 6.1.1
   
       WP Multisite: –
   
       WP Memory Limit: 256 MB
   
       WP Debug Mode: –
   
       WP Cron: ✔
   
       Language: en_US
   
       External object cache: –
   
       ### Server Environment ###
   
       Server Info: Apache
   
       PHP Version: 7.4.33
   
       PHP Post Max Size: 128 MB
   
       PHP Time Limit: 30
   
       PHP Max Input Vars: 1000
   
       cURL Version: 7.88.1
   
       OpenSSL/1.1.1t
   
       SUHOSIN Installed: –
   
       MySQL Version: 8.0.32
   
       Max Upload Size: 128 MB
   
       Default Timezone is UTC: ✔
   
       fsockopen/cURL: ✔
   
       SoapClient: ✔
   
       DOMDocument: ✔
   
       GZip: ✔
   
       Multibyte String: ✔
   
       Remote Post: ✔
   
       Remote Get: ✔
   
       ### Database ###
   
       WC Database Version: 7.4.0
   
       WC Database Prefix: woo_
   
       Total Database Size: 14.93MB
   
       Database Data Size: 12.96MB
   
       Database Index Size: 1.97MB
   
       woo_woocommerce_sessions: Data: 0.07MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_actionscheduler_actions: Data: 0.05MB + Index: 0.13MB + Engine InnoDB
   
       woo_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   
       woo_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   
       woo_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   
       woo_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
   
       woo_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_options: Data: 1.70MB + Index: 0.18MB + Engine MyISAM
   
       woo_postmeta: Data: 0.05MB + Index: 0.02MB + Engine MyISAM
   
       woo_posts: Data: 0.03MB + Index: 0.01MB + Engine MyISAM
   
       woo_statistics_exclusions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_statistics_historical: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_statistics_pages: Data: 0.04MB + Index: 0.08MB + Engine MyISAM
   
       woo_statistics_search: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
   
       woo_statistics_useronline: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_statistics_visit: Data: 0.02MB + Index: 0.03MB + Engine MyISAM
   
       woo_statistics_visitor: Data: 0.20MB + Index: 0.21MB + Engine MyISAM
   
       woo_term_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
   
       woo_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
   
       woo_usermeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
   
       woo_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
   
       woo_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
   
       woo_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
   
       woo_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   
       woo_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   
       woo_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   
       woo_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
   
       woo_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
   
       woo_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   
       woo_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   
       woo_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   
       woo_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
   
       woo_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   
       woo_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   
       woo_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
   
       woo_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   
       woo_wfblockediplog: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
   
       woo_wfblocks7: Data: 0.20MB + Index: 0.19MB + Engine InnoDB
   
       woo_wfconfig: Data: 1.30MB + Index: 0.00MB + Engine InnoDB
   
       woo_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   
       woo_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   
       woo_wffilemods: Data: 4.52MB + Index: 0.00MB + Engine InnoDB
   
       woo_wfhits: Data: 1.02MB + Index: 0.23MB + Engine InnoDB
   
       woo_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   
       woo_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
   
       woo_wfknownfilelist: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
   
       woo_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   
       woo_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   
       woo_wflogins: Data: 0.39MB + Index: 0.14MB + Engine InnoDB
   
       woo_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   
       woo_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   
       woo_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   
       woo_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
   
       woo_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   
       woo_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
   
       woo_wfstatus: Data: 0.14MB + Index: 0.09MB + Engine InnoDB
   
       woo_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   
       ### Post Type Counts ###
   
       attachment: 23
   
       nav_menu_item: 4
   
       page: 6
   
       post: 1
   
       product: 3
   
       product_variation: 1
   
       revision: 16
   
       shop_order: 1
   
       ### Security ###
   
       Secure connection (HTTPS): ✔
   
       Hide errors from visitors: ✔
   
       ### Active Plugins (2) ###
   
       WooCommerce: by Automattic – 7.4.0
   
       Wordfence Security: by Wordfence – 7.9.0
   
       ### Inactive Plugins (0) ###
   
       ### Settings ###
   
       API Enabled: ✔
   
       Force SSL: ✔
   
       Currency: USD ($)
   
       Currency Position: left
   
       Thousand Separator: ,
   
       Decimal Separator: .
   
       Number of Decimals: 2
   
       Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable)
   
       Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock)
   
       rated-1 (rated-1)
   
       rated-2 (rated-2)
   
       rated-3 (rated-3)
   
       rated-4 (rated-4)
   
       rated-5 (rated-5)
   
       Connected to WooCommerce.com: –
   
       Enforce Approved Product Download Directories: – Order datastore: WC_Order_Data_Store_CPT
   
       ### WC Pages ###
   
       Shop base: #7 - /
   
       Cart: #8 - /cart/
   
       Checkout: #9 - /checkout/
   
       My account: #10 - /my-account/
   
       Terms and conditions: ❌ Page not set
   
       ### Theme ###
   
       Name: Storefront
   
       Version: 4.2.0
   
       Author URL: https://woocommerce.com/
   
       Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔
   
       ### Templates ###
   
       Overrides: –
   
       ### Admin ###
   
       Enabled Features: activity-panels
   
       analytics
   
       coupons
   
       customer-effort-score-tracks
   
       import-products-task
   
       experimental-fashion-sample-products
   
       shipping-smart-defaults
   
       shipping-setting-tour
   
       homescreen
   
       marketing
   
       multichannel-marketing
   
       mobile-app-banner
   
       navigation
   
       new-product-management-experience
   
       onboarding
   
       onboarding-tasks
   
       remote-inbox-notifications
   
       remote-free-extensions
   
       payment-gateway-suggestions
   
       shipping-label-banner
   
       subscriptions
   
       store-alerts
   
       transient-notices
   
       woo-mobile-welcome
   
       wc-pay-promotion
   
       wc-pay-welcome-page
   
       Disabled Features: minified-js
   
       product-variation-management
   
       settings
   
       Daily Cron: ✔ Next scheduled: 2023-02-27 22:23:55 -07:00
   
       Options: ✔
   
       Notes: 113
   
       Onboarding: completed
   
       ### Action Scheduler ###
   
       Complete: 44
   
       Oldest: 2023-01-27 23:35:34 -0700
   
       Newest: 2023-02-27 10:00:13 -0700
   
       Failed: 1
   
       Oldest: 2023-02-14 15:20:10 -0700
   
       Newest: 2023-02-14 15:20:10 -0700
   
       Pending: 1
   
       Oldest: 2023-02-27 22:05:27 -0700
   
       Newest: 2023-02-27 22:05:27 -0700
   
       ### Status report information ###
   
       Generated at: 2023-02-27 10:33:01 -07:00 `
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-error-31%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-error-31/#post-16512395)
 * Hi [@audreysmith](https://wordpress.org/support/users/audreysmith/)
 * Thanks for reaching out!
 * I understand that you want to upgrade the PHP version of your site to `8`, however,
   it is causing critical error and only displays a white page afterwards, correct?
 * I’ve seen several sites using PHP 8 and their site is working properly. If you
   could also provide the **fatal error logs** (if any) under `WooCommerce > Status
   > Logs`.
 * You could copy and paste your reply here or paste it via [https://gist.github.com/](https://gist.github.com/)
   and send the link here.
 * Thanks!
 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-error-31/#post-16513661)
 * Seen this a few times – is PHP8 properly installed on the server – there are 
   a few extensions that need to be there for WordPress to work: [https://zeropointdevelopment.com/required-php-extensions-for-wordpress-wpquickies/](https://zeropointdevelopment.com/required-php-extensions-for-wordpress-wpquickies/)
 * Are you using CPanel? If so, is there a ‘Select PHP Version’ option in the Software
   section? If so, go there and click the Extensions tab to see what’s installed
 * [https://ibb.co/vzXvxG1](https://ibb.co/vzXvxG1)
 *  Thread Starter [audreysmith](https://wordpress.org/support/users/audreysmith/)
 * (@audreysmith)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-error-31/#post-16514576)
 * Thanks for your help
 * There are no fatal error logs
 * All of the extensions are installed
 *  Thread Starter [audreysmith](https://wordpress.org/support/users/audreysmith/)
 * (@audreysmith)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-error-31/#post-16514665)
 * problem solved – I manually deleted and manually installed woocommerce and site
   is now working with PHP 8
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-error-31/#post-16515414)
 * Hi [@audreysmith](https://wordpress.org/support/users/audreysmith/) ,
 * Glad to hear that manually deleting and reinstalling WooCommerce did the trick,
   and thanks for sharing the solution here, it may be very helpful to others experiencing
   this same issue!
 * I will go ahead and mark this thread as resolved then, however, feel free to 
   [create a new topic](https://wordpress.org/support/plugin/woocommerce/#new-topic-0)
   should you need any further help.
 * Cheers!

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

The topic ‘PHP 8 error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-error-31/#post-16515414)
 * Status: resolved