Modern events calendar – messaging

Hi. I’m using the bundled MEC with my site. Everything is working pretty much as I’d hoped, but I need to change something that currently appears on screen as an error message.

The events I have use a limited number of available booking spaces – it needs to work in this way, owing to venue capacity. When the user tries to book after the maximum number of bookings is reached, it displays the error message ‘invalid request’. What I need it to do is display a message that tells the user why they cannot book on (because it’s full!). There is nowhere within MEC’s notification settings to do this – can it be done in another way?

Hi,

I checked on my test site and it says The ____ ticket is sold out. You can try another ticket or another date.
When the ticket is sold out, it should not allow you to book anymore.

Can you provide us the url of your event page so we can take a closer look.

Thanks

Hi, I’ve attached a link to an event that I know is already sold out in a secure note.

I don’t get the same message as you have detailed. Your version would be preferable, although ideally, I’d like to be able to personalise this message with a mailto link, so the user can request being added to a standby list in case of cancellations.

Hi There @neilandroid

In that case, try following their translation guide here (https://webnus.ticksy.com/article/8598/) which helps you to change modern events calendar strings.

Hope that helps.
Thanks!

Thanks, but any idea why am I getting the message ‘Invalid Request’ and not ‘The ____ ticket is sold out. You can try another ticket or another date.’ as detailed above? I’m wary that I might end up changing something following the translation method and that string will end up displaying places that it shouldn’t!

Hi There,

Please test for a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

If it doesn’t help, please increase MaxInputVars to 10000 or more. For this, please try to set this variables in your php.ini:

max_input_vars = 10000; suhosin.post.max_vars = 10000; suhosin.request.max_vars = 10000;
You may need to contact your hosting provider to set them.

For more information, please take a look at this ticket:

https://webnus.ticksy.com/ticket/1547957/

Hope it helps :slight_smile:

I’ve been through and done both of those, but I still receive the same ‘Invalid request’ message

Hi There @neilandroid

Can you also try further troubleshooting your issue by enabling your WP_DEBUG mode on your WordPress and also try enabling your WordPress debug log by following this guide (https://codex.wordpress.org/WP_DEBUG).

Once you enable WordPress debug log, it will create a debug.log file under your /wp-content/ directory. You can use a text editor to read the debug file which records your errors.

If you cannot isolate the issue, I would suggest you to contact your hosting provider as well to see if they can identify the problem.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.