My website crashed after upgrading to PHP 8.1

This topic has 9 replies, 3 voices, and was last updated 6 months, 3 weeks ago ago by CodedP

  • Avatar: CodedP
    CodedP
    Participant
    September 29, 2023 at 00:02

    Hi,

    I recently attempted to upgrade my PHP because I am getting warnings that the current one is deprecated, however when I updated to php 8.1, I got a critical error on my website and had to downgrade. I want to upgrade because of the security warnings. Help please. Thanks.

    Please, contact administrator
    for this information.
    8 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 29, 2023 at 07:57

    Hello, CodedP,

    Thank you for contacting us and for using XStore.

    What exactly critical error did you get? Please check the server error log.

    XStore is compatible with PHP 8.1, so the problem can be caused by a 3rd party plugin or something else.

    Do you have a staging site where we can check the problem more deeply? Please provide temporary wp-admin and FTP access.

    Kind Regards,
    8theme team

    Avatar: CodedP
    CodedP
    Participant
    September 30, 2023 at 01:26

    Thanks,

    I got a white screen and a message that said critical error on everypage but the homepage.

    I do have a staging site and have created an account for you.

    Please contact administrator
    for this information.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    September 30, 2023 at 06:05

    Hello, @CodedP,

    We have recently conducted a review of the issue you reported on your staging site. Our findings indicate that the PHP version currently in use on your staging site is 7.4, and the site appears to be functioning correctly. Please refer to the attached screenshots for further details.

    https://postimg.cc/svvzCL2B
    https://postimg.cc/bGjfbN9b

    We kindly request that you upgrade the PHP version on your staging site to 8.1 and reassess the situation. If the issue persists, we recommend disabling all third-party plugins on your staging site sequentially to identify any potential incompatibilities with PHP version 8.1.

    Should the issue continue to persist after these steps, we would appreciate it if you could provide us with the login details and path in CPanel for your staging site. Please share this information in the private content area of this topic. This will enable us to further investigate the issue on your site and provide the necessary assistance.

    We look forward to your prompt response.

    Best Regards,
    8Theme’s Team

    Avatar: CodedP
    CodedP
    Participant
    September 30, 2023 at 07:18

    YEs, I know it is 7.4, I had an issue trying to upgrade. That’s why I submitted this ticket. I already did try and I already provided login in details as the previous rep requested.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    September 30, 2023 at 09:54

    Hello, @CodedP,

    We apologize for any confusion in our previous communication. We would like to request the URL and login credentials for the Cpanel of your staging site. This will allow us to attempt a change in the PHP version and further investigate the issue you are experiencing on your site.

    Please provide us with the necessary Cpanel login details in the private content area of the topic.

    We appreciate your cooperation and look forward to resolving this issue promptly.

    Best Regards,
    8Theme’s Team

    Avatar: CodedP
    CodedP
    Participant
    September 30, 2023 at 22:05

    Hello @Tony Rodriguez,

    No worries. I tried it again and it worked on the staging site so I upgraded PHP on the main site and it crashed again. Let me add, that I first upgraded it to PHP 8.2 and it was fine. Then I saw your note that XStore is compatible with PHP 8.1 so I downgraded it to 8.1 and then it crashed.

    It started with the photos not loading and the ninja forms not loading as well. So I went back down to 7.4 and it was fine again.

    For some reason, PHP 8.1 is still okay on the staging site.

    I was thinking I will wait a week and make sure it’s stable on the staging site then try again. Maybe I messed up by going from PHP 7.4 to 8.2 to 8.1 in less than 15 minutes.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    October 2, 2023 at 07:56

    Hello, @CodedP,

    Thank you for the update and for taking the time to troubleshoot this issue. It’s great to hear that it worked on the staging site initially. Upgrading PHP versions can sometimes be a bit tricky, and it seems like there might be some compatibility issues with PHP 8.1 on the main site.

    Going from PHP 7.4 to 8.2 to 8.1 in such a short time frame could indeed lead to complications, as different PHP versions can have varying requirements and dependencies.

    Your plan to wait a week and ensure stability on the staging site before attempting the upgrade again is a prudent approach. It gives you the opportunity to thoroughly test and identify any potential issues in a controlled environment.

    If you encounter any more problems or have further questions during the process, please don’t hesitate to reach out. We’re here to assist and make sure the transition to PHP 8.1 is as smooth as possible.

    Best Regards,
    8Theme’s Team

    Avatar: CodedP
    CodedP
    Participant
    October 12, 2023 at 00:34

    Hi @Tony Rodriguez,

    Quick update. I upgraded to php 8.1 successfully. The issue was that I needed to first update the plugins on the live site. Once I did that, the update worked. Thanks.

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

The issue related to '‘My website crashed after upgrading to PHP 8.1’' has been successfully resolved, and the topic is now closed for further responses

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