• Resolved aurarum

    (@aurarum)


    Hi,

    I think some had discussions wbout 8.0

    I am having issues with the website not working with it.

    fine with 7.4

    when I check PHP compatibility i get these errors with woocommerce

    PHP 8.0 incompatibilities: FILE: vendor/opis/string/src/Exception/InvalidCodePointException.php FOUND 1 ERRORS AND 0 WARNINGS AFFECTING 1 LINES 18 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE) FILE: vendor/opis/string/src/Exception/InvalidStringException.php FOUND 1 ERRORS AND 0 WARNINGS AFFECTING 1 LINES 18 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE) FILE: vendor/opis/string/src/Exception/UnicodeException.php FOUND 1 ERRORS AND 0 WARNINGS AFFECTING 1 LINES 18 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE) FILE: vendor/opis/string/src/UnicodeString.php FOUND 1 ERRORS AND 0 WARNINGS AFFECTING 1 LINES 18 | ERROR | ‘string’ is a reserved keyword as of PHP version 7.0 and should not be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the error message and details.

    This error indicates that the code is using the word string as a class name, interface, trait, or namespace, which is not allowed with latest version of php because string is now a reserved keyword in PHP. it looks like a plugin or theme on your site is using the opis/string library, which is incompatible with PHP 8 due to the use of a reserved keyword.

    Please ensure all your plugins and themes are updated to their latest versions. If the issue persists, could you please share the System Status Report which you can find via WooCommerce > Status

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.


    Thread Starter aurarum

    (@aurarum)

    thanks

    it is WooCommerce 10.0.4 and ALL other plugins are disabled

    here is the link to the status report

    https://gist.github.com/Aurarum/308aae1183e293e353b8ba42b9d96481

    thanks

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the System Status Report. I have checked it and noticed that your WordPress version is not up to date. Could you please update WordPress to the latest version?

    Also, I see that your theme is overriding WooCommerce templates and some of those templates are outdated.

    For testing purposes, please update WordPress and temporarily activate a default theme like Storefront to see if you still face the same issue.

    Let us know how that goes.

    Thread Starter aurarum

    (@aurarum)

    yes – updated and changed theme – same result.

    website crashes

    here is updated status

    https://gist.github.com/Aurarum/a18d9c2256fe9cc27f8be40f97a298d0

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for following the steps and sharing the updated system status report. To assist you further, could you please confirm if you are still facing the same error message you shared before? Also, could you let us know which error message appears when the site crashes?

    I noticed that your current PHP version is set to 7.4 — could you please update it to PHP 8, share your site URL, and send us a screenshot of what appears on the screen when the site crashes?
    Additionally, please share any Fatal error logs (if available) from WooCommerce > Status > Logs.

    I’m asking this because I’m currently running PHP versions 8.3 and 8.4 on two different sites without any issues. Could you try setting your PHP version to 8.3 or 8.4 and see if the issue persists?

    Thread Starter aurarum

    (@aurarum)

    there are no fatal errors

    site simply doesn’t work

    This page isn’t working

    staging.3dprintcentre.com.au is currently unable to handle this request.

    HTTP ERROR 500

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thank you for sharing the additional details.

    I’d recommend reinstalling WooCommerce to ensure there’s no corrupted or missing file causing the issue. You can do this by:

    1. Deactivating and deleting WooCommerce (this will not delete your data).
    2. Reinstalling it from Plugins → Add New.

    Also, please contact your hosting provider and ask them to review the server error logs to see if they detect any specific error on their end when you access the site — this can help pinpoint the cause of the HTTP 500 error.

    Thread Starter aurarum

    (@aurarum)

    ok. we can close this topic. thank you for your assistance.

    it appears the same issue with plugin disabled.

    Hi @aurarum,

    I understand you’d like to close the topic, but before we wrap up, I wanted to check if you’ve had a chance to contact your hosting provider as recommended earlier, so they can review the server error logs and help pinpoint the cause of the HTTP 500 error.

    If possible, could you also try switching your site to PHP version 8.3? This version has been stable in my testing, and my test site running WooCommerce 10.0.4 with PHP 8.3 is working correctly without any PHP errors.

    If you can give that a try, please let us know how it goes — it might help get the site running smoothly on PHP 8.

    Let’s see how it goes!

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    I’m going to mark this as resolved, as we haven’t heard back from you in a while. Please open a new thread if you need further assistance.

    We’d really appreciate if you could take a moment to leave us a review: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/

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

The topic ‘PHP 8.0 not working’ is closed to new replies.