Support

Home Forums Event Espresso Premium Error at registration : FirstName, name and email required

Error at registration : FirstName, name and email required

Posted: January 19, 2024 at 6:13 am


Fadou

January 19, 2024 at 6:13 am

Good afternoon,

We did the update in December and during our tests, everything worked on our side. Unfortunately, in January when visitors started registering again, they encountered an error. When it came time to complete their first name, last name and e-mail and move on to the next step, even though they had completed the fields, it indicated that the fields were required. It’s as if the system can’t see what’s in them. I’ve tried changing the theme and the error persists. I’ve deactivated the plugins one by one and the error persists. This error is the same if an administrator wants to add a post manually, when you want to confirm the first name, last name and e-mail address.

For my part, I don’t have the error on my computer, nor do the two technicians who carried out the tests. I’ve tested both MAC and PC with Chrome, Firefox and Safari and everything works. The same on my phone when connected to my wifi network.

The only way to reproduce the problem is to connect to my 5G network or share my phone network with my computer, and then I see the error.

Do you have any ideas?
The website is : appq.com

Were are on WP 6.4.2
EE4 : 5.0.14
PHP 7.4

Thanks

Fadou


Tony

  • Support Staff

January 22, 2024 at 4:32 pm

Hi there,

Can you create a test account I can log into please, no matter what value I input for postcode the form shows it as invalid.

Send the login details over using this form and I’ll take a look:

https://eventespresso.com/send-login-details/


Tony

  • Support Staff

January 24, 2024 at 6:12 am

Thank you for sending over login credentials.

Unfortunately (kinda?), testing this with both wired and cellular connections works as expected and I don’t get any errors.

I can tell you what I would be checking from this point if I could reproduce.

Firstly, check for any errors server side, check the PHP error logs for anything around the time the registration throws the error.

Check the access logs to see if anything is happening on the request itself (I’ve seen hosts block some ajax requests based on the user-agent and/or the IP).

It could be worth checking in with your host and have them confirm that your requests are triggering some kind of WAF rule on the server.

—-

Something else you can do is log the Ajax request sent and view if anything shows up there, you can do that with your browser dev tools.

This is using Chrome: https://monosnap.com/file/eoHJX2gGRRAKrY8UZ41ltG8lFCgMv4

Right before you click to submit the registration form, be in the network section, make sure ‘preserve log’ is enabled.

When you hit the button you’ll see admin-ajax.php requests:

https://monosnap.com/file/VcpxTmQwKf3K86W4bidJuVTjSAvFUf

You can click on those to inspect the request/response some, see if anything stands out there.

Without being able to reproduce this its really difficult to try and figure out what is happening unfortunately, but see if anything stands out above and we can go from there.


Fadou

January 29, 2024 at 9:46 am

I have checked by uninstalling all plugins and still the issue persists. I have reinstalled wp and installed EE still the issue persists. On the Ajax call, the console log is showing an error. It happens for some users. Help is appreciated.

here is a link to an error. https://drive.google.com/file/d/1WOv6XnSNIX_ne2XZ9-qTYCTSwFcArqN5/view?usp=sharing


Fadou

January 29, 2024 at 9:49 am

Is it related to the server issue? The error message :

The following error have occured :
The stored data for session “session value” failed to pass a hash check and therfore appears to be invalid


Tony

  • Support Staff

January 29, 2024 at 1:50 pm

I assume you have WP_DEBUG enabled on the site? (The above hash check wont run if not)

Try setting WP_DEBUG to false and retesting, same error?


Fadou

January 30, 2024 at 12:06 am

I have set WP_DEBUG to false and still same error. Couldn’t complete registration


Fadou

January 30, 2024 at 2:35 am

Hi Tony, Help is much appreciated. Some clients are facing issues and are unable to register.


Tony

  • Support Staff

January 30, 2024 at 5:53 am

I have set WP_DEBUG to false and still same error. Couldn’t complete registration

The exact same error or something different? The specific error should only be thrown with WP_DEBUG enabled.

If you go to Event Espresso -> General Settings -> Admin Options.

Find ‘Encode Session Data?’, is it enabled?

