• Resolved jimalbers

    (@jimalbers)


    I installed the plugin GDPR/CCPA Cookie Consent. I got a fatal error immediately after installing.

    Fatal error: Uncaught TypeError: Argument 2 passed to de_DE\de_DE::sanitizeTitle() must be of the type string, null given, called in /homepages/38/d823396234/htdocs/clickandbuilds/DeinReisebroOnline/wp-includes/class-wp-hook.php on line 305 and defined in /homepages/38/d823396234/htdocs/clickandbuilds/DeinReisebroOnline/wp-content/plugins/de_de/de_DE.php:310 Stack trace: #0 /homepages/38/d823396234/htdocs/clickandbuilds/DeinReisebroOnline/wp-includes/class-wp-hook.php(305): de_DE\de_DE->sanitizeTitle('', NULL) #1 /homepages/38/d823396234/htdocs/clickandbuilds/DeinReisebroOnline/wp-includes/plugin.php(189): WP_Hook->apply_filters('', Array) #2 /homepages/38/d823396234/htdocs/clickandbuilds/DeinReisebroOnline/wp-includes/formatting.php(2193): apply_filters('sanitize_title', NULL, NULL, 'save') #3 /homepages/38/d823396234/htdocs/clickandbuilds/DeinReisebroOnline/wp-content/plugins/complianz-gdpr/cookie/class-cookie-admin.php(3925): sanitize_title(NULL) #4 /homepages/38/d823396234/htdocs/clickandbuilds/DeinReisebroOnline/wp-c in /homepages/38/d823396234/htdocs/clickandbuilds/DeinReisebroOnline/wp-content/plugins/de_de/de_DE.php on line 310

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    You are using a plugin, de_de, which is not updated in 2 years, and tested up 5.4.

    The problem is caused by the sanitize_title function, which ensures that the passed data is converted to a string. In some cases in Complianz, a NULL value may be passed. The sanitize_title function ensures that NULL values will also get converted to strings.

    The de_de plugin however, has declared the raw_title variable must be a string. Because of this type declaration, the passed null value (not a string) causes the fatal error.

    I would recommend to either uninstall the de_de plugin, or contact the plugin author to update this function to ensure also non-strings can get sanitized.

    Let me know if you have any questions.

    Thread Starter jimalbers

    (@jimalbers)

    Hello Rogier,

    Thank you for your swift reply! The big problem I am facing is that I cannot enter my WP dashboard anymore because of this error. Is there anyway I can disable or update the plugin a different way?

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @jimalbers,

    If you connect to your server over FTP (detailed info here), navigate to the folder /wp-content/plugins/ and rename the folder of the plugin(s) you wish to deactivate. I would recommend renaming it to something easily recognizable.

    Renaming a plugin(s) folder to anything else that is not in use yet, will cause that plugin to be deactivated.

    Kind regards,
    Jarno

    • This reply was modified 4 years, 2 months ago by Jarno Vos.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error after installing Complianz’ is closed to new replies.