Title: Error after PHP 8.3 update
Last modified: August 13, 2025

---

# Error after PHP 8.3 update

 *  Resolved [magicice](https://wordpress.org/support/users/magicice/)
 * (@magicice)
 * [10 months ago](https://wordpress.org/support/topic/error-after-php-8-3-update/)
 * 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](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)

 *  [Kenneth Macharia](https://wordpress.org/support/users/kmacharia/)
 * (@kmacharia)
 * [10 months ago](https://wordpress.org/support/topic/error-after-php-8-3-update/#post-18597432)
 * Hey [@magicice](https://wordpress.org/support/users/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](https://a.supportally.com/i/s0Xv1a).
   
   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](https://wordpress.org/support/users/magicice/)
 * (@magicice)
 * [10 months ago](https://wordpress.org/support/topic/error-after-php-8-3-update/#post-18598772)
 * Hi Kenneth [@kmacharia](https://wordpress.org/support/users/kmacharia/) ,
 * Thanks for your help in troubleshooting this.
 * Here is a screenshot of the email [https://imgur.com/a/EsFFST6](https://imgur.com/a/EsFFST6)
 * Looking forward to solving this.
 * Thanks
 *  [Kenneth Macharia](https://wordpress.org/support/users/kmacharia/)
 * (@kmacharia)
 * [10 months ago](https://wordpress.org/support/topic/error-after-php-8-3-update/#post-18599682)
 * Hi [@magicice](https://wordpress.org/support/users/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](https://a.supportally.com/i/kxnVLv). Would 
   you mind temporarily commenting out the custom code and check if it resolves 
   the issue for you?Thank you!
 *  Thread Starter [magicice](https://wordpress.org/support/users/magicice/)
 * (@magicice)
 * [10 months ago](https://wordpress.org/support/topic/error-after-php-8-3-update/#post-18600264)
 * Hi [@kmacharia](https://wordpress.org/support/users/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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/botiga/2.4.5/screenshot.png)
 * Botiga
 * [Support Threads](https://wordpress.org/support/theme/botiga/)
 * [Active Topics](https://wordpress.org/support/theme/botiga/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/botiga/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/botiga/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [magicice](https://wordpress.org/support/users/magicice/)
 * Last activity: [10 months ago](https://wordpress.org/support/topic/error-after-php-8-3-update/#post-18600264)
 * Status: resolved