Skip Navigation

[Resolved] PHP Fatal Error on User Registration

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am trying to: create a user registration form

I got: PHP Fatal error. The user is created, but a PHP error is thrown and the registration workflow halts.

Error:
[Wed Mar 14 13:46:00.045150 2018] [proxy_fcgi:error] [pid 2454:tid 139838363793152] [client 162.158.79.40:31431] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method CRED_Form_User::try_to_update_relationships_by_id() in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cred-frontend-editor/application/models/form/user.php:344\nStack trace:\n#0

Solution:

It is a known bug of CRED plugin CRED 2.0-b1, it is fixed in next beta release "CRED 2.0-b2", you can download it here:

https://toolset.com/account/downloads/

Choose channel: Beta

Relevant Documentation:

https://toolset.com/account/downloads/

This support ticket is created 6 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by brianD-10 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#624944
reg-error.jpg

I setup a sandbox for you to troubleshoot on: hidden link.

Also providing a duplicator package in your form.

I am trying to: create a user registration form

Link to a page where the issue can be seen: hidden link

I expected to see: Registration success.

Instead, I got: PHP Fatal error. The user is created, but a PHP error is thrown and the registration workflow halts.

Cred Form: hidden link

Error:
[Wed Mar 14 13:46:00.045150 2018] [proxy_fcgi:error] [pid 2454:tid 139838363793152] [client 162.158.79.40:31431] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method CRED_Form_User::try_to_update_relationships_by_id() in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cred-frontend-editor/application/models/form/user.php:344\nStack trace:\n#0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(392): CRED_Form_User->save_form(0)\n#1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cred-frontend-editor/application/controllers/form_builder_base.php(47): CRED_Form_Base->print_form()\n#2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cred-frontend-editor/application/controllers/ajax/form_ajax_init.php(28): CRED_Form_Builder_Base->get_form(6078, false)\n#3 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(286): CRED_Form_Ajax_Init->register_entry_point('')\n#4 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#5 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin....\n', referer: hidden link

#625141

Hello,

Thanks for the details, it is a known bug of CRED plugin CRED 2.0-b1, our developers are working on it, and here is the feedback from our developers:
the fix will be present on next beta release

So you will need to wait for the next beta release of CRED plugin, and it is not recommended to use Beta version plugins in a live production website.

#626247

Thanks for the reply. Could you share when you expect the next beta to drop?

#626354

The CRED 2.0-b2 is released, you can download it here:
https://toolset.com/account/downloads/
Choose channel: Beta

Please test it, and feedback if the problem is fixed or not, thanks

#626710

Hey thanks Luo. I'm now getting a new fatal error on registration forms. I'll create a new ticket with a new sandbox, because I destroyed teh last one.