WordPress.org

Forums

Debug Bar Slow Actions
[resolved] Some errors (4 posts)

  1. LehaMotovilov
    Member
    Posted 1 year ago #

    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/

  2. Konstantin Kovshenin
    Member
    Plugin Author

    Posted 1 year ago #

    Should be fixed in 0.8.2, thanks for reporting!

  3. LehaMotovilov
    Member
    Posted 1 year ago #

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

  4. OriginalEXE
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Debug Bar Slow Actions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.