Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’m encountering a deprecated notice related to the MyCLabs\Enum\Enum class within the Give plugin on my WordPress site, and I have not been able to suppress it despite following several troubleshooting steps. Furthermore I would like support to solve this, your plugin has been having this error for months.

    Steps Taken:

    1. Adjusted WP_DEBUG Settings:
      • I edited the wp-config.php file to include the following lines
      • define(‘WP_DEBUG’, true); define(‘WP_DEBUG_LOG’, true); define(‘WP_DEBUG_DISPLAY’, false); @ini_set(‘display_errors’, 0);
      • Despite this, the deprecated notice continues to display on my site.
    2. Attempted to Suppress the Notice in php.ini:
    3. As I’m on Hostinger, I modified the PHP settings through the Hostinger control panel to disable display_errors. However, the notice persists.

    Now i think the only thing for me to do is Directly Edit the Plugin File:

    • I located the Enum.php file mentioned in the error and can add the #[\ReturnTypeWillChange] attribute to the jsonSerialize() method: Obviously im concerned on the plugin updates overwriting these changes. I dont think I should have to do this


Viewing 1 replies (of 1 total)