Cornerstone error when updating

I have recently updated 3 of my sites, and they have been flagged with an error.
I can’t get the Cornerstone Editor to load, it just spins.
Also my Revolution Slider has disappeared as well.

I have updated everything, cleared the cache, disabled the optimizer plugin, I am running the latest php and wordpress…and nothing helps.

Hello There,

We’re sorry you are having this issue. Check your license and I can see only 1 site there and there’s no error in it. Since you have done basic troubleshooting already, at this point we need to check the site directly to see the issue. Please share all those site’s URL and credentials inside a secure note.

Hello Tom,

Regretfully the given credentials is not working for us. It seems that the username or password is invalid.
Please double check it so that we can log in.

Thanks.

You can try the credentials again.

Hi Tom,

It looks like the issue is caused by this code in your functions.php.

//Defer Pasing JavaScript for entire website, including Plugins, but without jQuery.js
//Feel free to change "async" to "defer". $files will be excluded
function defer_parsing_of_js($url)
{
//Specify which files to EXCLUDE from defer method. Always add jquery.js
    $files = array('jquery.js');
//let's not break back-end
    if (!is_admin()) {
        if (false === strpos($url, '.js')) {
            return $url;
        }

        foreach ($files as $file) {
            if (strpos($url, $file)) {
                return $url;
            }
        }
    } else {
        return $url;
    }
    return "$url' defer='defer";

}
add_filter('clean_url', 'defer_parsing_of_js', 11, 1);

Can you try commenting it out and see if the issue is still there?

Let us know how it goes. Thanks!

THAT WORKED

–– Note to others having this problem ––
I was running SG Optimizer, and just because I turned off the Defer Parsing option in my plugin, and even deactivated the plugin, it left the code in my child theme functions.php file.

Thank you for helping me figure this out.

You’re welcome!
We’re glad @albrechtx were able to help you out.

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