0
Welcome Guest! Login
0 items Join Now

SOLVED Class 'DOMDocument' not found - Amazon Linux

  • SOLVED Class 'DOMDocument' not found - Amazon Linux

    Posted 10 years 9 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.

      -Doug
    • Last Edit: 10 years 8 months ago by Doug Robertson.
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: SOLVED Class 'DOMDocument' not found - Amazon Linux

    Posted 10 years 9 months ago
  • Re: SOLVED Class 'DOMDocument' not found - Amazon Linux

    Posted 10 years 9 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?

      Thanks,
      Doug
  • Re: SOLVED Class 'DOMDocument' not found - Amazon Linux

    Posted 10 years 8 months ago
    • I got distracted by the libxml2 version, your link to the other thread actually fixed the issue.

      After lots of effort and building the latest version of libxml2 from source on my server I figured out that installing php-xml would fix the issue.

      yum install php-xml
      service httpd restart

      Unlike the other thread --disable-dom was not set on my machine, but the php-xml install did fix the issue.

      Thanks for your help.
      Doug

      Question - Is it possible to set this as Solved?
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: SOLVED Class 'DOMDocument' not found - Amazon Linux

    Posted 10 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. :)
    • Kat05 / QA Lead & Support / Germany

Time to create page: 0.052 seconds