Title: Bug in debug code and in page recognition
Last modified: June 9, 2026

---

# Bug in debug code and in page recognition

 *  [pierreutm](https://wordpress.org/support/users/pierreutm/)
 * (@pierreutm)
 * [5 days, 11 hours ago](https://wordpress.org/support/topic/bug-in-debug-code-and-in-page-recognition/)
 * Hi,
 * I’m encountering two bugs in the plugin with the logging. I’m not sure if they
   are fatal, but I’m addressing them since I face another weird issue on my website,
   where 1 plugin is sometimes disabled (or at least, it’s not loading). I’m not
   sure if it has to do with Freesoul Deactivate Plugins, since I only either disable
   3 plugins, or none (never just one).
 * On the page were this 1 plugin is sometimes disabled, I noticed there is NO message:`
   <!-- Freesoul Deactivate Plugins has disabled 1 plugins on this page. -->` like
   on all other pages. I started investigating.
 * **Bug 1:** No comment of deactivating plugins is shown on [https://www.uptomore.nl/nl-nl/](https://www.uptomore.nl/nl-nl/)
   but on any other page it is always shown. According to AI, maybe FDP can’t recognize
   page well (no ID, no slug, something like that according to AI). Are such errors
   logged anywhere?
 * **Bug 2:** Why is it saying that 1 plugin is disabled, while none should be disabled?
   I added a print_r to the statement, to see what is in the array. The result on
   alles pages is very different. It can be:
 *     ```wp-block-code
       <!-- Freesoul Deactivate Plugins has disabled 1 - Array(    [0] =&gt;     [1] =&gt;     [2] =&gt;     [3] =&gt;     [4] =&gt;     [5] =&gt;     [6] =&gt;     [7] =&gt;     [8] =&gt;     [9] =&gt;     [10] =&gt;     [11] =&gt;     [12] =&gt;     [13] =&gt;     [14] =&gt;     [15] =&gt;     [16] =&gt;     [17] =&gt;     [18] =&gt;     [19] =&gt;     [20] =&gt;     [21] =&gt;     [22] =&gt;     [23] =&gt; freesoul-deactivate-plugins/freesoul-deactivate-plugins.php    [24] =&gt; freesoul-deactivate-plugins/freesoul-deactivate-plugins.php    [25] =&gt; freesoul-deactivate-plugins/freesoul-deactivate-plugins.php) plugins on this page. -->
       ```
   
 * But it can also be many more lines of duplicates, it depends per page. I put 
   the code through AI, it mentions different code issues that causes the buildup.
   Also, it mentiones that on another place where you show this output of disabled
   plugins, it does actually check for duplicates:
 *     ```wp-block-code
       foreach( $eos_dp_paths as $plugin ){    if( false === strpos( $plugin,'freesoul-deactivate-plugins' ) ){ // sluit zichzelf uit        ...    }}
       ```
   
 * So I think three things are going wrong: the array is being filled with duplicates,
   and there is no check for duplicates, and there before doing the ‘count’, the
   freesoul plugin itself should not be counted.
   I have more details from AI output
   that might help you, but I can’t attach anything here unfortunately.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbug-in-debug-code-and-in-page-recognition%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/freesoul-deactivate-plugins/assets/icon-256x256.png?rev=
   2847508)
 * [Freesoul Deactivate Plugins - Disable plugins on individual WordPress pages](https://wordpress.org/plugins/freesoul-deactivate-plugins/)
 * [Support Threads](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/)
 * [Active Topics](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pierreutm](https://wordpress.org/support/users/pierreutm/)
 * Last activity: [5 days, 11 hours ago](https://wordpress.org/support/topic/bug-in-debug-code-and-in-page-recognition/)
 * Status: not resolved