• Resolved erniecom

    (@erniecom)


    I try to create script that recovers a tar backup in a staging server. During backup I use this plugin to set the site temporary unavailable with:

    wp plugin activate slim-maintenance-mode

    So in my recovery script I do the contrary to disable and remove it:

    wp plugin uninstall slim-maintenance-mode –deactivate

    Unfortunately this fails on me with:

    Error: The link you followed has expired

    I tried:

    wp plugin deactivate slim-maintenance-mode

    .. with the same result.

    How do I fix this? The workaround for me is to log-in as administrator and deactivate the plugin through the web gui, but I prefer that my script just works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Johannes

    (@wpdocde)

    Does this method work with other plugins, which require administrator access?

    Thread Starter erniecom

    (@erniecom)

    Sorry for the late reply.

    I can successfully run just before in the same script:

    wp plugin deactivate easy-wp-smtp

    Not sure what you mean with administrator access in this context. Don’t you need admin access to deactivate all plugins? But following that line of thinking I also tried:

    wp plugin deactivate slim-maintenance-mode --user=1

    It returns the same error message and fails to deactivate the plugin.

    • This reply was modified 3 years ago by erniecom.
    • This reply was modified 3 years ago by erniecom.
    Plugin Author Johannes

    (@wpdocde)

    Unfortunately, I can’t work my way into it at the moment. Maybe someone else can help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The link you followed has expired’ is closed to new replies.