SOLVED Class 'DOMDocument' not found - Amazon Linux
Posted 11 years 8 months ago
This just happened on a brand new web site I just loaded. I started getting this error right after I installed gantry. I have several Rok extensions installed, all of which I got the latest versions as of two days ago from your site. If I delete Gantry from the libraries everything returns to normal, but then I be able to use my template.
PHP Fatal error: Class 'DOMDocument' not found in /websites/home/XXXXXXXXXX.com/http/libraries/gantry/libs/phpQuery.php on line 255
also seeing
PHP Fatal error: Class 'DOMDocument' not found in /websites/home/XXXXXXXXXX.com/http/libraries/rokcommon/RokCommon/Service/Container/Loader/File/Xml.php on line 216
After looking through other posts I didn't seem to find a match for my exact situation but it seems like people are pointing at an error in libxml2. I tried updating mine to the latest, but that did not fix any issues. This is the libxml2 info from my machine;
libxml2-2.7.8-10.26.amzn1.x86_64 already installed and latest version
I am using;
Amazon Linux AMI release 2013.03
Joomla 3.1.5
httpd-2.2.25-1.0.amzn1.x86_64
mysql-5.5-1.3.amzn1.noarch
fastCGI installed
Hopefully you can help. I am dead in the water right now.
Re: SOLVED Class 'DOMDocument' not found - Amazon Linux
Posted 11 years 8 months ago
Thanks for the help on this. I just used Yum to load and update all my libraries. For some reason I assumed it would get the latest version.
It actually said that it was the latest version. I should know better than believe it.
I did a little checking and the amzn-updates repository for Yum only has libxml2 2.7.8-10.26.amzn1 available. I will do a bit of searching and see how I can get the new version of libxml2 installed.
I am getting better, but still a bit unsure of myself working in Linux. Do you have any suggestions for the most painless way of loading the new version of libxml2?
Re: SOLVED Class 'DOMDocument' not found - Amazon Linux
Posted 11 years 8 months ago
hi doug,
nice to hear that your issue is resolved. to mark your topic as solved, you would edit your original post and add (SOLVED) to the title and/or add the greencheck icon. then our team can move it to the solved boards. i'll do all of that right now.