• Resolved sergeyf1

    (@sergeyf1)


    Hello,

    I found an issue in version 2.3.8.1 that breaks plugin and theme updates when updating them manually via the “Dashboard -> Updates” page. When a plugin with version 2.3.8.1 is active, other plugins are unable to update via (“Dashboard -> Updates”), although a message is shown about the supposedly successful update. See screenshot. But when checking for updates again in the Plugins section or in (“Dashboard -> Updates”) – the updates are displayed again. The permissions on all folders and files are correct.

    I’ve checked this on 7 different sites and 2 different hosting, including with a clean WordPress installation (WP 6.4.3 + WP Hide 2.3.8.1 only).

    The problem occurs under the following conditions
    – when your plugin is active
    – custom address for /wp-admin/ and wp-login.php are used on the site in the settings of your plugin.

    PHP 7.4.33
    WordPress 6.4.3
    WP Hide & Security Enhancer 2.3.8.1

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Maya

    (@tdgu)

    Hi,
    I’am not sure why it fails for you. Might be related to a specific option and value you’re using. Can you try to reset all options and keep just the custom admin and login URL customizations?
    All your sites use PHP 7.4.33 or tried with other versions too ?
    Disabling all other plugins but WP Hide still produces the problem for you ?
    Is the issue started with the latest 2.3.8.1 but working fine with a previous version? Which one you used before?

    Thanks

    Thread Starter sergeyf1

    (@sergeyf1)

    Hello,

    Thank you for your response and additional questions. I will try to answer in detail and also add additional information.

    I specifically created a test setup to test and reproduce the problem. The problem is definitely there.

    Full installation configuration
    PHP 7.4.33
    WordPress 6.4.3
    Twenty Twenty-Two 1.7
    Kadence 1.2.3 (Active Theme)
    WP Hide & Security Enhancer 2.3.8.1 (all default settings except for the custom address for /wp-admin/ and wp-login.php)

    The test uses the Kadence 1.2.3 theme, and the default Twenty Twenty-Two 1.7 theme. I switched between themes – to test the problem.

    Answers to your questions

    Might be related to a specific option and value you’re using. Can you try to reset all options and keep just the custom admin and login URL customizations?

    The test uses the default settings for WP Hide, except for the custom address for /wp-admin/ and wp-login.php
    On the production sites I talked about in the first post, the problem occurs with any plugin settings, but the main condition, custom address for /wp-admin/ and wp-login.php.

    All your sites use PHP 7.4.33 or tried with other versions too?

    Yes. All sites use the same version of PHP 7.4.33

    Disabling all other plugins but WP Hide still produces the problem for you?

    As I pointed out above, even on a test installation (its configuration is listed above) the problem is there. On working sites – the problem is there even when disabling all plugins, except WP Hide with custom address for /wp-admin/ and wp-login.php.

    Is the issue started with the latest 2.3.8.1 but working fine with a previous version? Which one you used before?

    The problems started with version 2.3.8.
    Prior to the 2.3.8.x branch, there is no such problem.
    On some client sites that are still using version 2.3.7 – no problem.

    I hope the information from me will help you solve the problem.
    Thank you for your support, I look forward to your reply.

    Plugin Contributor Maya

    (@tdgu)

    Hi,
    Still not able to replicate.
    Can you edit the file /wp-content/plugins/wp-hide-security-enhancer/modules/components/rewrite-default.php Find line 34 and comment it out like this:

    // add_filter ( 'wph/components/rewrite-default/superglobal_variables_replacements' , array ( $this, 'do_superglobal_variables_replacements' ), 10, 3 );

    After commenting out the line, try again to see if the updates function as expected.

    Thanks

    Thread Starter sergeyf1

    (@sergeyf1)

    Hello,

    After commenting out the line, try again to see if the updates function as expected.

    Thank you very much for your reply. Yes, your advice helped, I tested on several sites with different settings what you recommended and it helped to solve the update problem. Now when manually updating via “Dashboard -> Updates” plugins and themes are updated without problems.

    If the changes made to the plugin code don’t adversely affect something else, then I guess we can consider the problem solved. Thank you for your help and I wish you success in your business.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with plugin updates when using a custom address for /wp-admin/’ is closed to new replies.