Updates not working with Rank Math active

#204791
  • Resolved Heike Lorenz
    Rank Math free

    Hi,
    I just installed Rank Math recently and today I noticed something strange:

    If I want to update or delete a plugin/theme from the WordPress-Backend the update is not working.
    Error Message: “the folder cannot be created”

    If I deactivate Rank Math everything works fine, but if I activate Rank Math the updates from the WordPress-Backend are not working.

    In Rank Math Status I can see: the plugin/theme-folders are marked as “Not writable” – but they are if Rank Math is deactivated.

    What can I do?
    Adding this “add define( ‘FS_METHOD’, ‘direct’ );” to the wp-config.php doesn’t help.

    Best regards
    Heike

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Your site is showing a popup asking for a username & password when I try to login using the temporary access link.

    Please check the screenshot I added in the sensitive Data Section.

    Looking forward to helping you.

    Hi Pratik,
    sorry, I didn’t think of that.
    I deactivated it and now you should be able to log in.

    Best regards
    Heike

    Hello,

    I don’t see define( ‘FS_METHOD’, ‘direct’ ); code in the wp-config.php file on your site. I wanted to add it but you have disabled the file edit from admin. Can you please enable it or please add your site’s FTP access details in the Sensitive Data Section.

    Looking forward to helping you.

    Hi,
    I tried it but since it didn’t work I deleted it.
    If you tell me where to exactly put

    the add define( ‘FS_METHOD’, ‘direct’ );

    in the wp-config-file I will put it in again.

    Tahnks
    Heike

    sorry, some words got lost

    I ment:
    If you tell me where to put it exactly in the wp-config-file I will put it in again.

    Thanks
    Heike

    Hello,

    We have taken note of this issue and we will include a permanent fix for it soon.

    For now, please comment out the following line in the plugin:

    https://github.com/rankmath/seo-by-rank-math/blob/master/vendor/mythemeshop/wordpress-helpers/src/helpers/class-wordpress.php#L75

    This should fix the issue.

    I hope that helps. If you have any questions, please feel free to ask.

    Thank you.

    Ähm – how do I do that?
    What exactly should I write in that line?

    Hello,

    Thanks for getting back to us.

    The line currently reads like this define( 'FS_METHOD', 'direct' ); and it should read // define( 'FS_METHOD', 'direct' );.

    This will comment out that line and should help solve the issue.

    Don’t hesitate to get in touch if you have any other questions.

    Hi Miguel,
    OK – that is working.
    Bud sadly the Update of the Plugin today overwrote it so I had to change the code again.

    Hope you fix this soon 🙂

    Thanks
    Heike

    Hello,

    You can edit your wp-config.php file and add the above code just above the following comment:
    /* That's all, stop editing! Happy publishing. */

    Please let us know if that helps. Thank you.

    Hi,
    I tried that at the beginning of this process – that doesn’t work (see my first message).

    So I wait for an update to fix the problem without having to edit the plugin files.

    https://github.com/rankmath/seo-by-rank-math/blob/master/vendor/mythemeshop/wordpress-helpers/src/helpers/class-wordpress.php#L75

    Thanks
    Heike

    Hello,

    Sorry for the delay and thank you for your patience.

    We would love to debug this issue further but it seems that the WP temporary login credential is not working https://i.rankmath.com/jgvAvb on our end.
    Could you please verify the situation and report back so we can continue investigating the issue?

    Looking forward to hearing back from you.

    Hi,
    I found out what was causing the problem – I had to change the user-rights on my server.
    Now everything is working fine.

    Thanks for your help!

Viewing 15 replies - 1 through 15 (of 17 total)

The ticket ‘Updates not working with Rank Math active’ is closed to new replies.