• Resolved marjolein64

    (@marjolein64)


    I’m using the “Always active’ addon (https://complianz.io/display-the-statistics-category-as-always-active/). Today, after updating to WordPress 6.5.2, I had a fatal error:

    PHP Fatal error: Uncaught Error: Call to undefined function cmplz_get_cookiebanners() in …/wp-content/mu-plugins/banner.php:44

    I had to remove this addon in folder mu-plugins to correct this error. Am I correct that this addon isn’t working anymore with the recent verion of WordPress?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @marjolein64,

    This should still work on WP 6.5.2. I just tried it myself by following the instructions on a fresh WP 6.5.2 environment, and it works without errors here (example).

    It looks like one of the files might have been removed in your case?

    Kind regards, Jarno

    Thread Starter marjolein64

    (@marjolein64)

    Hi Jarno,

    Thanks for your reply.
    You are right, I removed these files because of the fatal error.

    Today, with all updates installed, I added the necessary files again to the mu-plugin folder, but I still have the same error:

    Fatal error: Uncaught Error: Call to undefined function cmplz_get_cookiebanners() in /customers/a/d/7/wespenbestrijders.nl/httpd.www/wp-content/mu-plugins/banner.php:44 Stack trace: #0 /customers/a/d/7/wespenbestrijders.nl/httpd.www/wp-includes/class-wp-hook.php(324): regenerate_banner(”) #1 /customers/a/d/7/wespenbestrijders.nl/httpd.www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /customers/a/d/7/wespenbestrijders.nl/httpd.www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /customers/a/d/7/wespenbestrijders.nl/httpd.www/wp-settings.php(695): do_action(‘init’) #4 /customers/a/d/7/wespenbestrijders.nl/httpd.www/wp-config.php(78): require_once(‘/customers/a/d/…’) #5 /customers/a/d/7/wespenbestrijders.nl/httpd.www/wp-load.php(50): require_once(‘/customers/a/d/…’) #6 /customers/a/d/7/wespenbestrijders.nl/httpd.www/wp-blog-header.php(13): require_once(‘/customers/a/d/…’) #7 /customers/a/d/7/wespenbestrijders.nl/httpd.www/index.php(17): require(‘/customers/a/d/…’) #8 {main} thrown in /customers/a/d/7/wespenbestrijders.nl/httpd.www/wp-content/mu-plugins/banner.php on line 44

    Any idea what’s causing this?

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @marjolein64,

    It could simply occur because the Complianz plugin has been deactivated on your site, and if the MU Plugin is still enabled it will try to call a function which doesn’t exist (since Complianz is disabled).

    So, disable the MU Plugin files temporarily, re-activate the Complianz plugin and configure it (if you hadn’t done so already) and re-insert the MU Plugin files only when Complianz is enabled.

    Kind regards, Jarno

    Thread Starter marjolein64

    (@marjolein64)

    Hi Jarno,

    Yes, you are correct! I completely forgot that I had Complianz disabled. All is working now, thanks for your help!

    marjolein

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error after update to WordPress 6.5.2’ is closed to new replies.