Cornerstone issue "The preview could not load due to the iframe response being incomplete. This is most often related to a plugin conflict, or customizations introducing a PHP error."

Hi There @Gmulti

Upon checking server configurations, I see that the PHP memory limit is still set to 256MiB. If you have already tried to increase memory limit by following the above guide, that means the hosting provider is not allowing to change memory limit manually. In that case, you will need to contact the we hosting provider directly to increase memory limit. You can check the current server configurations by head over to Dashboard -> WP Serverinfo area.

Also enable WP_DEBUG mode when, if you require further assistance (https://codex.wordpress.org/WP_DEBUG).

Let us know how it goes.

Thanks guys, here are the update from the customer (TLDR go to Conclusion, can you have a look at the issue with page ID and slug maybe):

  • Renamed my Chrome profile map and created a new one on my Windows computer

  • This didn’t change anything, what I expected because on another computer (a Mac) I am experiencing the same problem. On my Ipad, however, I can edit my home page in Cornerstone with Weglot activated. However, the editor is not compatible with an Ipad so that doesn’t really help. But it is interesting to see that it works with my same WP admin account on an Ipad.
    –> My assumption is that the problem only exists on PC’s that I have used before to edit pages.

  • I had my service provider increase PHP memory from 256 to 512 Mb. Under PHP / Core it now shows:
    Directive: Memory_limit:
    Local value: 512 M
    Master value: 256 M
    –> I assume that is what you requested?
    I have changed the WP-config.php file and now it contains:
    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
    define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );
    define( ‘WP_DEBUG’, true );
    I no longer work with Woocommerce, so I deactivated WooCommerce, WooCommerce Email Customizer, WooCommerce Invoice Gateway. That cleans up a lot. However…

Unfortunately, it didn’t help. Still can’t edit homepage when Weglot plugin is activated.

NEXT STEPS I UNDERTOOK I restored a backup from 11th September 2018. That was before I made changes to pages, a.o. the home page.

