• Resolved jdbarr

    (@jdbarr)


    SiteGround PHP set above 8.0.30 displays the error message below. SG managed PHP wants to use 8.2.22. Is there an update coming? Or, is there another issue? I downgraded PHP to 8.0.30, awaiting your reply.

    SG Plugins installed: Security Optimizer (active), SiteGround Migrator (inactive), Speed Optimizer (inactive)

    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?[path]/public_html/wp-content/plugins/give/vendor/myclabs/php-enum/src/Enum.php?on line?246

    Thank you in advance for your help.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @jdbarr.

    I’m 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.

    The fix for the issue is for us to update the third-party library used,.

    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:

    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.www.ads-software.com/WP_DEBUG

Viewing 1 replies (of 1 total)
  • The topic ‘Error on PHP above 8.0.30 on SiteGround’ is closed to new replies.