• Resolved WSA

    (@beascott)


    I have had this issue for a while and yet to resolve.I have debug completely turned off via plugin- everything set to false and double checked wp-config.php file. Having visible debug error messages showing up on website pages. THis is one example I see:
    Notice: Undefined variable: category_slug in /home2/…./public_html/wp-content/plugins/woocommerce-customer-who-viewed-this-item-also-viewed/woocommerce-customer-also-viewed-this-item.php on line 244

    If I turn debug back on this goes away. Cleared caches, disabled plugin etc and nothing works other than turning debug back on. Any ideas how to resolve.

    https://www.ads-software.com/plugins/debug/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter WSA

    (@beascott)

    Looks like I was able to fix by adding @ini_set( ‘display_errors’, 0 ); after define( ‘WP_DEBUG_DISPLAY’, false );

    Plugin Author SoniNow

    (@soninow)

    Hi beascott,
    @ini_set( ‘display_errors’, 0 ); is a php default function that allow to display errors on screen or not and define( ‘WP_DEBUG_DISPLAY’, false ); is WordPress defined constant that indirectly changed php ini_set(‘display_errors’, 0/1);

    you may also change it on php.ini file on server.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Visible Debug Messages on HTML but turned off?’ is closed to new replies.