If so, set it to No and retest, same issue?


Fadou

January 30, 2024 at 8:43 am

If so, set it to No and retest, same issue?

Its already set no option.

If I set it to yes then it throws an error:

Fatal error: Uncaught RuntimeException: Base 64 decoding failed because the supplied string is not valid or was not base64 encoded. in /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/services/encryption/Base64Encoder.php:137 Stack trace: #0 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/services/encryption/Base64Encoder.php(66): EventEspresso\core\services\encryption\Base64Encoder->isValidBase64OrFail(‘a:10:{s:2:”id”;…’) #1 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(705): EventEspresso\core\services\encryption\Base64Encoder->decodeString(‘a:10:{s:2:”id”;…’) #2 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(597): EE_Session->_retrieve_session_data() #3 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(291): EE_Session->_espresso_session() #4 /home/uyiihxj/www/wp-includes/class-wp-hook.php(324): EE_Session->open_session(”) #5 /home/uyiihxj/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home/uyiihxj/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(1153): do_action(‘AHEE__EE_System…’) #8 /home/uyiihxj/www/wp-includes/class-wp-hook.php(324): EE_System->initialize(”) #9 /home/uyiihxj/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 /home/uyiihxj/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /home/uyiihxj/www/wp-settings.php(643): do_action(‘init’) #12 /home/uyiihxj/www/wp-config.php(110): require_once(‘/home/uyiihxj/w…’) #13 /home/uyiihxj/www/wp-load.php(50): require_once(‘/home/uyiihxj/w…’) #14 /home/uyiihxj/www/wp-blog-header.php(13): require_once(‘/home/uyiihxj/w…’) #15 /home/uyiihxj/www/index.php(17): require(‘/home/uyiihxj/w…’) #16 {main} thrown in /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/services/encryption/Base64Encoder.php on line 137
Il y a eu une erreur critique sur ce site.


Tony

  • Support Staff

January 30, 2024 at 9:04 am

You already have an ‘unencoded’ session there so it throws a fatal.

Hmm, leave that off. I’ll check in with our developers on this.


Fadou

January 30, 2024 at 9:07 am

after upgrade to PHP 8 and updating EE to latest version, it shows this error:

Fatal error: Uncaught ValueError: Unknown format specifier “a” in /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Event_Shortcodes.lib.php:80 Stack trace: #0 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Event_Shortcodes.lib.php(80): sprintf(‘Ceci analysera …’, ‘', '‘) #1 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Shortcodes.lib.php(120): EE_Event_Shortcodes->_init_props() #2 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Event_Shortcodes.lib.php(30): EE_Shortcodes->__construct() #3 [internal function]: EE_Event_Shortcodes->__construct() #4 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/validators/EE_Messages_Validator.core.php(234): ReflectionClass->newInstance() #5 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/validators/EE_Messages_Validator.core.php(131): EE_Messages_Validator->_set_validators() #6 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/caffeinated/core/libraries/messages/message_type/newsletter/EE_Messages_Email_Newsletter_Validator.class.php(27): EE_Messages_Validator->__construct(Array, ‘attendee’) #7 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_MSG_Template.helper.php(267): EE_Messages_Email_Newsletter_Validator->__construct(Array, ‘attendee’) #8 /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/registrations/Extend_Registrations_Admin_Page.core.php(431): EEH_MSG_Template::get_shortcodes(‘newsletter’, Object(EE_Email_messenger), Array, ‘attendee’, false) #9 /home/uyiihxj/www/wp-includes/class-wp-hook.php(324): Extend_Registrations_Admin_Page->newsletter_send_form_skeleton(”) #10 /home/uyiihxj/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #11 /home/uyiihxj/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /home/uyiihxj/www/wp-admin/admin-footer.php(78): do_action(‘admin_footer’, ”) #13 /home/uyiihxj/www/wp-admin/admin.php(297): require_once(‘/home/uyiihxj/w…’) #14 {main} thrown in /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Event_Shortcodes.lib.php on line 80

Unable to create event in admin


Fadou

January 30, 2024 at 9:08 am

