• Resolved Grafikx

    (@grafikx)


    Hi !

    I have a problem on a website. I get 2 errors when I enable CSS minification and merging.

    Errors appear on the frontend :

    Warning : Illegal offset type in isset or empty in /wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-front-end.php on line 708

    Warning : Illegal offset type in /wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-front-end.php on line 739

    Obviously, as soon as I uncheck these 2 options at the CSS level, the errors disappear. I tried excluding the affected CSS files but it doesn’t work.

    Im on WordPress 6.0.1, Elementor 3.6.6 and PHP 7.4.

    Do you have a solution ?`

Viewing 2 replies - 1 through 2 (of 2 total)
  • @grafikx Could you please edit 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);

    Let us know if replacing with the above lines the warnings goes away?

    Thread Starter Grafikx

    (@grafikx)

    Hi @bornforphp !

    Sorry for my late response ! But actually it works.
    This makes the display of errors disappear.

    But do you know what causes these errors ?

    Thank you again for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning : Illegal offset type in isset or empty in…’ is closed to new replies.