Cornerstone & sub domains

Hello There

I changed my multilingue website with sub domains but now I cannot use cornerstone for the sub domains languages…

I got : The preview could not load. This is most often related to a plugin conflict or aggressive page cacheing. Checking the developer console for errors could indicate what went wrong.

All good for my primary language (EN)…

Please help

Regards

Hi @Guillaumeg06,

Thanks for reaching out.

It should work with sub-domain, but if it’s multi-site that loads another URL (due to resources) plus with SSL setup then it might not work due to mixed content issue. I checked your site and I don’t see any sub-domain nor the multi-site setup. Would you mind granting a network admin login credentials?

I also tried switching language and it’s not switching to any sub-domain, please provide a video recording or instructions of how we could see the issue directly.

Thanks!

Hello Rad

Thank you for your reply

It is sub domain

LOOK

Main site
https://www.yachting-insurance.com/

Sub domain
https://fr.yachting-insurance.com/
https://it.yachting-insurance.com/
https://ru.yachting-insurance.com/

you have the credential in the first email.

Best

Hi @Guillaumeg06,

This is not cornerstone related, but the session isn’t shared across sub-domain by your Wordpress current setup. You can confirm that by logging on the main domain and go to the home page and you’ll see an admin bar. Then switch your home page language other than English and you’ll notice it has no admin bar. Which means, the logged in session isn’t shared across sub-domains.

It’s similar to this issue, https://wpml.org/forums/topic/cookie-domain-for-session-across-subdomains/ although, it’s WPML but this issue can happen to any plugin that uses sub-domain. I would also recommend contacting your hosting provider to see how you could set up the cookie domain for your sub-domains.

Thanks!

Thank you Rad

I made the work to get the admin bar for sub domain but still nu luck to edit the subdomain page with PRO…

Do you have an idea?

Regards

Hey @Guillaumeg06,

We’re sorry but Cornerstone does not support sub-domain setup. You will need to use the sub-directory setup like https://yachting-insurance.com/fr

Thanks.

Hello There,

I changed for sub domain for better SEO, I cannot coming back.

If PRO/cornerstone doesn’t work with SUBDOMAIN, why it is working with SUBDOMAIN HOME PAGE?

Regards

Hi @Guillaumeg06,

I can’t find a sub-domain on your home page, plus it always redirects back to the default page once I access in the editor. Would you mind providing a video recording of where it’s working?

Please note that this issue is not just cornerstone related but also to the way you set up the sub-domain and the main installation. The WPML or any language plugin will only allow you to use the sub-domain format but it doesn’t mean they will automatically set it up for you. It only assumes that you already configured your site for it before you switch to that format. The cross domain or sub-domain cookie sharing is just one of many features that should be configured, but I’m not an expert on that setup so I can’t provide further information. Which yes, it may or may not work, the builder only loads through the resources provided by Wordpress which the builder is not aware if it’s shared or not between sub-domains.

Again, I couldn’t confirm your setup since I can’t get in your site admin, it always redirects back to that URL. Please check the video in the secure note.

Thanks!

Thank Your Rad for your message,

However I cannot acces to the link inside the secure note, I tried to different navigator.

Could you update the link to know what do you mean?

Best

Hi @Guillaumeg06,

I have reuploaded the video to a different link.

Please see secure note.

Thank you.

Hello,

This is normal this is an error page.

Try to use it to any other regular page.

Regards

Edit : Same from this page I can connect to the dashboard.

Hi @Guillaumeg06,

Thank you for the information. I checked the website and here is the problem that causes the error message of the page builder:

Access to XMLHttpRequest at ‘https://it.yachting-insurance.com/a-proposito/’ (redirected from ‘https://www.yachting-insurance.com/a-proposito/’) from origin ‘https://www.yachting-insurance.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Let me give you context:

The Page Builder preview area uses iFrame to fetch the website and show a preview. Now, the problem is that when you go to edit for example Italian, your website main domain is https://it.yachting-insurance.com, but the Page Builder tries to load the preview which WordPress tells it, and that is https://www.yachting-insurance.com. It causes the server to block the iFrame as server thinks the IT domain wants to access something from WWW domain and considers it a foreign one and throws the security blocking called CORS policy.

Please contact your hosting service provider and ask them to make all the domains and subdomains go around the CORs policy.

But even if that is fixed, the page builder will show the English version as the WordPress tell it the domain is that. So you need to avoid using the Preview for the other languages anyway.

Instead please ignore the error message and click the Skeleton mode icon at the left side of the builder:

That will minimize the preview window and show the Skeleton mode. You can select the elements and change whatever you normally want without having the preview itself:

Saving the changes will show in the front end of the website.

So the bottom line is that you will lose the preview section of the builder for the other languages, but you still can use the Skeleton mode to do your changes.

Thank you.

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