Give Plugin Not compatible with php versions from 8.1.27 and above
-
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
-
Hi, @dunoss.
Glad you reached out.
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 your case, this warning message indicates that a specific class is deprecated.
In the meantime while we 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:
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. Also, there is some official documentation on that: https://codex.wordpress.org/WP_DEBUG
Feel free to reach out to us if you have any further inquiries or require additional assistance. We’re always happy to help!
Thank for your response !
but there is an error related to displaying images and files in media
please check this ( with PHP version 8.1.27 and above ) :
When the Give Donation plugin is activated > Media is empty
When the Give Donation plugin is deactivated> Media displays normally
WP Version: ❌ 6.4.2 - There is a newer version of WordPress available (6.4.3) WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: ✔ WP Cron: ✔ Language: en_US External object cache: – Server Environment Server Info: nginx/1.12.2 PHP Version: 8.1.27 PHP Post Max Size: 8 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.29.0 NSS/3.36 SUHOSIN Installed: – MySQL Version: 5.5.60-MariaDB Max Upload Size: 8 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔Hi @dunos,
I cannot reproduce this. I tested with PHP 8.1.23 and PHP 8.2.8.
I don’t have PHP 8.1.27 specifically but I doubt it would make a difference here.
Can you test if it’s a combination of GiveWP and another plugin or the theme?Hello, I experience the same issue as @dunos, I also use PHP 8.1.27 and the issue can be seen on the default WordPress theme Twenty Twenty Four with the only Give plugin activated.
Please see the screenshot: https://prnt.sc/9AKScL591tZY
Besides, when using Elementor plugin there is also a problem as Elementor editor doesn’t load https://prnt.sc/21nmMfNQKMDD
Those problem are crucial for using the Give plugin. Could you please check and let me know when they will be fixed.
Thank you very much!
Hi folks,
I just wanted to post an update here.
It looks like both of you are running PHP 8.1.27 and a WordPress Multisite installation.
I have tested this on a multisite using PHP 8.1.23 and PHP 8.2.8 but I have not been able to reproduce the issue. I’m coordinating with other team members to try to pin point the cause of the problem.
Thanks for your patience.Hi @juliarrr
I’m also planning to talk about the issue of not being able to edit page with elementor when activating the Give donation plugin
I don’t have wordpress multisite installed @mrdaro
Hi,
I also tested it on the single website and there is the same problem as well https://prnt.sc/1i0r_a-KYgoI
Waiting for the solution. Thank you!
Hi folks,
If you can, please reach out via https://givewp.com/contact-us/ and in subject of inquiry, select I am responding to a request to contact you.
Then, add a link to this ticket in the message field. And we will work from there.
Hi, I sent the request. Waiting for your reply.
Hi folks,
I was finally able to reproduce the issue, and I found a workaround that is explained in this video:
https://www.loom.com/share/1e391d6ecc2f41a28c9b26c00bda51e8?sid=fbf9834f-0eff-4a09-94c6-023636714cd8
TL;DR Set WP_DEBUG_DISPLAY to false in your wp-config.php filedefine( 'WP_DEBUG_DISPLAY', true );
Hope it helps!There’s a mistake in my last response.
The linse should read:define( 'WP_DEBUG_DISPLAY', false );Hi,
The solution you gave is only temporary and the incompatibility error is still there, please fix it in the next versions
Hi, @dunoss.
Yes, the fix is temporary. Our team will work to get it fixed in the next releases.
Thanks for using GiveWP! Have a great day.
The topic ‘Give Plugin Not compatible with php versions from 8.1.27 and above’ is closed to new replies.