No suitable preview area found on any page

I am having this issue. I have disabled and enabled plugins one at a time, and I think am seeing the issue someone else found on a Cloudflare related post.

I thought I was making progress by switching from X to Pro, but it returned shortly after so that was a complete waste of money . The issue is gone in the staging area, but re-appears on the live site, even after a fresh push from staging. The servers are identical in software and settings - as are the websites. The only difference is that Cloudflare is handling the DNS and caching for the live site.

The problem is I found this thread possibly solved 20 times in this forum, but all of them have the same answer - a link to a page that no longer exists. It seems nobody thought to put the actual solution into this forum on any of these threads. It is just a link on every one of them. So, I;ve turned off minimization, made sure the firewall isn’t blocking any IPs when this error occurs, turned off Brotli, Rocket loader, page rules, etc… down to where the only purpose Cloudflare is serving seems to be providing SSL.

Screen Shot 2022-11-21 at 4.53.12 PM

I am seeing these errors on the production site: Warning: Undefined variable $options_rating_scale_content in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 161

[22-Nov-2022 01:48:48 UTC] PHP Warning: Undefined variable $options_alert_close_offset in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/definitions/alert.php on line 212

[22-Nov-2022 01:48:23 UTC] PHP Warning: Undefined variable $control_widget_area_bg_color in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/definitions/widget-area.php on line 119

There are more errors like this, all starting with Undefined variable and all in Cornerstone.

I’d add that this site has been on Cloudflare for nearly a decade and that it was using X for nearly a decade, nothing has changed except for Wordpress and plugins being updated as needed. Both X and Pro are having this issue. This seems to have happened around the time Wordpress was updated to 6.1.1

Hi @lohre,

Thanks for reaching out.
It might be due to the PHP version, I would also suggest you make sure that the PHP version should be 7.4. If the version is already set to the 7.4, there might be some different reasons behind your issue. I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

  1. Theme Related Issue
  2. Plugin Conflict
  3. Theme Update related issue
  4. Child Theme Related issue ** if you have activated it.
  5. CSS/JS Customization
  6. Disabling Cache
  7. Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above help, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

I am starting to wonder if I am maybe missing a file or a row of data [Edit: This was a distraction. I’ll leave it here so people with the same issue might find this possible solution below]

[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $control_accordion_header_indicator in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/definitions/accordion.php on line 427
[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $options_rating_value_content in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 145
[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $options_rating_scale_content in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 153
[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $options_rating_scale_content in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 161
[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $options_alert_close_offset in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/definitions/alert.php on line 204
[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $options_alert_close_offset in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/definitions/alert.php on line 212
[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $options_rating_value_content in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 145
[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $options_rating_scale_content in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 153
[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $options_rating_scale_content in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 161
[22-Nov-2022 16:11:39 UTC] PHP Warning: Undefined variable $control_widget_area_bg_color in /var/web/site/public_html/wp-content/themes/pro/cornerstone/includes/elements/definitions/widget-area.php on line 119

I picked through every file and folder in Pro, compared files count and size. There is no missing file.

The websites are exactly the same, plugins are exactly the same, settings are all exactly the same, as they should be when pushed/pulled from staging to development. Yet, the staging site has no issues, the live site has issues. I hate having to mess with the live site in so many ways, but that is how it goes.

The only thing different seemed to be that the live site is routed through Cloudflare. Another difference is however that the staging site is password protected.

I went through and disabled every aspect of Cloudflare, every last bit. Still no change to the production site.

I decided, if it is because of the password protection, there must be some sort of communication to/from some API that when blocked keeps something from happening to the staging site.

I disabled SmartCrawl Pro again after turning off every CDN, and suddenly, the error went away.

Since this controls a lot of important SEO stuff I was reluctant to turn it off on the live site. It didn’t seem to matter much anyway since it was live on the staging site which was working. I can’t just leave it off, so I thought about what feature might be causing layers to be unrecognized by Cornerstone, what might work overtop of existing content?

Automatic Links. Turning off the Automatic links function on SmartCrawl Pro eliminates this conflict.

I went a bit further and chatted with WPMUdev for a while. It was not that the staging area is password protected. We started off thinking maybe it is that it does not have the same caches the production site has, and tried to turn those off the the live site using a config file. This made no difference, but then they remembered there is this setting:

Setting this to “prevent” clears up the issue up while allowing the Autolinking feature to work.

Hi @lohre,

We are not sure if the issue is resolved or not. Please let us know if you are still facing the same issue.

Thanks

Hi.

This is solved.

It was 100% a caching issue.

With X theme and with Pro theme, this setting needs to be turned on with sites using SmartCrawl.

I think WPMUdev might eventually make this turned on by default or do something to detect themes where caching might cause this issue.

Hi @lohre,

Glad that it is resolved now.

Thanks