Title: Warning bugfix for debug-info.php
Last modified: October 7, 2024

---

# Warning bugfix for debug-info.php

 *  Resolved [inovagora](https://wordpress.org/support/users/inovagora/)
 * (@inovagora)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/warning-bugfix-for-debug-info-php/)
 * Hi,
 * We are using BuddyBoss that simulates the use of the BuddyPress plugin (some 
   other plugins or features may do something similar), so in debug-info.php the
   plugin “buddypress/bp-loader.php” is in the $active_plugins array but not in 
   the $plugin_details array, resulting in the following errors:
 * **Warning**: Undefined array key “buddypress/bp-loader.php” in **/data/html/wp-
   content/plugins/media-deduper/admin/debug-info.php** on line **46**
   **Warning**:
   Trying to access array offset on value of type null in **/data/html/wp-content/
   plugins/media-deduper/admin/debug-info.php** on line **46**
 * An easy fix is to faultproof the code with a check on the existence of the plugin
   in the $plugin_details array.
 * Replacement of :
 *     ```wp-block-code
       foreach ( $active_plugins as $key => $plugin ) {
           echo esc_html( $plugin_details[ $plugin ]['Name'] ) . ' | Version ' . esc_html( $plugin_details[ $plugin ]['Version'] ) . "\n";
       }
       ```
   
 * with :
 *     ```wp-block-code
       foreach ( $active_plugins as $key => $plugin ) {
           if ( isset( $plugin_details[ $plugin ] ) ) {
               echo esc_html( $plugin_details[ $plugin ]['Name'] ) . ' | Version ' . esc_html( $plugin_details[ $plugin ]['Version'] ) . "\n";
           }
       }
       ```
   
 * Could you please integrate this in your next release?
 * Thanks!

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

 *  Plugin Author [cornershop](https://wordpress.org/support/users/cornershop/)
 * (@cornershop)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/warning-bugfix-for-debug-info-php/#post-18101189)
 * Thank you for the heads up. We’ll fix this warning in the next release.
 *  Plugin Author [cornershop](https://wordpress.org/support/users/cornershop/)
 * (@cornershop)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/warning-bugfix-for-debug-info-php/#post-18176335)
 * Hi there! Just letting you know that version 1.5.9 addresses this issue.

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

The topic ‘Warning bugfix for debug-info.php’ is closed to new replies.

 * ![](https://ps.w.org/media-deduper/assets/icon-256x256.png?rev=1682001)
 * [Media Deduper](https://wordpress.org/plugins/media-deduper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-deduper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-deduper/)
 * [Active Topics](https://wordpress.org/support/plugin/media-deduper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-deduper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-deduper/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [cornershop](https://wordpress.org/support/users/cornershop/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/warning-bugfix-for-debug-info-php/#post-18176335)
 * Status: resolved