We have a form to add "location" entries (form without login, the content will be reviewd before publishing) on a location map website.
The form looks good, Access to the form is given to guests… but on submission, there is a critical error on
/wp-content/plugins/cred-frontend-editor/application/controllers/validators/toolset_forms.php on line 101
Hello. Thank you for contacting the Toolset support.
I will require problem URL where you added the form as well as admin access details, once I review your current settings I will be able to guide you in the right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I see you are using number of third-party plugins. In order to minimmize the cause of the issue and to ensure there is no conflict with the plugins/theme you use.
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference? Have you tried disabling "Kadence" plugins and switched to default theme? Do you see it working when only Toolset plugins active?
In order to minimize the cause of the issue, what if you try to remove couple of fields from your form one after another and save your form and then check on frontend if you able to submit the form or not and able to spot what exactly the field added to form is causing the issue.
I have tried a different way and created a new form that creates Locations.
This new form (on a new page) does not display a critical error on Submit.
It just shows a circle going round once and nothing else happens. No display of the confirmation message instead of the form, no saving of the new location post (as "pending review"), no confirmation e-mail as defined. it just happens *nothing*.
i must admit that this is not really better… what's wrong now?
Can you please tell me what exactly you want to achieve?
You want to have a working form to add new locations for "Location" post type. Can you please clarify your exact requirement and once I review that I will try to setup a new form on your site and check what's going wrong with your setup.
I have set the next reply to private which means only you and I have access to it.
I checked and created a brand new form and brand new test page:
- hidden link
- hidden link
And I found that it throws the following fatal error when I submit the form:
PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in /var/www/vhosts/resmove.org/httpdocs/wp-content/plugins/cred-frontend-editor/application/controllers/validators/toolset_forms.php:101 #0 /var/www/vhosts/resmove.org/httpdocs/wp-content/plugins/cred-frontend-editor/application/controllers/validators/toolset_forms.php(101): array_filter() #1 /var/www/vhosts/resmove.org/httpdocs/wp-content/plugins/cred-frontend-editor/application/controllers/validators/form.php(49): CRED_Validator_Toolset_Forms->validate() #2 /var/www/vhosts/resmove.org/httpdocs/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(974): CRED_Validator_Form->validate() #3 /var/www/vhosts/resmove.org/httpdocs/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(423): CRED_Form_Base->validate_form() #4 /var/www/vhosts/resmove.org/httpdocs/wp-content/plugins/cred-frontend-editor/application/controllers/form_builder_base.php(42): CRED_Form_Base->print_form() #5 /var/www/vhosts/resmove.org/httpdocs/wp-content/plugins/cred-frontend-editor/application/controllers/ajax/handler/submit_form.php(47): CRED_Form_Builder_Base->get_form() #6 /var/www/vhosts/resmove.org/httpdocs/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/toolset.ajax.class.php(264): CRED_Ajax_Handler_Submit_Form->process_call() #7 /var/www/vhosts/resmove.org/httpdocs/wp-includes/class-wp-hook.php(324): Toolset_Ajax->__call() #8 /var/www/vhosts/resmove.org/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #9 /var/www/vhosts/resmove.org/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #10 /var/www/vhosts/resmove.org/httpdocs/wp-admin/admin-ajax.php(192): do_action() #11 {main} thrown in /var/www/vhosts/resmove.org/httpdocs/wp-content/plugins/cred-frontend-editor/application/controllers/validators/toolset_forms.php on line 101
As yours is the production site, In order to troubleshoot this issue further I need a duplicator copy of your site or ALL in One WP Migration package file.