• Resolved jordiniubo

    (@jordiniubo)


    Hello,
    My php (8.0.13) is printing a bunch of warnings like this:
    PHP Warning: Undefined variable $file in /usr/home/example.com/web/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-functions.php on line 1112

Viewing 1 replies (of 1 total)
  • @jordiniubo These are warnings it won’t stop the functionality of WP-optimie working on your site.

    If you are seeing the warnings in WordPress dashabord, the you can suppress the warnings byt editing wp-config.php file and

    Replace

    define('WP_DEBUG', false);

    with this:

    ini_set('log_errors','On');
    
    ini_set('display_errors','Off');
    
    ini_set('error_reporting', E_ALL );
    
    define('WP_DEBUG', false);
    
    define('WP_DEBUG_LOG', true);
    
    define('WP_DEBUG_DISPLAY', false);
Viewing 1 replies (of 1 total)

The topic ‘php warnings in latest version’ is closed to new replies.