Skip Navigation

[Resolved] Keep getting fatal error on submission

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Christian Cox 5 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1229434

Hey,

I keep getting fatal error after submission, this just started spontaniously happening, been using forms on the site over two years, first time i see this. :

Fatal error: Uncaught Error: Call to undefined method WP_Error::getId() in public_html/wp-content/plugins/wp-views/vendor/toolset/toolset-common/toolset-forms/classes/class.form_factory.php:453 Stack trace: #0 public_html/wp-content/plugins/wp-views/vendor/toolset/toolset-common/toolset-forms/bootstrap.php(80): FormFactory->validateField(Object(WP_Error), '123') #1 public_html/wp-content/plugins/wp-views/vendor/toolset/toolset-common/toolset-forms/api.php(26): WPToolset_Forms_Bootstrap->validate_field('cred_form_697_1', Array, '123') #2 /public_html/wp-content/plugins/cred-frontend-editor/application/controllers/validators/toolset_forms.php(177): wptoolset_form_validate_field('cred_form_697_1', Array, '123') #3 /public_html/wp-content in /public_html/wp-content/plugins/wp-views/vendor/toolset/toolset-common/toolset-forms/classes/class.form_factory.php on line 453

Disabled all plugins same issue.
tried different forms same issue.
cleared cache/cookies
upgraded eveyrthing to latest version.

#1229449

Just FYI the form can be found here:
hidden link

#1229471

Okay it seems like generic fields with type="text" should be updated to type="textfield". Please update the first and last name generic fields in the Contact Form and let me know if the problem is not resolved. You may need to apply this fix to other Form generic fields as well.