PHP 8.0 breaks Add To Cart – cart won’t populate

This topic has 10 replies, 2 voices, and was last updated 2 months, 4 weeks ago ago by Tony Rodriguez

  • Avatar: DM661
    DM661
    Participant
    August 1, 2024 at 00:04

    Upgrading from PHP 7.4 to 8.0 breaks the add to cart functionality. Pressing add to cart just causes the spin graphic to go on forever.

    9 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    August 1, 2024 at 06:38

    Hello, @DM661,

    Thank you for contacting us and for using XStore.

    Please record a video of the problem for a better understanding. Upload it on a filesharing service, for example – https://wetransfer.com/ , and provide us with URL.

    Furthermore, we would appreciate it if you could create temporary wp-admin access and share the details via the private content area. This will allow us to review your settings and better understand the issue at hand and help you.

    We kindly recommend that you take a complete backup of your site before proceeding.

    Thank you for your cooperation and we look forward to hearing from you soon.

    Best Regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: DM661
    DM661
    Participant
    August 2, 2024 at 01:03

    LInk to video in private area.

    Please contact administrator
    for this information.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    August 2, 2024 at 05:26

    Hello, @DM661,

    Thank you for your response.

    In order to assist you with your inquiry, we request that you provide us with URL and temporary access to the wp-admin of your website. This will enable us to take a closer look at your settings and provide you with a more accurate and specific solution.

    To do this, please follow these steps:
    – Create an account via Dashboard (Users > Add new) with administrator role. Refer to the following image for guidance: http://prntscr.com/s3rc9m
    – Provide us with the username and password for the newly created account via the Private Content area. Refer to the following image for guidance: http://prntscr.com/s5mao7
    – Any email address can be used for the new account, it does not have to be your personal email.

    We kindly recommend that you take a complete backup of your site before proceeding.

    Please let us know once you have completed these steps, and we will promptly review your account information and provide assistance as soon as possible.

    Kind Regards,
    8theme team

    Please contact administrator
    for this information.
    Avatar: DM661
    DM661
    Participant
    August 2, 2024 at 16:15

    I’ve provided a link to the Dashboard.

    Please contact administrator
    for this information.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    August 3, 2024 at 05:30

    Hello, @DM661,

    Thank you for your prompt response.

    We are pleased to inform you that the issue you reported has been successfully resolved. Please clear your browser cache and revisit your site to confirm that the changes have taken effect.

    As part of the resolution process, we have disabled the Ajax Add to Cart option. You can find this setting under XStore > Theme Options > WooCommerce > Single Product Builder > Add to Cart & Quantity.

    For your reference, we have included a screenshot in the private content area of our correspondence.

    We hope this resolves your issue. Should you require further assistance, please do not hesitate to contact us.

    Best Regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: DM661
    DM661
    Participant
    August 6, 2024 at 17:13

    This is not fixed. When changing to PHP8.0 I get the attached error for the whole site after trying to add the product to the cart.

    Files is visible for topic creator and
    support staff only.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    August 7, 2024 at 05:53

    Hello, @DM661,

    Thank you for your prompt response.

    We are pleased to inform you that upon reviewing your website, we have not identified any issues. To provide you with a clear reference, we have recorded a video walkthrough. You can access this video in the private content area provided.

    Please clear your browser cache and check again.

    Should you require any further assistance, please do not hesitate to contact us.

    Best Regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: DM661
    DM661
    Participant
    August 7, 2024 at 16:08

    Everything works in your video because I had to revert to PHP 7.4

    I cannot leave the site on PHP 8 because the whole host server fails. I’ll record a video and send it over showing what happens.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    August 8, 2024 at 05:13

    Hello, @DM661,

    Thank you for your response.

    1/ Sure, take your time to record a video and share it with us.

    2/ We would like to kindly request that you set your PHP version to 8.0. Should a critical error occur following this update, Please enable debug mode in WordPress – https://wordpress.org/support/article/debugging-in-wordpress/ to find out what error appears on your site, it will point you in the right direction what needs to be fixed.
    Check fatal error info in WooCommerce > Status > Logs.

    We hope this information is helpful.

    Best Regards,
    8Theme’s Team

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.