Cornerstone conflicting with WooCommerce

Users were unable to delete items from my site’s cart. I found that Cornerstone was the conflicting plugin. When I turn off Cornerstone, I am then able to delete items in my cart. As the entire website is built with this page builder, how do I go about fixing this conflict while making sure my site can be read, and my store can be used?

My URL is https://aikidoshinjukai.com/shop/cart/

I tried opening the console and found the following errors. But how do I go about fixing it?

Hey there,

Please check for the following:

  1. Ensure everything is up to date according to our version compatibility list at https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195. Please follow the best practices when updating your theme and plugins. See https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62 for more details.

  2. Clear all caches including browser cache then deactivate your caching plugins and other optimization plugins.

  3. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.

  4. Test 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.

  5. Remove custom CSS, Javascript and templates.

Thanks.

Hi, yes I’ve tested for all the above.

Answer to #1 - The theme and plugin is from Themeco itself. Cornerstone is the plugin preventing me from deleting items in my cart. It is the latest when I checked the dashboard.

Answer to #4 - This is the found problem. The plug in in conflict is Cornerstone itself. The issue is if I disable that plugin, my entire site no longer works as all the shortcodes will show up (see my screen shot in above post).

How can I fix this and keep my site layout intact?

Hi there,

Cornerstone has no connection with Woocommerce cart system, but maybe it’s due to javascript tangled together. Would you mind providing your admin and FTP login credentials in a secure note?

I also noticed that there are resources loaded from CloudFlare, it could be the caused too. Please provide your CF login credentials as well. And for the meantime, please make sure CSS and JS Minification are turned off under CF’s Speed section. Then purge your CF’s cache.

Thanks!

Hi, yes I thought it must be something clashing with the 2 plugins. I no longer have Cloudflare on the website as far as I know.

I’ll add my credentials in a secure note.

Hi there,

Have you changed the login credentials? I’m unable to log-in now.

I disabled your Sucuri plugin since its features are inactive, and there is a forbidden request. But the login credentials shouldn’t change, right?

The culprit for your cart issue is this code

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="https://npmcdn.com/isotope-layout@3/dist/isotope.pkgd.js"></script>

It loads its own version of jQuery library rather than Wordpress’ jQuery library. And that caused issues, other functions of your site are not working. Wordpress’ jQuery library is different, it has noConflict() declaration compared to that CDN hosted jQuery.

If you added it through plugin, custom code, or template, then please remove that block.

Thanks!

Hi,

No, but I was also logged out. I was sent a password reset email. And have done so. Do you still need the login?

Noted on Sucuri plugin. It actually sends me email notifications whenever a change to the site is made.

Re the conflicting script, where do I go to remove this though? Because I didn’t add any cloudflare script.

I also now have errors on the page:

As for the isotope, a page layout is using that. But I didn’t add that CDN either. Just a page template. I now have broken pages with the page isotope missing.

Dashboard now shows this:

And when I previously added some items to a cart, it would appear in a sidebar. It is now gone.

Can you please undo whatever you did to my site? It is now worse off than it was.

Please can this be undone asap? As this is a live site for a school. And the page that is now missing (that required isotope) is the one where they have school addresses listed on that people use everyday to find the addresses.

Just noticed that the site is now on the X theme, and no longer on the Child Theme. I am also unable to change it back to the Child theme.

There’s a Javascript error in the console and it is caused by this minified and combined JS file from Autoptimize plugin.

https://aikidoshinjukai.com/wp-content/cache/autoptimize/js/autoptimize_3d16afbfe2db854762edf84648755bfd.js

Please clear all caches and deactivate all optimization plugins while we investigate. If this could not be done, please copy your site to a staging or development site so we could investigate without interrupting your live site. Troubleshooting will involve removing all third party code including plugins and customizations. This is because we need to discover if the issue is really caused by Cornerstone. I understand you tried testing for a plugin conflict but there is that JS file that you might have missed removing and I suspect is causing the issue and it is neither part of X nor Cornerstone

Also check the login credentials as they are not working.

Thanks.

Hi there, thanks for all the help. To anyone to who has a similar problem, the culprit was the following in my footer.php:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>

Removing it has stopped the plugin conflicts.

Glad to hear you got this all handled @brainstormsg! :slight_smile: