Domdocument Not Found Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business fatal error class domdocument not found Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation php fatal error class domdocument not found Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like class domdocument not found mediawiki you, helping each other. Join them; it only takes a minute: Sign up Class 'DOMDocument' not found up vote 34 down vote favorite 7 I've found an error on a page in my Magento application; it always show
Class 'domdocument' Not Found In Php
this message error when I visit it: Fatal error: Class 'DOMDocument' not found in /home/.../lib/Zend/Feed/Abstract.php on line 95 Can you give me a solution? I'm using magento 1.4.1.1. php xml magento share|improve this question edited Jun 6 at 18:49 Mark Fox 3,78122955 asked Jan 18 '13 at 8:48 ws_123 42931019 1 This answer (enable php-xml) seems coherent, why doubt it instead of just testing it? From a few google searches it seems to be class 'domdocument' not found symfony one of the possible issues –koopajah Jan 18 '13 at 8:52 1 i just scare when i try "yum install php-xml", it will disturb my magento site.. –ws_123 Jan 18 '13 at 8:58 add a comment| 5 Answers 5 active oldest votes up vote 60 down vote accepted You need to install the DOM extension. You can do so on Debian / Ubuntu using: sudo apt-get install php5-dom And on Centos / Fedora / Red Hat: yum install php-xml If you get conflicts between PHP 5 and PHP 5.3 packages, you could try to see if the php53-xml package exists instead. share|improve this answer edited May 15 '15 at 9:05 Anthony Geoghegan 3,25121833 answered Jan 18 '13 at 8:59 Dean 1,859917 what about centos.. –ws_123 Jan 18 '13 at 9:06 For Cent OS: smartwebdeveloper.com/centos/… –JNDPNT Jan 18 '13 at 9:42 1 i tried it, there is message in putty.. ... Error: php53-common conflicts with php-common ... –ws_123 Jan 18 '13 at 9:52 Updated my answer... –Dean Jan 18 '13 at 10:31 6 installing php-xml solved this for me but don't forget the 'service httpd restart' –zzapper Oct 29 '13 at 15:36 | show 3 more comments up vote 26 down vote PHP7 solution for Ubuntu: apt-get install php7.0-xml PHP7 solution for CentOS / Fedora /
here for a quick overview of the site Help Center class 'domdocument' not found centos Detailed answers to any questions you might have Meta Discuss
Fatal Error Class 'domdocument' Not Found In Magento
the workings and policies of this site About Us Learn more about Stack Overflow the
Phpunit Class 'domdocument' Not Found
company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss http://stackoverflow.com/questions/14395239/class-domdocument-not-found Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up DOMDocument not found up vote 0 down vote favorite I'm trying to code my own "HTML Generator" so i http://stackoverflow.com/questions/27036279/domdocument-not-found won't have to write HTML as string anymore, but the problem is that PHP doesn't recognize the DOMDocument class, it tries to load a Class with the name DOMDocument in the same namespace, which throws the error, I tried adding the backslah but no luck, here's my code : formatOutput = true; } public function createInput($value, $name, $class = null) { $input = $this->createElement('input'); $input->setAttribute('value', $value); $input->setAttribute('name', $name); $input->setAttribute('class', $class); return $input; } } the code of the action in the controller that uses this class : createInput('test', 'test', 'test'); $html->appendChild($elem); return $html->saveHTML(); Here's the error message : Fatal error: Class 'Services\HtmlGenerator\DOMDocument' not foun
all over the world. Join today Community Community Home Getting Involved Chat Forum SupportPost installation PHP Fatal error: Class 'DOMDocument' not found in modules/filter/filter.module https://www.drupal.org/node/1238894 on line 1041 Posted by carn1x on August 4, 2011 at 3:33am I have just transferred a Drupal 7 site from my local development environment (OSX / MAMP) to a CentOS server. It seems to work for the most part as an anonymous user, it's a fairly simple site at this point, however I can instigate the following error not found in 2 ways: PHP Fatal error: Class 'DOMDocument' not found in modules/filter/filter.module on line 1041 Either by: * Logging In (log in appears to be successful, as the error occurs on every page until I go to /user/logout , at which point the site becomes usable again) * Submitting a Views exposed filter that returns no result (If a result class 'domdocument' not is found, no error occurs) Googling doesn't really find anything, however I did realize that my file_temporary_path wasn't set correctly, it's now set to s:4:"/tmp"; Apparently sites/default/files permission might be related as well, but that's set to 777. Please help! Log in or register to post comments ⋅ Categories: Drupal 7.x Comments SOLVED carn1x commented August 4, 2011 at 4:14am This was fixed by installing the package php-xml Log in or register to post comments A bit after the fact bdimaggio commented November 5, 2014 at 6:58pm ...but this helped me too. Thanks, carn1x. Log in or register to post comments Thanks for posting the fix neethu r commented January 27, 2015 at 7:24am Installing the package php-xml resolved it for me too. For people using Redhat Linux, all you have to do is: yum install php-xml and restart apache Log in or register to post comments Hi! Just wanted to say thank victor.bexelius commented May 3, 2016 at 7:40am Hi! Just wanted to say thank you for this info. Case: Working site moved to other VPS, dru