Cornerstone not loading #02

Hi,
So, my cornerstone plugin is not working on my site. I installed a cache plugin which conflicted with my cornerstone plugin so, I deactivated it and since then I haven’t been able to make edits to my site and pages. Can you please look into this for me?

Thanks in advance.

Hello @quituck,

Thanks for writing in!

Upon checking the website I see that you are running X Theme version 6.4.6 . Please update X Theme to latest version which as of today is 6.5.5 to avoid any conflicts and compatibility issues.

You can take a look at following resources to update X Theme.

https://theme.co/changelog/

Thanks.

Okay, I updated my theme and I’m still having this issue loading cornerstone. Any other suggestions?

Thanks!

Hi @quituck,

Would you mind logging in to your CloudFlare Dashboard and disable the CloudFlare’s JS and CSS minification option.

After that, please Purge Everything from the cache.

https://support.cloudflare.com/hc/en-us/articles/200169246-How-do-I-purge-my-cache-

No, not on your CloudFlare plugin, that seems to not take effect immediately.

If the issues persist, please put the CloudFlare in Development Mode, and do testing 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.

Let us know how it goes,
Cheers!

So, this issue has nothing to do with my cloudflare or any of my plugins. I am able to make edits to my pages using cornerstone however, I can only make changes using the parent theme and not the child theme. When I activate my child theme, I can’t load my cornerstone. When I deactivate it, I can make edits to my site. After discovering this I deleted the child theme and reinstalled it and I still get the same loading error. Any idea what is causing this issue so I can fix it? I don’t want to switch between themes every time I need to edit the content on my web pages.

Hi @quituck,

Even if you installed a new child theme but still placed the same custom code then the result should still the same. Removing this code from your child theme’s functions.php should fix it


if (strpos($_SERVER['REQUEST_URI'],'functions.php') === false) {

	
function callback($buffer) {  

  if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] !== 'on') {
    if(!headers_sent()) {
        header("Status: 301 Moved Permanently");
        header(sprintf(
            'Location: https://%s%s',
            $_SERVER['HTTP_HOST'],
            $_SERVER['REQUEST_URI']
        ));
        exit();
    }
} 

$buffer =str_replace('<a ','<a aria-label="weather resistors" ',$buffer) ;
$buffer =str_replace('x-child/style.css?','x-child/style.css?tt',$buffer) ;
$buffer =str_replace('fontello.css?','fontello.css?556',$buffer) ; 
$buffer =str_replace('fonts.googleapis.com/css?family=','weatherresistors.com?font-display=auto&family=',$buffer) ; 
   return str_replace('http://weatherresistors','https://weatherresistors',$buffer);
} 

function buffer_start() { ob_start("callback"); }
function buffer_end() { ob_end_flush(); }

add_action('after_setup_theme', 'buffer_start');
add_action('shutdown', 'buffer_end');

}

I confirmed it, but I re-added it so you could try :slight_smile:

Thanks!

That was it! Thank you so much for helping me to figure that out.

You’re welcome. Glad we’re able to help.

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