Title: PHP Deprecated error with PHP 8.1
Last modified: October 2, 2024

---

# PHP Deprecated error with PHP 8.1

 *  Resolved [thejaydip](https://wordpress.org/support/users/iamjaydip/)
 * (@iamjaydip)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-deprecated-error-with-php-8-1/)
 * This is deprecation warning error showing with **PHP version** **8.1.29**:
 * PHP Deprecated: Return type of MyCLabs\Enum\Enum::jsonSerialize() should either
   be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange]
   attribute should be used to temporarily suppress the notice in wp-content/plugins/
   give/vendor/myclabs/php-enum/src/Enum.php on line 246
   When will you resolve this
   issue?

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

 *  Plugin Support [Robin Joshua Del Mundo](https://wordpress.org/support/users/robindelmundo/)
 * (@robindelmundo)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-deprecated-error-with-php-8-1/#post-18050574)
 * Hi **@**iamjaydip,
 * I hear you, that is a very frustrating situation, but I’m here to help.
 * Warning messages like this display when your site has “Debug Mode” turned on.
   Debug mode is a method for developers to use to find issues in their code and
   compatibility problems with different versions of PHP (the server language WordPress
   uses). Debug mode is usually only used on development sites or non-live sites.
   
   In the meantime, while you get the problem resolved, here’s how you can hide 
   those warnings: in your wp-config.php file (which you can get to via SFTP or 
   through your web host’s file manager) look for a line like this:
 * `define('WP_DEBUG', true);`
 * Replace it with the following lines:
 *     ```wp-block-code
       define('WP_DEBUG', true);define('WP_DEBUG_LOG', true);define('WP_DEBUG_DISPLAY', false);@ini_set('display_errors', 0);
       ```
   
 * Again, this method is normally only used for development, not on live sites.
 * If you need assistance with that, your web host should be able to help. Moreover,
   there is some official documentation on that: [https://codex.wordpress.org/WP_DEBUG](https://codex.wordpress.org/WP_DEBUG).
 * Please don’t hesitate to reach out to us if you have any further inquiries or
   require additional assistance.
 * We’re always happy to help!
 *  Thread Starter [thejaydip](https://wordpress.org/support/users/iamjaydip/)
 * (@iamjaydip)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-deprecated-error-with-php-8-1/#post-18050939)
 * Hi [@robindelmundo](https://wordpress.org/support/users/robindelmundo/),
   Thank
   you for your humble reply. Yes right, the site is in development mode. However,
   I want my site to be fully compatible with PHP version 8.1, and this plugin produces
   a warning errors when I enable PHP version 8.1. So, can you please tell me plugin
   compatible with PHP version 8.1?
 *  Plugin Support [Robin Joshua Del Mundo](https://wordpress.org/support/users/robindelmundo/)
 * (@robindelmundo)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-deprecated-error-with-php-8-1/#post-18061938)
 * Hi [@iamjaydip](https://wordpress.org/support/users/iamjaydip/),
 * Yes! The plugin is completely compatible with PHP versions 8.1 and 8.2. although
   you might see some deprecation notices or warnings. Our team is aware of those
   and are working on resolving them for the future. Deprecation notices and warnings
   don’t stop script execution, so rest assured that those won’t stop donations.
 * We are working to get it addressed, and you can follow up on the progress of 
   it here: [https://feedback.givewp.com/bug-reports/p/givewp-throws-deprecation-notices-for-php-81](https://feedback.givewp.com/bug-reports/p/givewp-throws-deprecation-notices-for-php-81).
 * The error there is a bit different from what you are seeing, but it’s a deprecation
   notice as well.
 * While we work on a fix, feel free to message us if you have further questions
   or need any additional assistance!
 * I’m always happy to help!
 *  Plugin Support [Robin Joshua Del Mundo](https://wordpress.org/support/users/robindelmundo/)
 * (@robindelmundo)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-deprecated-error-with-php-8-1/#post-18103434)
 * Hi [@iamjaydip](https://wordpress.org/support/users/iamjaydip/),
 * I haven’t heard back from you, so I’m going to mark this one as resolved.
 * If you still need assistance with this specific issue, please reply in here and
   I’ll jump back in to assist.
 * Thank you for choosing GiveWP!
 * Have a lovely day!

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

The topic ‘PHP Deprecated error with PHP 8.1’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

## Tags

 * [PHP Deprecated](https://wordpress.org/support/topic-tag/php-deprecated/)

 * 5 replies
 * 2 participants
 * Last reply from: [Robin Joshua Del Mundo](https://wordpress.org/support/users/robindelmundo/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/php-deprecated-error-with-php-8-1/#post-18103434)
 * Status: resolved