X Pro & WooCommerce Broken

Hi there,

I have installed WooCommerce and for some reason, this has broken the site?

I have tried removing unused Headers to try and resolve the issue but this has not worked.

It appears as if the CSS is not loading.

Any help would be appreciated.

I find this error in Console:

Uncaught TypeError: $(…).wprs_unslider is not a function
at HTMLDocument. (VM598:1145)
at i (jquery.js?ver=1.12.4:2)
at Object.add [as done] (jquery.js?ver=1.12.4:2)
at a.fn.init.n.fn.ready (jquery.js?ver=1.12.4:2)
at VM598:1144
at wprs_defer (VM598:1137)
at VM598:1140

Hi There,

I could see that you installed the W3 Total Cache plugin but it’s deactivated now. I suggest you to take a look at this article to completely uninstall this cache plugin:

If it still doesn’t help, please follow up the steps below:

  1. Ensure everything is up to date according to our version compatibility list here. Please follow the best practices when updating your theme and plugins. Click here for more information.
  2. Go to X > Settings and click on the Clear Style Cache button.
  3. If you’re using a CDN(ex: CloudFlare), please clear the CDN’s cache and disable optimization services. For the CloudFlare you also need to follow the steps below besides the developer mode: https://xthemetips.com/using-cloudflare-rocket-loader-with-x-pro-and-x5/928/1
  4. Test for a plugin conflict. You can do this by deactivating all third-party plugins, and see 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 and Javascript from the options or Child Theme and test the case.
  6. Switch to the parent theme to check if the issue persists.
  7. Reset your htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button.
  8. Make sure that you’re running at least PHP v5.6.x or later to avoid any WordPress related incompatibility issues. If you’re not sure what your server configurations and settings are, install a plugin like WP-Serverinfo (https://wordpress.org/plugins/wp-serverinfo/) and check your server info by head over to Dashboard -> WP Serverinfo area.
  9. Check your PHP Max Execution Time and set it for 120 for optimal usage (https://thimpress.com/knowledge-base/how-to-increase-maximum-execution-time-for-wordpress-site/).
  10. Increase the PHP Memory Limit of your server. Click here for more detailed information and how to increase the PHP memory limit.

Let us know how it goes!

@Thai thank you for the quick response, always appreciated! :slight_smile:

I have tried everything you advised but it still is broken.

I think the issue is coming from Revolution Slider from what I see in the Console.

Any ideas what might be causing this?

EDIT: I have tracked down the issue, the Header is causing the problem not to sure why this is though?

Hey @RSI-DEV,

Thanks for tracking down the cause. Please check your Header CSS for syntax errors. You can check for CSS errors using tools like http://csslint.net/. If a line of CSS has a syntax error, it will cause for the rest of the CSS below it not to work.

If you have code in Header JS, also check for JS errors. A tool like https://www.jslint.com/ will help. JS errors can cause JS dependent functions like the mobile menu not to work.

Lastly, please check your header if you have HTML code. Paste your HTML code in http://htmlhint.com/ to see if there’s an error. HTML errors can cause layouts to break in the frontend.

If your header does not have any of those things, please create a test page and assign the header with issue then give us the URL of the test page.

Thanks.

@christian_y thank you for the testing tools.

There does not appear to be any bad CSS/JS/HTML and I have cleared out any custom code.

Hi @RSI-DEV,

It’s a corrupted theme upon installation and no script is loading (even jQuery), I installed the working copy and the header is now present.

Thanks!

@Rad thank you very much for the help as always!

Have a great day.

You’re welcome! :slight_smile:

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