• 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/ 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:

    <!-- 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:

    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 to reply to this topic.