Posted: 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? Were are on WP 6.4.2 Thanks Fadou |
|
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: |
|
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. |
|
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 |
|
Is it related to the server issue? The error message : The following error have occured : |
|
I assume you have Try setting |
|
I have set WP_DEBUG to false and still same error. Couldn’t complete registration |
|
Hi Tony, Help is much appreciated. Some clients are facing issues and are unable to register. |
|
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? |
|
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 |
|
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. |
|
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 …’, ‘ Unable to create event in admin |
|
The above error occur when trying to create new event |
|
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 |
|
yes |
|
What should I do with MO file? |
|
Error at registration : FirstName, name and email required Regarding this first error, it works when VPN is used. Any idea on this issue? |
|
Is there just a MO file? No PO? Do you have custom translations within that or just standard?
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) |
|
You can download the latest MO file from here: Download, rename to Place that in That should fix the fatal |
|
reCaptcha is not enabled. |
|
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? |
|
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 |
|
This warning occurs when I turn on PHP cgi mode. |
|
Even after hard refresh and clearing of cache or open in incognito, the problem still the same for some users. |
|
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?
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. |
|
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 |
|
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.