Support » Plugin: Debug Bar Slow Actions » Some errors

  • Resolved LehaMotovilov

    (@lehamotovilov)


    Warning array_pop() expects parameter 1 to be array, null given 1
    wp-content/plugins/debug-bar-slow-actions/debug-bar-slow-actions.php:63

    Warning Invalid argument supplied for foreach() 1
    wp-content/plugins/debug-bar-slow-actions/debug-bar-slow-actions.php:88

    Notice Undefined index: time 1
    wp-content/plugins/debug-bar-slow-actions/debug-bar-slow-actions.php:88

    Notice Undefined index: count 1
    wp-content/plugins/debug-bar-slow-actions/debug-bar-slow-actions.php:93

    https://wordpress.org/plugins/debug-bar-slow-actions/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konstantin Kovshenin

    (@kovshenin)

    Should be fixed in 0.8.2, thanks for reporting!

    Всегда пожалуйста 🙂

    I experienced the same issue, fixed by changing this:
    $time = array_pop( $this->flow['wp_footer']['stack'] );
    to this:

    $time = ( ! empty( $this->flow['wp_footer'] ) && is_array( $this->flow['wp_footer']['stack'] ) )
    			? array_pop( $this->flow['wp_footer']['stack'] )
    			: false;

    on line 63 in debug-bar-slow-actions.php

    Thanks for the great plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Some errors’ is closed to new replies.