Support » Plugin: Parent Category AutoCheck + Category Tree Checklist » php Notice in Query Monitor (slows down all pages)

  • Resolved agentdesign

    (@agentdesign)


    
    Notice
    Undefined variable: cchl
    wp-content/plugins/yummi-auto-check-parent-category-category-tree-checklist/yummi-category-checklist.php:39
    Yummi_Category_Checklist::script()
    wp-includes/class-wp-hook.php:286+
    Plugin: yummi-auto-check-parent-category-category-tree-checklist
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @evilex!
    Love your plugin!
    Fix is quite easy, so if you please can add this code into your plugin code and release a new version, it would be really appreciate!

    Just take all your code from line 39 to 89 and wrap into this:

    if (isset($cchl)) {
    your code from line 39 to 89	
    }

    Cheers!

    Plugin Author EviLex

    (@evilex)

    @agentdesign Thank you for topic

    @optimizewordpress Thank you for fix

    Version 1.0.6 just released

    You’re welcome!
    Keep rocking!

    Hi,

    Sorry, but I still get Notice: ….yummi-auto-check-parent-category-category-tree-checklist/yummi-category-checklist.php on line 39

    even after a update.

    …..

    
    $cchl = get_option( 'cchl', $cchl );
          if (isset($cchl)) { ?>
    

    …..

    Still not looks right – $cchl is Undefined!

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘php Notice in Query Monitor (slows down all pages)’ is closed to new replies.