Author Topic: Document Preview  (Read 6325 times)

claudio

  • Newbie
  • *
  • Posts: 36
    • View Profile
Document Preview
« on: May 24, 2009, 08:41:22 am »
Hello.
Congratulations for the new release !!!

I'm testing de new 1.4 release before put it on production and I found the following error at the Document Preview Pane:

Caught Exception in AutoLoader: exception 'Exception' with message 'Could not find class file for "DOMDOCUMENT"' in /var/www/www.in3.com.ar/html/goo/environment/classes/AutoLoader.class.php:105 Stack trace: #0 /var/www/www.in3.com.ar/html/goo/environment/classes/AutoLoader.class.php(111): AutoLoader->loadClass('DOMDOCUMENT') #1 /var/www/www.in3.com.ar/html/goo/application/functions.php(33): AutoLoader->loadClass('DOMDOCUMENT') #2 [internal function]: __autoload('DOMDocument') #3 /var/www/www.in3.com.ar/html/goo/library/htmlpurifier/HTMLPurifier.standalone.php(5828): class_exists('DOMDocument') #4 /var/www/www.in3.com.ar/html/goo/library/htmlpurifier/HTMLPurifier.standalone.php(142): HTMLPurifier_Lexer::create(Object(HTMLPurifier_Config)) #5 /var/www/www.in3.com.ar/html/goo/environment/functions/general.php(597): HTMLPurifier->purify('
display_content() #8 /var/www/www.in3.com.ar/html/goo/environment/classes/controller/PageController.class.php(62): Controller->execute('display_content') #9 /var/www/www.in3.com.ar/html/goo/environment/classes/Env.class.php(173): PageController->execute('display_content') #10 /var/www/www.in3.com.ar/html/goo/init.php(150): Env::executeAction('files', 'display_content') #11 /var/www/www.in3.com.ar/html/goo/index.php(9): require('/var/www/www.in...') #12 {main}

I searched for the definition of a class named "DomDocument" and I have not found it.
Any suggestion?
Thank you.

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Document Preview
« Reply #1 on: May 26, 2009, 12:38:10 pm »
Hi,

Try to enable the extension 'domxml' in php.ini.
This will force htmlpurifier to use another class.

ejavega

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Document Preview
« Reply #2 on: November 10, 2009, 09:04:55 am »
To solve the problem without having to make rare patches, install the following packages from php:
  • php-domxml
  • php-xml