After the backup was restored, everything worked fine. It had several outdated plugins, such as Weglot 2.07. I updated all plugins (including Weglot) and everything still worked fine.

  • What I noticed, was that my home page had ID 992 (when editing in Cornerstone, (<https://www.trainngain.com/x/#/content/992/layout<) . It had slug “home-2”. There was also a backup of home page, it had ID 2722: (<https://www.trainngain.com/x/#/content/2722/layout<). It had ALSO slug home-2.
  • Then I restored the current backup from today again and I had my revised pages and updated Plugins back. AND the problem. I noticed that my homepage has ID 2993 (<https://www.trainngain.com/x/#/content/2993/layout<) when editing with Cornerstone. So home is a different page. I renamed the slug to home-2 and made a copy of it. I tried to rename the slug of the copy also to home-2 but that didn’t work: it is changed to home-2-2 automatically. So I have no idea why I had two home pages with the same slug. In any case, I didn’t have the problem.

CONCLUSION

  • The old backup doesn’t have the problem
  • Updating the Plugins is not the cause of the problem (while updating them in the old version didn’t introduce the problem)
  • Somewhere in the process of copying and renaming names of pages, something has happened that causes the problem but I have no idea what.

He also reported <https://www.trainngain.com/x/#/options< as a non working page

Hey Thomas,

Thanks for the additional info. Cornerstone working in his iPad and the slug conflict are significant clues. I have tested Weglot also though and I could not replicate the issue. I’m not sure why he would copy when it’s not necessary. I tried renaming both Page Title and Slug too and the page is still editable in Cornerstone.

Since it works in his iPad, the problem could be in his browser. Please advise him to clear the browser’s cache and if he has browser extensions, they need to be temporarily deactivated for testing. Also test in other browsers including incognito mode in his PC.

Regarding the slug conflict, I’m not sure why his page was duplicating but it’s certainly not an issue with Cornerstone nor Weglot. If he has a page duplicator plugin, that could be the cause. The duplicate will not work because Cornerstone data is tied to the original page only.

If he’s using the duplicated page as a template, he should use the Template Manager instead.

Is the “options page x/#/options not working” also connected to Weglot conflict in his site? Please tell him to reset his htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button. If this does not work, please advise him to open a thread here and give his WordPress Admin and FTP credentials in a Secure Note and also post the URL of this thread for reference.

Thanks.

Thanks a lot Christian, I’m passing the info to the customer and I’ll get back to you.

You’re welcome, Thomas.

Hi Christian, this is Paul, the user of the website.
You’ve asked to reset the .htaccess file.
I can’t find .htaccess file. I have used 2 different FTP programs, switched “show hidden files” on, and tried to generate a new one by pressing the save button on the permalinks screen. Without result.
I have restored the backup that worked, and in this version also I can’t see a .htaccess file.
Your advice to clear cookies etc. was of course followed. But it doesn’t help. And besides that, if I restore a backup of the Wordpress installation it works without problems. If the cookies in the browser would be the problem, that wouldn’t work.

Hello @lex,

Thanks for updating the thread.

Please take a look at following article to locate and editing .htaccess file.

https://www.shoutmeloud.com/how-to-edit-your-wordpress-htaccess-file.html
https://www.greengeeks.com/tutorials/article/tips-on-finding-your-wordpress-htaccess-file/

You also have the option of getting in touch with the hosting provider and request them to rename .htaccess file for you.

Let us know how it goes.

Thanks.

Finally I was able to rename the .htaccess to .bak and create a new one by saving in the Permalink screen. I was using two FTP programs but non of them let me see .XXX files. Unfortunately, that didn’t solve the problem.
What I was able to find out meanwhile is the following:

On Windows 10 PC
Problem exists with Chrome all Chrome accounts
Problem exists with Firefox
Problem Doesn’t exist with Edge

On Windows 10 notebook
Problem exists with Chrome
Problem doesn’t exist with Edge

On Macbook Pro
Problem exists with Chrome all account
Problem exists with Safari

So on the computers that I have, Edge doesn’t give the problem.
Does that help?

Hey @lex,

If the problem is not the cache, browser extensions usually cause such an issue. Maybe you have browser extensions in Chrome, Firefox and Safari that is not installed in Edge? I’ve also mentioned to check browser extensions previously.

Please also give us WordPress Admin level access in a Secure Note. Right now, I get this permission error.

We need to check if Cornerstone’s working on our end because if that is the case, you have a setting in your browser that breaks Cornerstone.

Thanks.

I have given the account that you know of admin rights. Please check again.

For your information: Just unpacked a brand new Macbook Pro and freshly installed Chrome on it. Both Chrome and Firefox give the error.

Hello @lex,

Thanks for updating the thread. :slight_smile:

Can you please allocate administrator level access to the username that you have shared? As the account does not has admin level access I really can’t test Cornerstone.

Thanks.

Hi! Sorry for the inconvience, I updated the admin rights. Please check again.
How can I change my profile name on this forum? I am not Lex but Paul. And I don’t get any notifications if a new message or reply is added to this topic. Thanks!
Paul

Hello Paul,

Please go to your profile (https://theme.co/apex/forum/u/lex) and find the preference tab. Make your that notifications were set and enabled in your account. You can also change your profile name and other details too.

Back to your issue, I was able to logged in and edited some of the pages. I created a test page with no issues at all. I even edited some of your pages. I only encounter the issue in your homepage. I am suspecting that there is something that you have added in your homepage that triggers the issue.


Please try to recreate your homepage by creating a new page. You can re assign this new page again as your homepage once your done. And if you want to check out that elements you have added in your current homepage, you can use the skeleton mode to edit the page for faster response and easy access of the elements on the preview area.

Hope this helps.

Hi RueNel,
I am sorry but can’t find the option to change the username from @lex to @Paul.
Meanwhile I found the option to get notified when new responses come in (would have been logical to find them under ‘notifications’ but it appears to be under ‘emails’ :smirk:

Back to the problem: I am not sure if you get the point. Indeed the problem is my home page. But, as I have explained before, the problem is ALWAYS my home page, no matter what content is in it.
If I make another page my home page, the problem shows up in that other page. If my current Home page is no longer my home page, I can edit it without problems.
So again, it seems that the problem lies not in the page itself, but in the fact that the page is labeled “home page”.

So to clarify, I just did this:

  1. Try to edit “home” with cornerstone. I get an error message.
  2. Copy “Home” to “Home copy”. I can edit “Home copy” but can’t edit “Home”.
  3. Make “Home copy” my home page. I can’t edit “Home copy” but now I can edit “Home”.
  4. Revert home page back to “Home”. I can edit “Home copy” but can’t edit “Home”.

This all with Weglot plugin activated.When Weglot de-activated, no problem at all.

Conclusion: Cornerstone generates an error when I try to edit my home page with Weglot activated, no matter what the home page is.

Hi Paul,

It’s because of this option

I went ahead and turned it off, the home page is now loading in the builder.

Thanks!

Hi Rad,
You did an excellent job and indeed, this is the cause of the problem.
This option redirects the user to the home page in the right language.
In Weglot, my default language is Dutch. Weglot translates everthing to English. For whatever reason I think my browser language was changed from Dutch to English. Because of this, when trying to edit the home page in Cornerstone, Weglot tried to load the English version of the page, but WP/Cornerstone only contains the Dutch pages.
When I switched my Ipad language from Dutch to English, all of a sudden I had the error on my Ipad too.
When I switched my browser language on my Windows PC from English to Dutch, I didn’t have the problem any more.
So to summarise: editing a WP site with Cornerstone and Weglot only works correctly, if the browser language is set to the default language of Weglot.
Once again, thank you very much!

Best,
Paul

You’re most welcome Paul!

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