Fatal Error: Class ‘Layers_Widget” not found in layers-pro-extension/widgets/post-carousel.php on line 14.
When viewing your site from a mobile device (not just in a responsive view) or attempting to preview your url using Social Commerce, you see this error or similar:
The file name may vary depending on which widget comes first on your page.
This happens when you have a plugin active that replaces Layers, such as a mobile plugin or Social Commerce. These replace your main theme, so when Layers pages are rendered that have widgets that require the Layers library, it can’t find what it needs and produces an error. In some cases the problem is made worse if you are running an outdated version of Layers Pro.
Error Appears on Mobile
- Go to in your admin and look for anything “mobile”and deactivate it. This includes Obox Mobile, WP-Touch and HandHeld.
- If you have Jetpack enabled, make sure it is updated to the latest version to remove the old Mobile Theme.
Layers is fully responsive and will adapt to a mobile view automatically so these plugins are not necessary. To learn more about responsive views or customizing the mobile views of your site, see: How to Customize Responsive Views
- Ensure Layers is up to date
- Verify all plugins active are up to date by going to →
- Ensure all Layers extensions are up to date, specifically StoreKit and Layers Pro, if you have them. To update, download a fresh copy from your CodeCanyon or Layers dashboard and reinstall it.
- If you have Social Commerce, ensure it is also updated by following these instructions
Did you know?
Our friends at Jetpack are doing some incredible work to improve the WordPress experience. Check out Jetpack and improve your site's security, speed and reliability.