I have verified that my WordPress Ninja Forms plugin is at version 3.4.1. I have also checked with the MySQL backend. 3.4.1 hasn’t fixed this issue for me. The database still doesn’t seem to have the ‘maintenance’ column in the nf3_upgrades table. I run the WordPress 5.0.3 Apache-PHP7 docker container.
My Chrome console log is:
TypeError: Cannot read property ‘fields’ of undefined
My WordPress log is:
[Wed Jan 16 15:50:11.900129 2019] [php7:notice] [pid 165] [client 172.17.0.1:48130] WordPress database error Unknown column ‘maintenance’ in ‘field list’ for query UPDATE wppi_nf3_upgrades
SET maintenance = 0 made by do_action(‘wp_ajax_nf_remove_maintenance_mode’), WP_Hook->do_action, WP_Hook->apply_filters, NF_AJAX_Controllers_Form->remove_maintenance_mode, WPN_Helper::set_forms_maintenance_mode, referer: {redacted}
I can reproduce this when I put the following code I got from the Ninja Forms documentation site into the child theme functions.php:
https://developer.ninjaforms.com/codex/custom-form-action/