Joomla Class Not Found Error Caused by Namespaces
Don’t worry, you’re not alone! If you have an error that looks something like: “word\word\word not found”, it may be because of an extension you’ve recently installed or updated. Here are two more examples:
Quick Joomla history lesson: when Joomla switched from version 1.5 to version 2.5, there were significant changes, creating what is known as a technology cliff. So many users were completely lost after the change because there was no way for them to upgrade to Joomla 2.5 without help. Joomla wants to prevent that from happening again, while still having the flexibility to make important and necessary upgrades to make Joomla even more powerful and versatile.
In version 4.0, Joomla is using something called namespaces, which is a newer technique in PHP, so extensions built for 4.0 may cause issues if you’re still using Joomla 3.8 or earlier.
In order to facilitate a smoother transition this time, Joomla made version 3.9 a bridge between Joomla 3.x and Joomla 4. Joomla 3.9 is compatible with everything for the earlier 3 series versions, AND it will also work with extensions created for version 4.0. Importantly, in version 4.0, Joomla is using something called namespaces, which is a newer technique in PHP, so extensions built for 4.0 may cause issues if you’re still using Joomla 3.8 or earlier.
Bottom line: if you’re seeing the error above, it’s most likely because you’ve installed or updated an extension that is built for Joomla 4.0, but you haven’t upgraded to the bridge yet (version 3.9).There are two solutions to fix this problem:
1. If you can still access the backend of the website, upgrade to Joomla 3.9. Once you’ve done that, you’ll be able to continue using extensions built for earlier versions, but you’ll also be able to use extensions that have already been adapted for Joomla 4.0. *Important note: please ensure you back up before you upgrade!
2. If you cannot access the backend, manually disable the extension directly in the database using phpmyadmin. Here is a quick tutorial of how to do that.
Don’t have time to do this yourself and just want it fixed quickly? No problem! Contact us today, and we’ll take care of it for you.
YellowWebMonkey Web design offers reliable website design, SEO and digital marketing services for Joomla, WordPress and Shopify sites. We strive to be a one-stop shop for all your web needs.