• Resolved speavy101

    (@speavy101)


    I am trying to solve an issue with plugins. All of them suddenly will not update and new installations fail. The only error message given on both updates and installation is -1. For example “Update failed -1” and “Installation failed -1”. I have checked the wp-config file and it was missing the “define(‘WP_TEMP_DIR’, dirname(FILE) . ‘/wp-content/temp/’);” so I added it along with a “temp folder” in wp-content. That did not solve the issue. When plugin updates fail it puts the website into maintenance mode, which then I have to go and delete the maintenance file in file manager to get it out of that mode. If anyone knows what to try, I would appreciate it. Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please enable debug mode and report back on what you see; look at wp-content/debug.log to see if anything gets logged there. https://www.ads-software.com/support/article/debugging-in-wordpress/

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Also disable all plugins and see and see if you can update them then.

    Solution:

    This issue is being caused by a bug in the Starter Templates plugin that has now been fixed.

    If your site is stuck in maintenance mode, you can fix that by deleting the “.maintenance” file in your main WordPress directory (probably /public_html)

    To update to the fixed version of the plugin:

    1. Deactivate the Starter Templates plugin (since it’s breaking the updater)
    2. Update the Starter Templates plugin to 3.1.26 or higher
    3. Reactivate the Starter Templates plugin
    Thread Starter speavy101

    (@speavy101)

    Hey pikamander2, that was it! I was thinking “too complicated” and not thinking of something right in front of me. I deactivated Starter Templates plugin and all is good now. Thanks for the help.

    Thanks guys, same issue, this solve the problem!!

    Awesome! Solution worked for me too:
    Deactivate Starter Templates plugin > Update > Reactivate it

    Thanks @pikamander2 =D

    You saved my day. The hardest part was to make google to return this page ?? since it likes to ignore the -1…

    <font style=”vertical-align: inherit;”><font style=”vertical-align: inherit;”>Het installeren van nieuwe plug-ins werkt niet. De nieuwe plug-ins zijn niet zichtbaar op de beheerderspagina. Geen foutmelding.</font></font>

    New activated plug-in is not visible on the admin page.

    OMG THANKYOU!!!!! I have had this issue for weeks and this fixed the problem!!! I am so glad i came across this thread.

    The fix for this issue is still working. At least it worked for me. Thanks. ??

    A wp-cli based approach to this (and similar) problems – stores list of active plugins, deactivates and updates all plugins, then re-activates plugins:

    wp plugin list --status=active --format=csv --field=name >/tmp/active-plugins.txt
    wp plugin deactivate --all
    wp plugin update --all
    xargs wp plugin activate  </tmp/active-plugins.txt

    OMG, thank you so much!!!

    The Starter Templates Solution worked for me too.
    1. Deactivate Starter Templates
    2. Delete Starter Templates plugin (Since I didn’t have an immediate for the plugin)
    3. Update the other plugins, themes and WordPress.

    Note: If have a need for Starter Templates plugin, follow the solution of @pikamander2 and @djio

    Thanks

    • This reply was modified 1 year, 6 months ago by favenson.
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Plugin updates and new installations fail “-1” in error message’ is closed to new replies.