• Resolved tsvetepopp

    (@tsvetepopp)


    Hello Team,

    I've been receiving this message from my host for some time now:

    There seems to be a compatibility issue with PHP version 8.2.29, which my host uses for my site.

    Please help me ;-)



    PHP Fatal error:  Declaration of Psr\Log\AbstractLogger::emergency($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = []): void in (xxx website) on line 22
    <!DOCTYPE html>
    <html lang="en-US">
    <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
                    <meta name='robots' content='noindex, follow' />
            <title>WordPress &rsaquo; Error</title>
            <style type="text/css">
                    html {
                            background: #f1f1f1;
                    }
                    body {
                            background: #fff;
                            border: 1px solid #ccd0d4;
                            color: #444;
                            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
                            margin: 2em auto;
                            padding: 1em 2em;
                            max-width: 700px;
                            -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
                            box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
                    }
                    h1 {
                            border-bottom: 1px solid #dadada;
                            clear: both;
                            color: #666;
                            font-size: 24px;
                            margin: 30px 0 0 0;
                            padding: 0;
                            padding-bottom: 7px;
                    }
                    #error-page {
                            margin-top: 50px;
                    }
                    #error-page p,
                    #error-page .wp-die-message {
                            font-size: 14px;
                            line-height: 1.5;
                            margin: 25px 0 20px;
                    }
                    #error-page code {
                            font-family: Consolas, Monaco, monospace;
                    }
                    ul li {
                            margin-bottom: 10px;
                            font-size: 14px ;
                    }
                    a {
                            color: #2271b1;
                    }
                    a:hover,
                    a:active {
                            color: #135e96;
                    }
                    a:focus {
                            color: #043959;
                            box-shadow: 0 0 0 2px #2271b1;
                            outline: 2px solid transparent;
                    }
                    .button {
                            background: #f3f5f6;
                            border: 1px solid #016087;
                            color: #016087;
                            display: inline-block;
                            text-decoration: none;
                            font-size: 13px;
                            line-height: 2;
                            height: 28px;
                            margin: 0;
                            padding: 0 10px 1px;
                            cursor: pointer;
                            -webkit-border-radius: 3px;
                            -webkit-appearance: none;
                            border-radius: 3px;
                            white-space: nowrap;
                            -webkit-box-sizing: border-box;
                            -moz-box-sizing:    border-box;
                            box-sizing:         border-box;

                            vertical-align: top;
                    }

                    .button.button-large {
                            line-height: 2.30769231;
                            min-height: 32px;
                            padding: 0 12px;
                    }

                    .button:hover,
                    .button:focus {
                            background: #f1f1f1;
                    }

                    .button:focus {
                            background: #f3f5f6;
                            border-color: #007cba;
                            -webkit-box-shadow: 0 0 0 1px #007cba;
                            box-shadow: 0 0 0 1px #007cba;
                            color: #016087;
                            outline: 2px solid transparent;
                            outline-offset: 0;
                    }

                    .button:active {
                            background: #f3f5f6;
                            border-color: #7e8993;
                            -webkit-box-shadow: none;
                            box-shadow: none;
                    }

                            </style>
    </head>
    <body id="error-page">
            <div class="wp-die-message"><p>There has been a critical error on this website.</p><p><a href="https://ww.wp.xz.cn/documentation/article/faq-troubleshooting/">Learn more about troubleshooting WordPress.</a></p></div></body>
    </html>

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Antonio Candela

    (@antoiub)

    Hello @tsvetepopp ,

    Thank you for reaching out, and I’m sorry to hear about the issue.

    Looking at the error, it doesn’t seem to originate from Complianz but rather from the PHP side. Could you please confirm if the error disappears when Complianz is disabled? If so, could you share more detailed logs with us? This will help us better understand what’s going on.
    If the error keeps appearing with Complianz disabled, it means that it is not caused by our plugin.

    Let us know.
    Best regards,
    Antonio

    Thread Starter tsvetepopp

    (@tsvetepopp)

    Hello team,

    Thank you for your message – the error disappears as soon as I deactivate the Compliance plugin.

    I’m currently using PHP 8.2.29, and the error only appeared after my provider updated the PHP version.

    It looks like Compliance version 7.4.2 is having problems with PHP 8.2.29

    Thank you for your help.

    Best regards, Tsvete

    Plugin Support Antonio Candela

    (@antoiub)

    Hello @tsvetepopp ,

    Thank you for the details. In some cases, when updating the PHP version with certain providers, our plugin may produce errors. To resolve this, a clean uninstall and reinstall of the plugin is usually sufficient.

    You can perform a clean uninstall by going to Tools > Data and checking “Clear all data from Complianz on uninstall”. Then reinstall the plugin.

    I hope this helps.
    Best regards,
    Antonio

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

The topic ‘PHP Fatal error: Line 22’ is closed to new replies.