Modern Events Calendar resources issue

Hi,

This relates to an issue detailed in a previous thread I posted here:

When MEC shortcode is added to a page, it frequently causes an “uh-oh failed to save” error. On further investigation with my host, it looks like MEC is a significant resources hog.

This is even worse in the latest version of X, which I have installed on my staging site. My host temprarily doubled our RAM to test the issue, but even in this scenario it is not resolved. Pages which have the MEC shortcode applied do not even load at all.

Please note that the following troubleshooting steps have already been undertaken.

• Updated to latest version of X and Cornerstone
• Disabled plugins
• Reverted to earlier version of MEC
• Increased WP memory limit to 512mb
• Doubled server RAM to 4000mb

I’d be grateful if you could log in to my staging site to view the issue.

Hi @outpost33,

Thanks for reaching out.
Your site has HTTP AUTH restriction and the given credentials do not work for it. Can you please check and let us know the credential for it.

Thanks

@tristup

Apologies, I forgot to include it. I have now added all the necessary credentials to the secure note in my original post.

Many thanks!

Hello @outpost33,

It seems that you are using an outdated theme and plugins. Could you please update to the latest versions?
Our latest versions are:

  • X theme 8.1.2
  • Cornerstone 5.1.2
  • WordPress 5.6
  • MEC 5.16.2
  • PHP 7.4

This latest release contains fixes for several issues so be sure to check out the changelog:

After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Please let us know how it goes.

@ruenel,

Thanks for your reply, obviously when I opened this thread the latest X and Cornerstone updates were not available. However, as I said in my first post, I downgraded the version of MEC in case this was a bug introduced in the latest version – so I have already tested with MEC 5.16.2.

I have now upgraded to X 8.1.2, Cornerstone 5.1.2 and re-installed MEC 5.16.2. I have again tested this with all plugins deactivated, and even with just the parent theme active, so no child theme customisations. The problem persists.

In every scenario, including those where all plugins (except MEC) deactivated, and using only the parent theme, here is what I see when I try to load Cornerstone on the page where the MEC shortcodes are added. I would be grateful if you could check it out using the credentials above.

(Please note I have re-enabled plugins and the child theme, but please feel free to try it however you like).

Hi,
I have the same problem.
In backend I have the same message if I insert the shortcode of MEC in page.
In frontend I see only the header, the page seems blank

I have updated all plugins and the theme.
I use PRO 4.1.3
MEC 5.16.2 (there is a new version of the plugin - 5.16.6 - but I can’t install it)

@LukeStephan @ruenel

Yep, this is identical to the issue I am experiencing, with MEC shortcode applied to the page, Cornerstone cannot load, and the frontend page is blank – in my case with a partial header.

This seems to be a growing issue with MEC shortcode, an extension and deepening of problems seen in previous versions of both X and MEC.

Hope the team at Themeco can finally diagnose what’s going on here :blush:

Hey @outpost33,

I couldn’t log in to your site because the login form doesn’t work (see secure note). Please disable all 3rd party plugins or what is causing the login form to fail.

Thanks.

@christian

Apologies – please try again now, the invisible recaptcha plugin was active and preventing your login but I have tested it and now it works.

Many thanks!

@outpost33 @christian

I found a temporary solution.
I created a global block with the MEC shortcode and inserted the block into the page. Now works. (https://www.medik.net/eventi-e-congressi/)
It appears that the problem was related to the JS.
Do you think it is a valid solution? Can you let us know when the problem will be resolved?
Thanks so much!

Hey @LukeStephan, I just tried the Global Blocks workaround and couldn’t get it to work. The Global Block preview will not load with the shortcode applied.

This is on X 8.1.3 and Cornerstone 5.1.3:

Thanks for sharing your solution @LukeStephan. If it works that way, it’s ok. Your issue is different than @outpost33

@outpost33, the conflict in your site is a conflict with Cornerstone, MEC setup and your server. Would you mind deleting all other plugins in your staging site except Cornerstone and MEC and remove all media files and export your whole site using the Duplicator plugin so the size is small. We’ll then test the setup on our end.

Please then make the export file available for download.

Thanks.

Hi @christian,

I completely disagree that if it works that way for @LukeStephan then it is ok!

How can this be ok in any way? He would need to be able to add the shortcode via Cornerstone in the normal way, otherwise there is clearly a problem! These issues are quite obviously related.

Luke, can you please try adding two instances of MEC shortcode in your Global Block, and see if it still works?

Hi @outpost33 and @christian,

Doing the test I realized that I can no longer open the backend of the Global Block.


However, if I insert another instance of the MEC shortcode, using the Outline navigation, I see it correctly in the frontend.

We therefore need to find the solution to this problem.
Thanks so much!

@LukeStephan @christian,

Further to Luke’s recent post, I can confirm that my issue is exactly the same.

The backend of the Global Block does not open and gives the error as detailed by both me and Luke, but inserting the Global Block containing the MEC shortcode works on the frontend.

Therefore we need a solution, as Luke has already pointed out.

Hi @outpost33,

There’s some workaround to fix your issue while the MEC shortcode is active on your Global Blocks. I suggest that you will use the Raw Content element instead of Content Area element and check the disable preview options. In that way, the MEC will not conflict with the builder.

Then you can access your Global Blocks with shortcode without any issue.

Note: I applied the changes to your website so that you can check it with yourself.

Hope that helps.

Thank you.

Many thanks for the suggested solution.

However do your developers have this in their sights? Do you have a timeline for a permanent fix, and is this added to your issue tracker?

At this point it is not possible to add MEC shortcode directly to the page, without using Global Blocks.

Hi @outpost33,

You can add the MEC shortcode directly to the page by using the Raw Content element and check the disable preview options. In that way, the MEC will not conflict with the builder.

Hope that helps.

Thank you.

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