• Resolved selina27

    (@selina27)


    I normally use Complianz on one of my sites. Since last week it causes warnings in my dashbord.

    Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /data/web/e24508/html/apps/wordpress-87036/wp-includes/formatting.php on line 1596

    Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /data/web/e24508/html/apps/wordpress-87036/wp-includes/formatting.php on line 2259

    Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /data/web/e24508/html/apps/wordpress-87036/wp-includes/formatting.php on line 1596

    Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /data/web/e24508/html/apps/wordpress-87036/wp-includes/formatting.php on line 2259

    Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /data/web/e24508/html/apps/wordpress-87036/wp-includes/formatting.php on line 1596

    Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /data/web/e24508/html/apps/wordpress-87036/wp-includes/formatting.php on line 2259

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @selina27,

    We will take a closer look at the cause of the warning itself, to resolve them in a future version of the plugin.

    But as your environment is displaying these PHP warnings, it seems that you might have Debugging enabled on the website in question. If that is the case, you can stop these warnings from appearing by disabling debugging (set WP_DEBUG to false): https://ww.wp.xz.cn/documentation/article/debugging-in-wordpress/

    Kind regards, Jarno

    Thread Starter selina27

    (@selina27)

    Thank you very much!

    When i check the config.php file it says the debug function is set to false.

    I added the following

    ini_set('display_errors','Off'); 

    ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); 

    define('WP_DEBUG_DISPLAY', false

    • This reply was modified 3 years, 1 month ago by selina27.
    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    @selina27 currently this warning can show up when you have cookies without a service.

    An additional check will be added in one of the coming releases. Until then, you can safely ignore this warning, as it’s just a deprecated warning, not an error.

    As long as you see these warnings directly on your dashboard, you have some form of error reporting enabled, which is usually not recommended. If you have disabled it in your wpconfig, it might be enabled by a plugin, or by your hosting company.

    Hope this helps.

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

The topic ‘Deprecated’ is closed to new replies.