Cornerstone not working for my woocommerce clients

All the sudden cornerstone not working with our woocommerce client sites. I have disabled security, caching plugins and cleared browser cache. Is there a fix for this issue that just seems to have recently exposed itself.

Please advise. Thank you.

Hey Keith,

If the issue is you can’t edit your products with Cornerstone, please go to X/Pro > Settings > Permissions and ensure the Products post type is enabled for the user level.

I can’t check your site as it is currently down. Please check with your web host.

Thanks.

Hmmmm. Not sure why you would get that message. The site is up and running fine from what I can see. Anyway, it is not the products but the simple pages…About Us, Contact, etc. The commonality is more then one site we have developed using woocommerce has this issue. Cornerstone will not pull up a standard page.

I hope this helps. Thanks.

Hi Kieth,

I am getting the same error as @christian_y when I am trying to access your site.

It could be that the domain you have supplied is incorrect or there is an IP blocker active on your site or the hosting of the site.

For us to be able to check this issue, we will need to be able to access the site.

Kindly double check on your end.

I did. Please check the new secure note. Thank you.

Hello Keith,

I have successfully logged in to your site. When I edit a page, I am seeing a JS error:

Uncaught SyntaxError: missing ) after argument list
(index):38 Uncaught ReferenceError: _ is not defined
    at (index):38
(index):42 Uncaught ReferenceError: moment is not defined
    at (index):42
(index):133 Uncaught TypeError: Cannot read property 'editor' of undefined
    at (index):133
(index):171 Uncaught ReferenceError: tinymce is not defined
    at (index):171
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
cs-vendor.fa34ec9.js:3809 Uncaught TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at a.callback (cs-vendor.fa34ec9.js:3809)
    at a.exports (cs-vendor.fa34ec9.js:18)
    at a._reify (cs-vendor.fa34ec9.js:21)
    at a.reify (cs-vendor.fa34ec9.js:20)
    at a.exports (cs-vendor.fa34ec9.js:17)
    at a._reify (cs-vendor.fa34ec9.js:21)
    at a.reify (cs-vendor.fa34ec9.js:20)
    at a.exports (cs-vendor.fa34ec9.js:17)
    at a._reify (cs-vendor.fa34ec9.js:21)
wp-backbone.min.js?ver=5.3.2:1 Uncaught TypeError: _.pluck is not a function
    at wp.Backbone.Subviews.detach (wp-backbone.min.js?ver=5.3.2:1)
    at i.render (wp-backbone.min.js?ver=5.3.2:1)
    at i.render (media-views.min.js?ver=5.3.2:1)
    at HTMLDocument.init (media-editor.min.js?ver=5.3.2:1)
    at i (jquery.js?ver=1.12.4-wp:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
    at Function.ready (jquery.js?ver=1.12.4-wp:2)
    at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)

Did you added any custom php code in your child theme’s functions.php file? Please provide us FTP details so that we can inspect your theme files.

Regards.

ftp removed.

*Only use plain FTP (insecure)

the directory is the midweststeering.com and not the files in the root. Thank you.

Hello Keith,

Just as I suspected, you have added a custom PHP code that is causing the issue.

// Defer Javascripts
// Defer jQuery Parsing using the HTML5 defer property
if (!(is_admin() )) {
    function defer_parsing_of_js ( $url ) {
        if ( FALSE === strpos( $url, '.js' ) ) return $url;
        if ( strpos( $url, 'jquery.js' ) ) return $url;
        // return "$url' defer ";
        return "$url' defer onload='";
    }
    add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
}

I have temporarily commented out the code and your Cornerstone is now working again.

Please check your site.

Must be a conflict with updated versions of Cornerstone because this piece of code has been in the child theme for a couple years. Might be something they want to address. It is quite common to defer JS and increase the performance of the website.

Anyway, thank you for your assistance. I appreciate you.

You are most welcome!

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