• Resolved sagescrub

    (@sagescrub)


    Hello,

    I am having a problem using your plugin for the first time. I have disabled some plugins for the homepage. In a private browser they are disabled. They are also disabled in your plugin’s preview mode. However, when I load the homepage logged in as admin the plugins are not disabled.

    I made sure to disable all caching on server and locally to exclude the possibility of caching (I read your suggestions in other support topics). However after clearing/disabling all caches, the plugins still are not disabled while I am logged in.

    This leads me to wonder.. is this feature by design that plugins are never disabled for logged in admin or am I having some other issue? I couldn’t find a note about this topic in the documentation.

    Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Jose

    (@giuse)

    Hi @sagescrub

    thank you for opening a thread.

    No, this is not the normal behavior of Freesoul Deactivate Plugins.

    Does it happen only to the homepage?
    Does it change anything when you visit the homepage as a logged user?

    Is the URL exactly the same? Or does it change for any reason?

    Do you maybe have a separate cache enabled for logged-in users?

    Do you combine scripts or stylesheets?

    What do you see in the console when you click on the eye icon? It’s the second action icon next to the pencil icon. If you click it, a new tab should open. Inspecting elements and clicking on Console you should see the disabled plugins. What do you see there?

    Thread Starter sagescrub

    (@sagescrub)

    Thank you for the quick reply and more info!

    Good question if it only happens on the home page, I had not yet tested other pages. I checked a few other pages. It seems at first glance that the issue is only on the homepage.

    Regarding caching. We use two plugins: Autoptimize and WP Optimize. Both have been disabled. I also manually deleted the cache contents. So it should not be serving cache.

    On the hosting side we use WP Engine. I have manually cleared the host cache. I also disabled object caching. I spoke with the host support and they made sure the caching is cleared.

    When I click on the eye icon, the page loads with the plugins disabled as expected. In the console it shows the list of disabled plugins under “Disabled Plugins”. But under homepage ID XXX there are no disabled plugins listed.

    One new thing that I learned is when I switch to a default theme, the plugins are disabled as expected. Perhaps the theme is loading the homepage in a way that is not consistent with what Freesoul is expecting? I am not sure if that is the right path since the preview and the eye icons work fine.

    Thank you!

    Thread Starter sagescrub

    (@sagescrub)

    One other comment: The issue is now appearing in a private window with a logged out user. So it is not only happening for the admin. I am not sure why that was the case before.

    Plugin Author Jose

    (@giuse)

    Thank you very much for the information.

    Can you please install fdp-debug https://wordpress.org/plugins/fdp-debug/?

    After installation when you go with your mouse on a row you will see the button “DEBUG”. Clicking on that button a new tab will open with some information that can help me to investigate the problem.

    Before giving me the information, remove all that you don’t want to share.
    It will include for example the homepage and the blog page URL. If you don’t want to share them, remove them.
    For me, it’s useful what is written in “GENERAL INFO”, “MU-PLUGINS”, “DROP-IN PLUGINS”.

    @sagescrub

    Thread Starter sagescrub

    (@sagescrub)

    Jose, Here is the info you requested with URLs omitted. Regarding the Drop-in, advanced-cache.php is 0 bytes.

    GENERAL INFO
    PHP version 7.4.22
    FDP MU PLUGIN VERSION: 1.8.8.7.4
    FDP VERSION 1.8.8.7.4
    WORDPRESS VERSION 5.8
    MULTISITE
    SERVER SOFTWARE Apache
    MAXIMUM EXECUTION TIME 3600
    MAXIMUM INPUT VARS 10000
    PERMALINK STRUCTURE /%postname%/
    PAGE FOR POSTS ID 70285
    FRONT PAGE 637
    FILESYSTEM LAST STATUS ok
    Theme cookie-child
    Theme Root /themes

    MU-PLUGINS
    1 eos-deactivate-plugins.php
    2 learndash-multisite.php
    3 mu-plugin.php
    4 slt-force-strong-passwords.php
    5 wpe-elasticpress-autosuggest-logger.php
    6 wpe-wp-sign-on-plugin.php
    7 wpengine-security-auditor.php

    DROP-IN PLUGINS
    1 advanced-cache.php

    • This reply was modified 2 years, 8 months ago by sagescrub.
    Plugin Author Jose

    (@giuse)

    Thank you very much @sagescrub

    So, you have some mu-plugins that may run before the code of FDP.

    Can you please update fdp-debug to version 0.0.4 and provide me again Genera Info? Sorry that I ask it again, but I’ve added some information to the new version that may show the root cause of the issue.
    I suspect one of the mu-plugins is writing in the superglobal variable $_REQUEST.

    Thread Starter sagescrub

    (@sagescrub)

    Most of those MU plugins (except 1 & 2) are installed by the WP Engine web host.

    OK I upgraded the debug plugin.. Here you go! I hope it is insightful.

    GENERAL INFO
    PHP version 7.4.22
    FDP MU PLUGIN VERSION: 1.8.8.7.4
    FDP VERSION 1.8.8.7.4
    REQUEST ACTION false
    REQUEST EMPTY true
    FDP_REMOVE_FILTERS_BEFORE_FIRST_PLUGIN false
    WP_CLI false
    WP_SANDBOX_SCRAPING false
    DOING_AJAX false
    EOS_DP_URL_APPLY_ON_SEARCH false
    SERVER true
    WORDPRESS VERSION 5.8
    MULTISITE false
    SERVER SOFTWARE Apache
    MAXIMUM EXECUTION TIME 3600
    MAXIMUM INPUT VARS 10000
    PERMALINK STRUCTURE /%postname%/
    FILESYSTEM LAST STATUS ok
    Theme cookie-child
    Theme Root /themes

    Plugin Author Jose

    (@giuse)

    Thank you very much @sagescrub

    Unfortunately, it’s not enough to find the root cause.
    I don’t have any site on WP Engine. Is it a problem for you to send me the mu-plugins installed by WP Engine?
    The cause of the issue is very probably in one of those mu-plugins.
    If you want to share them privately you can use this contact form: https://freesoul-deactivate-plugins.com/contact/
    If you use the contact form, please share a link that points to a folder that contains the files, not directly the code, because the allowed size of the text has a limit.
    If you don’t want to share them, let me know and I will suggest how to proceed in a different way.

    Thread Starter sagescrub

    (@sagescrub)

    Thank you Jose! I have followed up via the contact form.

    Plugin Author Jose

    (@giuse)

    Hi @sagescrub

    thank you very much!

    I’ve checked all the mu-plugis. I have seen nothing strange. I’ve installed them on my installation and was not able to reproduce the problem.

    I’ve created a little plugin that will give me the information I need to understand what’s going on.
    It calls fdp-update-mu-plugin, you can download it from here: https://plugins.trac.wordpress.org/export/2585996/freesoul-deactivate-plugins/branches/fdp-update-mu-plugin.zip

    After activation, it will replace the mu-plugin of Freesoul Deactivate Plugins with another one that includes code to write in the log file.
    After activation, please do the following:

    – Check in the settings page of Freesoul Deactivate Plugins. You should see “Mu-plugin updated by FDP Update Mu Plugin”. This means the mu-plugin that will debug all that we need was successfully installed.
    – Enable the debug in wp-config.php with:

    define( 'WP_DEBUG',true );
    define( 'WP_DEBUG_LOG',true );
    define( 'WP_DEBUG_DISPLAY',false );

    the code above should be before the comment /* That’s all, stop editing! Happy publishing. */
    – Visit the homepage as logged-in without cache
    – Take note of what you find in the file wp-content/debug.log
    – Visit the homepage as not logged-in without cache
    – Take note of what you find in the file wp-content/debug.log
    – Disable some plugins on another page. If you have no plugin that you could disable, install Hello Dolly and then disable that plugin
    – Visit that page
    – Take note of what you find in the file wp-content/debug.log

    Then please, report the information collected in wp-content/debug.log specifying which page you have visited for each group of information.

    By doing so I feel confident we can find useful information.

    The mu-plugin written by fdp-update-mu-plugin is the same as the standard mu-plugin, but it has a lot of error_log() functions in many points of the file. Excluding the log activity, it’s the same as the usual mu-plugin, so you can use it all in a production environment.
    After you have finished, if you deactivate fdp-update-mu-plugin, it will restore the original mu-plugin.

    If something is not clear, let me know.

    Thread Starter sagescrub

    (@sagescrub)

    Jose,

    Thank you for going to the extra effort to help figure out the issue here. I followed the steps you outlined and emailed you the three log files.

    1- Home Logged in – No plugins have been disabled.
    2- Home Not Logged in – No plugins have been disabled.
    3- About Page – Not Logged in – Plugins are disabled as expected.

    Thank you!

    Plugin Author Jose

    (@giuse)

    Hi @sagescrub

    perfect! Thank you very much!

    As written in the email, version 1.8.8.7.5 fixes this issue.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Plugins not disabled for logged in admin’ is closed to new replies.