Global blocks not displaying

I have a site which worked fine on a development domain but now I’m publishing on the live domain and one of the global blocks no longer displays. The site is here…

But you can see in the admin there should be global blocks displaying near the bottom - see https://www.salternssailingclub.co.uk/globalblocks.jpg

Can you help?

Hi @redleaf,

Thank you for writing in, please do the following

  • Ensure that you are fully up to date. WordPress, Theme, and Cornerstone (Version Compatibility)

  • Clear all the site caches (plugin, server-side, CDN, and browser’s cache) so that the code from the latest release is always in use. This will help you to avoid any potential errors. Please deactivate this caching features while we tackle this issue.

  • Test for a plugin conflict. You can do this by deactivating all third-party plugins, and seeing 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 the issue persists, please provide us the site URL and credentials in a Secure Note so we can take a closer look.

Cheers!

I’ve done everything I know to do. If you are able to take a look I’d appreciate it. I added a secure note.

Hi @redleaf,

Thank you for the credentials but it did not work, and we can’t access the development URL, it redirects to live URL.

The 500 - Internal server error most of the time it’s a server-side issue, please contact your hosting support regarding that matter, it could be a permission or security issue.

Cheers,

Let me recap because I now think the change of domain was misleading and not relevant.

I’m using Pro v2.5.5. I found there is an incompatibility with global blocks and Modern Events Calendar 4.1. If I deactiveate Modern Events Calendar then global blocks display. With Modern Events Calendar activated the global blocks are hidden.

How can I fix this please?

(I corrected the username/password - you should be able to log in now).

– John

Hi John,

Are you saying it’s been like this even before switching the domain? I like to test the original setup where it’s still running on previous domain for comparison. This case is also isolated to this setup and I can’t reproduce it anywhere and I can’t find anything either.

What’s Friech trying to do is the same on my end, I like to test the development site first and compare the two to see what went wrong upon domain change since you said it worked on development site. We’re not saying it’s because of the domain change.

Thanks!

It did work at some point in the old domain but I couldn’t guarantee that it worked immediately before we went onto the live domain. It could also be that some update happened recently, so it may or may not be connected to the domain change. However I can’t easily show you the old domain to test - it’s not separate. And my host said “After doing the process of restoring the database so the old development URL is used, the same behaviour was occurring.”

Hi @redleaf,

In order for us to continue troubleshooting, we need to check all possible causes including the comparison and testing of the original one, especially the copy where it still works. I don’t just restore the database would do since it always redirects back to live, hence when saved, it will still the same. But I’ll continue checking, this is my first time seeing issue like this and I can’t conclude that this is a product bug as of yet.

Thanks!

I’ve now set up a completely separate test site and it exhibits the same problem…
http://salternssailingclub-com.ntc11-p1rea.seeinside.co.uk/
would login details for that help?

Hi John,

I tried adding your MEC shortcode in classic raw element and it seems to work.

For shortcodes I would recommend that you use the classic element since that is a simple element with no extra settings and most likely will have a minimum chance of conflict with the shortcode.

Thanks

Hi Paul - That works, we’re getting somewhere. But using the raw element makes it difficult to add margins, background color etc. Surely this is a bug that if you enter the shortcode in a text block it stops global blocks working?

John

I’ve now also confirmed this bug shows on a completely unrelated site. If you have the MEC shortcode in a text block then global events stop displaying when you’re logged out.

Hi John,

With your other that stops working after logging out, I recommend disabling the cache plugin. An example, https://wordpress.org/support/topic/how-to-disable-w3-total-cache-for-logged-in-users/. The cache can be disabled for the logged user so it appears or works differently once logged out.

As for the raw shortcode, please use that for now. It seems to have random or varying for every setup which could be cache related too. As of now, it works okay on my text element. As for styling, how about adding your raw within a global block? Then add that global block to your page and please check more information here https://theme.co/apex/forum/t/global-blocks/24723

Global block builders work the same as a content builder, you can apply margins and backgrounds to the section so you don’t have to apply it directly to the raw element.

Thanks!

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