• Resolved matredok

    (@matredok)


    Hello, I have made a custom registration form (free version). It works but sometimes after user registration it shows “Fatal error” and user is not registered.

    I turned debug log and I found something like this:

    [15-Feb-2023 12:48:11 UTC] PHP Warning:  Undefined array key "last_name" in /home/mydomain/domains/mydomain.com/public_html/wp-content/plugins/pie-register/classes/registration_form.php on line 513
    [15-Feb-2023 12:48:11 UTC] PHP Warning:  Undefined array key "last_name" in /home/mydomain/domains/mydomain.com/public_html/wp-content/plugins/pie-register/classes/registration_form.php on line 633
    • This topic was modified 1 year, 9 months ago by matredok.
    • This topic was modified 1 year, 9 months ago by matredok.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor genetech

    (@genetech)

    Hi,

    Thank you for bringing this to our view. We have fixed it.

    Please download and extract the zip file from here:?https://blue.genetechz.com/pieregister_download/pie-register-last-name-error.zip. Replace the modified file of the plugin in your Pie Register plugin directory (wp-content/plugins/pie-register). Make sure your plugin is updated to the latest version 3.8.2.3.

    Let us know if the issue is resolved now.

    Thank you

    Thread Starter matredok

    (@matredok)

    Hello @genetech,

    thank you for your reply ?? I still have a fatal error but I found something else in my WP debug log. Could you take a look at it:

    [20-Feb-2023 10:51:19 UTC] PHP Fatal error:  Uncaught Error: Object of class WP_Error could not be converted to string in /home/mypage/domains/mypage.com/public_html/wp-content/plugins/pie-register/classes/registration_form.php:714
    Stack trace:
    #0 /home/mypage/domains/mypage.com/public_html/wp-content/plugins/pie-register/classes/registration_form.php(629): Registration_form->get_usermeta_id_by_key(Object(WP_Error), 'first_name')
    #1 /home/mypage/domains/mypage.com/public_html/wp-content/plugins/pie-register/pie-register.php(3875): Registration_form->addUser(Object(WP_Error), 1)
    #2 /home/mypage/domains/mypage.com/public_html/wp-content/plugins/pie-register/pie-register.php(3714): PieRegister->pie_save_registration()
    #3 /home/mypage/domains/mypage.com/public_html/wp-content/plugins/pie-register/pie-register.php(439): PieRegister->check_register_form()
    #4 /home/mypage/domains/mypage.com/public_html/wp-includes/class-wp-hook.php(308): PieRegister->pie_main('')
    #5 /home/mypage/domains/mypage.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #6 /home/mypage/domains/mypage.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #7 /home/mypage/domains/mypage.com/public_html/wp-settings.php(617): do_action('init')
    #8 /home/mypage/domains/mypage.com/public_html/wp-config.php(115): require_once('/home/kochammle...')
    #9 /home/mypage/domains/mypage.com/public_html/wp-load.php(50): require_once('/home/kochammle...')
    #10 /home/mypage/domains/mypage.com/public_html/wp-blog-header.php(13): require_once('/home/kochammle...')
    #11 /home/mypage/domains/mypage.com/public_html/index.php(17): require('/home/kochammle...')
    #12 {main}

    Any ideas?

    Thread Starter matredok

    (@matredok)

    Ok I know where the problem is. If I’m using “Name” field and I check “hide last name” and “required” there is sometimes a problem with registration.

    Plugin Contributor genetech

    (@genetech)

    Hi,

    Can you please elaborate on the problem scenario? Have you hide?last name on your form? Is the name field marked as required?

    Can you please check your Pie Register logs to see if there are any error logs? Pie Register > Help > Error Logs.

    Also, do these errors are formed every time or only sometimes?

    Thank You

    Plugin Author Pie Register

    (@pieregister)

    Hi,

    We haven’t heard back from you in a while, so we are going to mark this thread as resolved. You can always raise a new one or continue this one if you need any further assistance.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error on user registration’ is closed to new replies.