Author Topic: mail a sposob kodowania  (Read 3330 times)

yahuto

  • Newbie
  • *
  • Posts: 2
    • View Profile
mail a sposob kodowania
« on: October 23, 2009, 11:19:33 AM »
witam mam problem z odczytywaniem mail, polega na tym ze jesli ktos napisze do mnie maila jako zwykly tekst to jesy ok, natomiast jako html to nie moze otworzyc maila i wywala:
Code: [Select]
Caught Exception in AutoLoader: exception 'Exception' with message 'Could not find class file for "DOMDOCUMENT"' in /home/www/.../opengoo/environment/classes/AutoLoader.class.php:105 Stack trace: #0 /home/www/.../opengoo/environment/classes/AutoLoader.class.php(111): AutoLoader->loadClass('DOMDOCUMENT') #1 /home/www/.../opengoo/application/functions.php(33): AutoLoader->loadClass('DOMDOCUMENT') #2 [internal function]: __autoload('DOMDocument') #3 /home/www/.../opengoo/library/htmlpurifier/HTMLPurifier.standalone.php(5828): class_exists('DOMDocument') #4 /home/www/.../opengoo/library/htmlpurifier/HTMLPurifier.standalone.php(142): HTMLPurifier_Lexer::create(Object(HTMLPurifier_Config)) #5 /home/www...l/opengoo/environment/functions/general.php(602): HTMLPurifier->purify('includeTemplate('/home/www/szkol...') #9 /home/www/.../opengoo/environment/classes/template/template.php(35): Template->fetch('/home/www/szkol...') #10 /home/www/.../opengoo/environment/classes/controller/PageController.class.php(115): tpl_fetch('/home/www/szkol...') #11 /home/www/.../opengoo/environment/classes/Env.class.php(141): PageController->getContent() #12 /home/www/.../opengoo/init.php(149): Env::executeAction('mail', 'view') #13 /home/www/.../opengoo/index.php(9): require('/home/www/szkol...') #14 {main}
« Last Edit: October 23, 2009, 11:36:27 AM by yahuto »

yahuto

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: mail a sposob kodowania
« Reply #1 on: October 23, 2009, 11:46:34 AM »
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);
}

:pomogło

ejavega

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: mail a sposob kodowania
« Reply #2 on: November 10, 2009, 09:06:27 AM »
To solve the problem without having to make rare patches, install the following packages from php:
  • php-domxml
  • php-xml