I am upgrading an application to Joomla 5 and everything was fine until I started using namespaces. Now my component cannot find DOMDocument, a standard PHP class. It is trying to find the PHP class within my namespace. The error displayed is:
Class "My/Namespace/Path/Here/DOMDocument" not found
DOMDocument has been part of PHP since version 5. This is on my localhost with XAMPP on Windows 10. I'm running PHP 8.3.10, MariaDB 10.4.32 and Joomla 5.1.4. I have restarted apache and mysql several times with no success. How is it my component cannot find a standard PHP class and expects to find it within my namespace?
Class "My/Namespace/Path/Here/DOMDocument" not found
DOMDocument has been part of PHP since version 5. This is on my localhost with XAMPP on Windows 10. I'm running PHP 8.3.10, MariaDB 10.4.32 and Joomla 5.1.4. I have restarted apache and mysql several times with no success. How is it my component cannot find a standard PHP class and expects to find it within my namespace?
Statistics: Posted by kalinma — Tue Sep 10, 2024 3:41 pm