• Resolved audreysmith

    (@audreysmith)


    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 to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @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/ and send the link here.

    Thanks!

    seank123

    (@seank123)

    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/

    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

    Thread Starter audreysmith

    (@audreysmith)

    Thanks for your help

    There are no fatal error logs

    All of the extensions are installed

    Thread Starter audreysmith

    (@audreysmith)

    problem solved – I manually deleted and manually installed woocommerce and site is now working with PHP 8

    Roxy

    (@roxannestoltz)

    Hi @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 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.