Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #181515

    Hi!

    I use this code in my functions php as mentioned in some of your answers:

    require_once( ‘functions-enfold.php’);

    add_filter(‘avf_debugging_info’, ‘remove_debugging_info’, $info);
    function remove_debugging_info($info) {
    $info = ”;
    }

    When i debug my wp installation i get this message:

    Notice: Undefined variable: info in /var/www/vhosts/xxxxxxxxxxx.com/httpdocs/wp-content/themes/enfold/functions.php on line 469

    The line 469 is this one:

    add_filter(‘avf_debugging_info’, ‘remove_debugging_info’, $info);

    How can i solve this Problem?

    Thank you so much

    • This topic was modified 9 months ago by  chooseone.
    • This topic was modified 9 months ago by  chooseone.
    #181943

    Hey chooseone!

    Use following code instead

    
    add_filter('avf_debugging_info', 'remove_debugging_info', 10, 1);
    function remove_debugging_info($info) {
    return false;
    }
    

    Best regards,
    Peter

    #182637

    Hi!

    The new code also dont work – the same error! any other idea???

    best

    #182894

    Hi!

    Yes, I didn’t notice that the filter call was invalid. I changed my code and it should work now.

    Regards,
    Peter

    #183297

    Hey Peter!

    Thx, your new code works fine.
    best

    #183309

    Hi!

    Great :)

    Regards,
    Peter

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Debug error’ is closed to new replies.