• Resolved magicice

    (@magicice)


    Hi Team,

    WordPress is nudging me to upgrade php to version 8.3. When I select php version 8.3 and apply it – I get this error on the cart page and cannot proceed to checkout.

    screenshot : https://imgur.com/a/cjWo8RF

    When I revert to php version 7.4 the issue goes away.

    I contacted my hosting support team and they identified the issue is with the Botiga theme. which is correct as I changed php version to 8.3 on another website with an Astra theme with any issues.

    It appears that the Botiga theme doesn’t support the newer PHP version.

    Can you please fix this?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @magicice,

    Thank you for reaching out and sorry for the trouble there.

    I have just tested Botiga with PHP 8.3 and 8.4.10 but I cannot reproduce the same issue on the cart page as shown in this screenshot.

    When a fatal error is reported on a site, WordPress usually sends the admin user an email containing a stack trace of the cause of the error. If you have an admin user, would you mind checking your email and sharing a copy of the error reported from WordPress.

    I’m looking forward to helping you figure this out!

    Thread Starter magicice

    (@magicice)

    Hi Kenneth @kmacharia ,

    Thanks for your help in troubleshooting this.

    Here is a screenshot of the email https://imgur.com/a/EsFFST6

    Looking forward to solving this.

    Thanks

    Hi @magicice

    Thank you for sharing the screenshot. It was very helpful.

    It looks like you have some custom code in Botiga’s functions.php file on line 674 that is not returning the right data type. The last line of code in Botiga v2.3.5 is line 668 as shown in this screenshot. Would you mind temporarily commenting out the custom code and check if it resolves the issue for you?

    Thank you!

    Thread Starter magicice

    (@magicice)

    Hi @kmacharia ,

    Yes, the custom code was the issue. Deleting the custom code resolved the issue.

    Thank you so much for your help with this.

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

The topic ‘Error after PHP 8.3 update’ is closed to new replies.