Php iframe error

Hello,

We have built a website using cornerstone, and not long ago we suddenly got a ‘The preview could not load due to the iframe response being incomplete. This is most often related to a plugin or php conlfict’ when trying to access pages in cornerstone, I believe after updating wordpress to a newer version.

Currently, we are getting this error when visiting certain web pages, or when we try to visit the cornerstone ‘settings’ page. We can still get into the webpage by first editing the page in wordpress and then reinitializing it in cornerstone. One thing we noticed is that ‘origin url’ is wrong.

Another problem we had is that the new cornerstone elements do not work (they just end up being a grey box with diagonal stripes), we can only add ‘classic’ elements.

We have already looked in the debug.log and the ‘undefined variable’ occurs when we try to open certain pages or the ‘options’ page, and the other error occurs when trying to add a ‘new type of element’.

We have tried redoing the .htaccess file with permalinks, and disabling the plugins, but nothing has helped. And we added the max-mem to some sort of config file.

Hello There,

Thanks for writing in!

  • You are seeing PHP Notices. You can get rid of this by disabling your debug mode. You can do this by opening wp-config.php and adding define( 'WP_DEBUG' , false ); just above /* That's all, stop editing! Happy blogging. */
    For example:
define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, you no longer be seeing those PHP notices.

  • I also noticed that you have installed X incorrectly. You might have uploaded the wrong zip file. You are supposed to upload the x.zip file or you have to unzip this file and manually upload the files in to your themes folder wp-content/themes/x/. At the moment, you have added it in wp-content/themes/x/x/ which may have caused some issues in the future. Please moved the files to the correct folder wp-content/themes/x/.

Please let us know how it goes.

I just realized that we are still running PHP version: 5.5.9, could this be causing our issues?

I turned off the WP_DEBUG but the issue persisted… I can try and reinstall xtheme, will al my cornerstone pages be unchanged if I do that? And is it even worth it when I am still running an old PHP version?

Hey There,

Running older version of PHP may also contribute on the issue. Please make sure that you are using the minimum requirements to run WordPress to avoid any errors. WordPress 4.7 requires at least 7.0 (https://wordpress.org/about/requirements/). In most cases you cannot update your PHP version yourself and need to contact your host about this. The upgrade process is an easy process and should be something your host can do for you without affecting your website or charging you for it. Here’s a letter you can send to your hosting company:

Dear host,

I'm interested in running the open-source WordPress <https://wordpress.org/> web software and 
I was wondering if my account supported the following:

- PHP 7 or greater
- MySQL 5.6 or greater
- The mod_rewrite Apache module
- HTTPS support

Looking forward to your reply.

By the way, please fix first the incorrect folder installation of the theme as I mentioned in my previous reply. If you can give us ftp credentials, we can correct the theme installation for you. Simply ad a secure note in your next reply an include the ftp hostname, ftp username and ftp password so we can log in.

Thank you.

Ok, I reinstalled x-theme on my local copy of the site. Can I copy the cornerstone setting (such as the colour of the header etc)

Hi there,

You can export the Theme Options Manager setting from the live site them import it in the local site.

You can find this in X > Validations.

Hope this helps.

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