Can’t update plugins in WordPress, system returns -1

It seems that several template plugins are causing these kind of issues (Astra Starter templates, Smart Templates, etc.) If you have one of these installed, try to deactivate them and then update all the plugins, including the template ones. Once updated, you can safely re-active such plugins. Hope it helps.

How can I let users open the site for other visitors?

Based on Bainternet’s answer to this question: Save Theme Options (options.php) From The Frontend The key is to know the name of the plugin option to Enable/Disable the Maintenance Mode. In this example, it’s named: my_maintenance_mode <?php if ( isset($_POST[‘mmode’]) && isset($_POST[‘action’]) && $_POST[‘action’] == “update_mmode” ) { if ( wp_verify_nonce( $_POST[‘theme_front_end’], ‘update-options’ ) ) … Read more

Allow the access over wp-login.php

Use the hook template_redirect instead – this will ensure it only runs on the front-end of your site, and not for the admin, login, registration or signup pages. function wpse_159552_maintenance() { if ( ! is_front_page() ) { wp_redirect( home_url() ); exit; } include ‘maintenance/index.html’; exit; } add_action( ‘template_redirect’, ‘wpse_159552_maintenance’ );

Briefly unavailable for scheduled maintenance. Check back in a minute. This message is shown to subscriber and general user

I guess, something wrong happened during WordPress or an active plugin or the active theme update. Maybe connection loss or interruption. Have a look at WordPress root directory. If the (hidden) file named .maintenance exists, then safely remove it. It’s the temporary file used by WordPress for few minutes until the update process is finished. … Read more