Support

Home Forums Event Espresso Premium Geting a blank box when trying to add more than 1 Product.

Geting a blank box when trying to add more than 1 Product.

Posted: July 4, 2023 at 3:31 am

Viewing 11 reply threads


Dykoaventyr

July 4, 2023 at 3:31 am

If I try to add more than one event/Product I get a blank box saying nothing. The products add in the eventbasket..
Adding one event is fine, but two or more I get the empty green box.

Feel free to try, https://dykoaventyr.se/pa-gang/


Tony

  • Support Staff

July 4, 2023 at 4:58 am

Hi there,

There is a fatal error being thrown on the request.

Can you check your server PHP error logs for any errors from Event Espresso and post those here, please?


Dykoaventyr

July 4, 2023 at 2:44 pm

This reply has been marked as private.


Tony

  • Support Staff

July 5, 2023 at 4:22 am

Ok, so its an issue with the site’s translation file.

Are you using a custom translation file in /wp-content/uploads/espresso/languages/ or just using the default translations?


Dykoaventyr

July 5, 2023 at 5:27 am

event-espresso-4-sv_SE.mo (2021-07-04)
I also have GT translations for the website.


Tony

  • Support Staff

July 5, 2023 at 5:46 am

Is that in the location I mentioned above? Do you have the PO file?


Dykoaventyr

July 5, 2023 at 5:52 am

/dykoaventyr.se/public_html/wp-content/uploads/espresso/languages/event-espresso-4-sv_SE.mo

No Po-file


Tony

  • Support Staff

July 5, 2023 at 6:14 am

Save your current MO file locally, then replace it with this version:

https://eventespresso.com/wp-content/uploads/2023/07/event-espresso-4-sv_SE.zip

The .PO file is also included, I recommend uploading both so you can always download it and regenerate a MO file if needed.


Dykoaventyr

July 5, 2023 at 6:41 am

Thanx ! I think that did the trick.
Seems to be working. I will investigate and test more.

:). Göran


Tony

  • Support Staff

July 5, 2023 at 6:55 am

Awesome.

Just to let you know what the issue was, it was the translation for this string:

1 item was successfully added for this event.

The plural is:

%1$s items were successfully added for this event.

and the translation has been set to:

%1$ artiklar har lagts till för eventet.

(Note the missing s after %1$)

I fixed that placeholder in the PO file and regenerated a MO from that.


Dykoaventyr

July 5, 2023 at 7:26 am

Has there been some update in the system (Multi Event) that affekted this ?
It was a new problem fro me ..


Tony

  • Support Staff

July 5, 2023 at 7:29 am

No, not within Event Espresso.

However, PHP7 and below would allow for incorrect placeholders like this and try to work out what it ‘should’ have been, PHP8+ does not.

So what has likely happened is your server has been updated to use PHP8 and the translation is now longer consider ‘valid’.

Viewing 11 reply threads

The support post ‘Geting a blank box when trying to add more than 1 Product.’ 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