Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2290

Migrating and Upgrading to Joomla! 5.x • Joomla 5 cannot find standard PHP class

$
0
0
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?

Statistics: Posted by kalinma — Tue Sep 10, 2024 3:41 pm



Viewing all articles
Browse latest Browse all 2290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>