• Resolved Bizberg Themes

    (@bizbergthemes)


    [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)
  • Sadly, these seems to be reported more than a year.
    https://www.ads-software.com/support/topic/undefined-index-r-error/
    https://www.ads-software.com/support/topic/undefined-index-r/

    The plugin last update: 1 year ago.
    Don’t know if it’s already dead yet?

    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?

    (@aidvu)

    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?

    (@aidvu)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Errors’ is closed to new replies.