Author Topic: Error when previewing HTML documents  (Read 6096 times)

lucasb

  • Newbie
  • *
  • Posts: 4
    • View Profile
Error when previewing HTML documents
« on: May 05, 2009, 06:54:21 PM »
When clicking on any HTML document, the following message is display in the preview pane:

Caught Exception in AutoLoader: exception 'Exception' with message 'Could not find class file for "DOMDOCUMENT"' in /var/www/opengoo/environment/classes/AutoLoader.class.php:105 Stack trace: #0 /var/www/opengoo/environment/classes/AutoLoader.class.php(111): AutoLoader->loadClass('DOMDOCUMENT') #1 /var/www/opengoo/application/functions.php(33): AutoLoader->loadClass('DOMDOCUMENT') #2 [internal function]: __autoload('DOMDocument') #3 /var/www/opengoo/library/htmlpurifier/HTMLPurifier.standalone.php(5828): class_exists('DOMDocument') #4 /var/www/opengoo/library/htmlpurifier/HTMLPurifier.standalone.php(142): HTMLPurifier_Lexer::create(Object(HTMLPurifier_Config)) #5 /var/www/opengoo/environment/functions/general.php(569): HTMLPurifier->purify('

 

 
display_content() #8 /var/www/opengoo/environment/classes/controller/PageController.class.php(62): Controller->execute('display_content') #9 /var/www/opengoo/environment/classes/Env.class.php(173): PageController->execute('display_content') #10 /var/www/opengoo/init.php(150): Env::executeAction('files', 'display_content') #11 /var/www/opengoo/index.php(9): require('/var/www/opengo...') #12 {main}

lucasb

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Error when previewing HTML documents
« Reply #1 on: May 13, 2009, 06:46:35 PM »
I am still experiencing this error on the RC.  Oddly, the code works fine on our test server. Is there a PHP library dependency missing?

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Error when previewing HTML documents
« Reply #2 on: May 14, 2009, 10:42:44 AM »
hi,

try deleting the file "cache/autoloader.php" (it will be generated again automatically), and then try to view the document again.

claudio

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Error when previewing HTML documents
« Reply #3 on: May 23, 2009, 07:49:14 PM »
I have de same problem in 1.4 release after delete cache.

lucasb

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Error when previewing HTML documents
« Reply #4 on: July 07, 2009, 02:40:44 PM »
I too am still receiving this error on version 1.4.2 even after removing the cache file.  Are there any other possibilities?

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Error when previewing HTML documents
« Reply #5 on: July 16, 2009, 10:28:10 AM »
Hi,

Try removing the function "purify_html()" in "environment/functions/general.php" , and add this function
Code: [Select]
function purify_html($html) {
return remove_css_and_scripts($html);
}

ejavega

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Error when previewing HTML documents
« Reply #6 on: November 10, 2009, 09:08:19 AM »
To solve the problem without having to make rare patches, install the following packages from php:
  • php-domxml
  • php-xml

 

anything