The above error occur when trying to create new event


Tony

  • Support Staff

January 30, 2024 at 9:31 am

That’s a translation issue (PHP7 allowed for ‘incorrect’ translations, PHP8 doesn’t allow them).

Do you have custom translations/custom MO files?

Check-in /wp-content/uploads/espresso/languages/, any files there?


Fadou

January 30, 2024 at 9:38 am

yes


Fadou

January 30, 2024 at 9:48 am

What should I do with MO file?


Fadou

January 30, 2024 at 9:55 am

Error at registration : FirstName, name and email required

Regarding this first error, it works when VPN is used. Any idea on this issue?


Tony

  • Support Staff

January 30, 2024 at 1:12 pm

What should I do with MO file?

Is there just a MO file? No PO?

Do you have custom translations within that or just standard?

Error at registration : FirstName, name and email required

Regarding this first error, it works when VPN is used. Any idea on this issue?

Event Espresso doesn’t care if you use a VPN or direct connection, if it works through one it should work on them all, it uses a PHP session but that’s all. So something weird is going on with those connections outside of Event Espresso but what, I can’t say currently.

Is reCaptcha enabled? (Event Espresso -> Registration Form -> Reg Form Settings)


Tony

  • Support Staff

January 30, 2024 at 2:58 pm

You can download the latest MO file from here:

https://translate.eventespresso.com/projects/event-espresso-4/fr/event-espresso-fr_fr/export-translations/?format=mo

Download, rename to event-espresso-4-fr_FR.mo

Place that in /wp-content/uploads/espresso/languages/

That should fix the fatal


Fadou

January 31, 2024 at 3:56 am

Is reCaptcha enabled? (Event Espresso -> Registration Form -> Reg Form Settings)

reCaptcha is not enabled.


Tony

  • Support Staff

February 1, 2024 at 6:58 pm

I’ve tried reproducing this using multiple machines and multiple connection types but the registrations work for me.

Its obviously something related to the connection itself but what have no idea without reproducing.

Actually, a new question on this.

When you reproduce this and get to the point where it shows the fields are required, what happens when you hard refresh the page?


Fadou

February 2, 2024 at 1:32 am

Hi tony, maybe because of this warning, it is occuring an error to some users :

Warning: session_start(): Cannot start session when headers already sent in /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/services/session/SessionStartHandler.php on line 65

Please let me know any solutions to it. thanks


Fadou

February 2, 2024 at 1:33 am

This warning occurs when I turn on PHP cgi mode.


Fadou

February 2, 2024 at 1:58 am

When you reproduce this and get to the point where it shows the fields are required, what happens when you hard refresh the page?

Even after hard refresh and clearing of cache or open in incognito, the problem still the same for some users.


Tony

  • Support Staff

February 2, 2024 at 2:40 am

Warning: session_start(): Cannot start session when headers already sent in /home/uyiihxj/www/wp-content/plugins/event-espresso-core-reg/core/services/session/SessionStartHandler.php on line 65

All that means is something was already sent to the browser (usually another warning/error/notice) befure EE tried to start a session. You can’t start a session after content has already been sent, and ‘normal’ content wont have been sent at that point.

WHat other errors are thrown around the above?

Even after hard refresh and clearing of cache or open in incognito, the problem still the same for some users.

Register onto the event so it shows the error message, then in your browser refresh the page…. what do you see at that point?


Fadou

February 2, 2024 at 7:38 am

Register onto the event so it shows the error message, then in your browser refresh the page…. what do you see at that point?

Show same error.


Tony

  • Support Staff

February 5, 2024 at 5:29 am

Hmm, then the session hasn’t been cleared at that point (which is a good thing) otherwise you would see a ‘Nothing in your event queue’ error when refreshing.

Are you comfortable adding code?

Add this to wp-config.php:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

Then add this to a custom functions plugin:

https://gist.github.com/Pebblo/2ebecaacb210a71897aaadf23db9fdf9

We have some documentation on creating a custom functions plugin here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Then try to reproduce the error again, what do you see in /wp-content/debug.log?

The support post ‘Error at registration : FirstName, name and email required’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso