Posted: July 12, 2023 at 12:00 pm
Hi, Clients have an error at the end of the registration done on https://mon-permis.info/inscriptions-aux-cours-en-ligne/ They do not receive confirmation and it is not possible to access to see the invoice file (PDF). If I try to access to the invoice from the administration, the same error appears. Thank you in advance for your help. WordPress version 6.2.2 Détails de l’erreur |
|
Hi there, Do you have a custom translation file within |
|
Hi Tony, Yes, I see 2 files event_espresso-fr_FR.mo and event_espresso-fr_FR.po The website is 100% in French so I did translations when I did the instalation (in June 2020). Did you need the po file? |
|
Hi there, So the issue is due to missing values in your translated placeholders. PHP7 and below would allow for them but PHP8+ throws a fatal error. You’ll need to fix your translations to prevent those fatals. Notce in the fatal for the stack trace it has:
So I grabbed your PO file from the site and searched for ‘Ceci analysera’ to find it, there 2 instances and one of them has a missing See: https://monosnap.com/file/k13FEFAcQhQktxzIxjrCPxu2Cpsact
So now the function thinks its
Then regenerate the MO file. You may find you have multiples of these and you’ll need to work through them all fixing the placeholders, each one will throw a fatal. |
|
Hi Tony, Thank you for this research and explanations. As my files are vers old I download your new translation project file for EE4 (on https://translate.eventespresso.com/projects). As error are still there I check quickly and found missing s 🙁 As I do not have account to change on GlotPress I will by Poedit and do this job for my client. COMMENT: would be a nice idea to add a comment on https://translate.eventespresso.com/projects that French files are not working on PHP7 and above. Thank you so much for your help. |
|
If you can send me the POT file I’ll compare it with the one on GlotPress and get the translations updated. Or I can create you an account on the translate site if you’d like to use that.
Whilst I understand the reasoning behind that, it’s errors within the translations that are causing the fatal errors and as the translations are user/translator submitted. Doing the above would mean we would need to monitor each translation to confirm a fix and remove the notice, otherwise that would then cause more confusion as time goes on. What we can do is update the translations as they are reported to fix them. |
|
Hi Tony, Thank you for your answer and proposition. I did the new po (and mo) file which I can send you with pleasure (could you please send me your email). But registration sill do not work 🙁 May I ask you to recheck? Nice to read you back. |
|
What happens when you test a registration? I’ve just added one on the site without a problem (it’s under my name you can cancel it if preferred). If yo have an error being thrown I can investigate from there.
Sure, support[at]eventespresso.com |
|
This reply has been marked as private. | |
For that error I’m going to need the specific error being thrown on the server. Can you check the servers error logs around the time you open the Receipt template and see what it shows. Or… have your webmaster enable WP_DEBUG using this snippet in your wp-config.php file: https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug Then I can check the errors from me end. |
|
Hi Tony, Debug file just sended. 🙂 |
|
The error is exactly the same error, which means your translation files are not loading. If you have the same filename for the PO/MO files you sent me, those are incorrect.
Like this The format is:
Or
|
|
🙁 Thanks for your patience |
|
Thank you. If you need anything, feel free to send message. have a wonderful day! |
|
The support post ‘E_ERROR on line 80 EE_Event_Shortcodes.lib’ 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.