Skip Navigation

[Resolved] PHP Fatal Error on User Registration on Beta

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

Problem:

I enable "Ajax Submission" on the cred user form, I got: PHP Fatal error. The user is created, but a PHP error is thrown:

Got error 'PHP message: PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/models/CRED_Fields_Types_Utils.php on line 30

Solution:

I notice that the original form works when I disabled the notification.

I suspect there is a problem with php mailer

Relevant Documentation:

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 5 replies, has 2 voices.

Last updated by Luo Yang 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#626711

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

Video Showing the issue: hidden link

Error:
[Tue Mar 20 17:23:38.337392 2018] [proxy_fcgi:error] [pid 3238:tid 140163629864704] [client 162.158.78.15:29749] AH01071: Got error 'PHP message: PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/models/CRED_Fields_Types_Utils.php on line 30\nPHP message: PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/models/CRED_Fields_Types_Utils.php on line 30\n', referer: hidden link

#626722

Follow-up: I think the error only happens when I enable "Ajax Submission" on the cred user form.

#626805

Hello,

Thanks for the details, I am checking it in your website, will feedback if there is anything found

#626814

It seems there is some problem in your CRED form "Educator Registration". I tried it in your website:
1) Create another user form "Educator Registration 2" with same setting as your CRED form:
hidden link

2) Put it in another page, and test again:
hidden link

It works fine now, there isn't similar errors as you mentioned above, can you confirm it? thanks

#627028

Thanks! I notice that the original form works when I disabled the notification. I suspect there is a problem with php mailer, and your form handler didn't handle it gracefully. I think I can work-around this though.

#627159

You are welcome