We have enjoyed the functions and price of Ninja Forms when working in WordPress; however, recently we moved a site from “Development” into “Production” and we got the following error message:
This form is currently undergoing maintenance. Please try again later.
Googling didn’t get us anywhere quick. Even on the Ninja forms website. We got it working quickly again by simply “duplicating” the form in the backend and changing the form number on the front end. Everything was working perfectly again.
I use this code to solve the problem:
<?php
// fix_nf_maintenance.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once __DIR__ . '/wp-load.php';
if ( class_exists( 'WPN_Helper' ) ) {
WPN_Helper::set_forms_maintenance_mode( 0 );
echo "Ninja Forms Maintenance Mode has been successfully reset to 0.\n";
} else {
echo "Error: WPN_Helper class not found. Make sure Ninja Forms is active.\n";
}
Use the settings page of your ninja forms plugin and go to: Remove Maintenance Mode – The Remove Maintenance Mode button will take the forms out of Maintenance Mode if they happen to get stuck during an upgrade.
Thanks u, u save my life
I use this code to solve the problem:
<?php
// fix_nf_maintenance.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once __DIR__ . '/wp-load.php';
if ( class_exists( 'WPN_Helper' ) ) {
WPN_Helper::set_forms_maintenance_mode( 0 );
echo "Ninja Forms Maintenance Mode has been successfully reset to 0.\n";
} else {
echo "Error: WPN_Helper class not found. Make sure Ninja Forms is active.\n";
}
Thanks for the comment. We appreciate all the help we can get.
Use the settings page of your ninja forms plugin and go to: Remove Maintenance Mode – The Remove Maintenance Mode button will take the forms out of Maintenance Mode if they happen to get stuck during an upgrade.
Thanks for the tip. Thanks for the taking the time to comment.