Title: PHP Errors
Last modified: September 29, 2021

---

# PHP Errors

 *  Resolved [Bizberg Themes](https://wordpress.org/support/users/bizbergthemes/)
 * (@bizbergthemes)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-errors-248/)
 * [29-Sep-2021 05:11:18 UTC] PHP Notice: Undefined index: duration in H:\xampp\
   htdocs\demo\wp-content\plugins\debug-bar\panels\class-debug-bar-wp-http.php on
   line 161
    [29-Sep-2021 05:11:18 UTC] PHP Notice: Undefined index: duration in
   H:\xampp\htdocs\demo\wp-content\plugins\debug-bar\panels\class-debug-bar-wp-http.
   php on line 170 [29-Sep-2021 05:11:18 UTC] PHP Notice: Undefined index: r in 
   H:\xampp\htdocs\demo\wp-content\plugins\debug-bar\panels\class-debug-bar-wp-http.
   php on line 174 [29-Sep-2021 05:11:18 UTC] PHP Notice: Undefined index: r in 
   H:\xampp\htdocs\demo\wp-content\plugins\debug-bar\panels\class-debug-bar-wp-http.
   php on line 177 [29-Sep-2021 05:11:18 UTC] PHP Notice: Trying to access array
   offset on value of type null in H:\xampp\htdocs\demo\wp-content\plugins\debug-
   bar\panels\class-debug-bar-wp-http.php on line 177 [29-Sep-2021 05:11:18 UTC]
   PHP Notice: Trying to access array offset on value of type null in H:\xampp\htdocs\
   demo\wp-content\plugins\debug-bar\panels\class-debug-bar-wp-http.php on line 
   177

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [vee](https://wordpress.org/support/users/okvee/)
 * (@okvee)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-248/#post-15254696)
 * Sadly, these seems to be reported more than a year.
    [https://wordpress.org/support/topic/undefined-index-r-error/](https://wordpress.org/support/topic/undefined-index-r-error/)
   [https://wordpress.org/support/topic/undefined-index-r/](https://wordpress.org/support/topic/undefined-index-r/)
 * The plugin last update: _1 year ago_.
    Don’t know if it’s already dead yet?
 *  [vee](https://wordpress.org/support/users/okvee/)
 * (@okvee)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-248/#post-15254730)
 * I have update the code and created diff/patch for this.
 *     ```
       ***************
       *** 160,161 ****
       ! 				$this->is_request_error( $r['r'] )
       ! 				|| $r['args']['duration'] > $this->time_limit
       --- 160,168 ----
       ! 				(
       ! 					isset($r['r']) &&
       ! 					$this->is_request_error( $r['r'] )
       ! 				)
       ! 				|| 
       ! 				(
       ! 					isset($r['args']['duration']) &&
       ! 					$r['args']['duration'] > $this->time_limit
       ! 				)
       ***************
       *** 170 ****
       ! 			$duration = number_format( $r['args']['duration'], 1 );
       --- 177 ----
       ! 			$duration = number_format( (isset($r['args']['duration']) ? $r['args']['duration'] : 0), 1 );
       ***************
       *** 174 ****
       ! 			if ( is_wp_error( $r['r'] ) ) {
       --- 181 ----
       ! 			if ( isset($r['r']) && is_wp_error( $r['r'] ) ) {
       ***************
       *** 177 ****
       ! 				$code = esc_html( $r['r']['response']['code'] );
       --- 184 ----
       ! 				$code = (isset($r['r']) ? esc_html( $r['r']['response']['code'] ) : '0');
       ***************
       *** 194 ****
       ! 			<td colspan="5"><pre>{$details}</pre></td>
       --- 201 ----
       ! 			<td colspan="5"><pre style="max-height: 500px; overflow: auto; width: 70vw;">{$details}</pre></td>
       ```
   
 * I hope that it can be fix for anyone who have the same problem.
 *  Plugin Contributor [Andrija Vučinić](https://wordpress.org/support/users/aidvu/)
 * (@aidvu)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-errors-248/#post-15602964)
 * Hey there,
 * sorry for taking a while to respond. Will take a look at the patch and merge 
   it next week, most likely.
 *  Plugin Contributor [Andrija Vučinić](https://wordpress.org/support/users/aidvu/)
 * (@aidvu)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-errors-248/#post-15603907)
 * Thanks [@okvee](https://wordpress.org/support/users/okvee/). Released new version:
   [https://plugins.trac.wordpress.org/browser/debug-bar/tags/1.1.3/debug-bar.php?rev=2716447](https://plugins.trac.wordpress.org/browser/debug-bar/tags/1.1.3/debug-bar.php?rev=2716447)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Errors’ is closed to new replies.

 * ![](https://ps.w.org/debug-bar/assets/icon.svg?rev=3050748)
 * [Debug Bar](https://wordpress.org/plugins/debug-bar/)
 * [Support Threads](https://wordpress.org/support/plugin/debug-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-bar/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Andrija Vučinić](https://wordpress.org/support/users/aidvu/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/php-errors-248/#post-15603907)
 * Status: resolved