Author Topic: HTTP 500 Error on HTML Emails  (Read 6777 times)

Offline xion

  • Newbie
  • *
  • Posts: 4
HTTP 500 Error on HTML Emails
« on: March 16, 2009, 06:09:40 PM »
Ubuntu 8.10 Server with ISPConifg 2.2.29 and Roundcubemail 0.2.1 RC package.


I installed Roundcube through ISPConig admin interface using the pkg installer.

When I receive html based emails I get a http 500 error in the reading plane. If I send the email plain text it works fine.

Here is a copy of the error in the log file.

[16-Mar-2009 17:03:01PHP Warning:  include(DOMDocument.php) [<a href='function.include'>function.include</a>]: failed to open streamNo such file or directory in /home/admispconfig/ispconfig/web/roundcubemail/program/include/iniset.php on line 98
[16-Mar-2009 17:03:01PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 'DOMDocument.php' for inclusion (include_path='/home/admispconfig/ispconfig/web/roundcubemail/:/home/admispconfig/ispconfig/web/roundcubemail/program:/home/admispconfig/ispconfig/web/roundcubemail/program/lib:/home/admispconfig/ispconfig/web/roundcubemail/program/include:.:'in /home/admispconfig/ispconfig/web/roundcubemail/program/include/iniset.php on line 98
[16-Mar-2009 17:03:01PHP Fatal error:  Class 'DOMDocument' not found in /home/admispconfig/ispconfig/web/roundcubemail/program/lib/washtml.php on line 235

Offline emillme2

  • Newbie
  • *
  • Posts: 4
HTTP 500 Error on HTML Emails
« Reply #1 on: March 16, 2009, 09:46:37 PM »
I too have this problem. And have spent all day (on and off) trying to find the solution...

If you turn of the "display html" box in the personal settings tab then it displays the message MINUS any html content.

While its a work around....its not a good fix.

Anyone?

Offline xion

  • Newbie
  • *
  • Posts: 4
HTTP 500 Error on HTML Emails
« Reply #2 on: March 17, 2009, 03:48:30 AM »
Yep.

I agree really not a good fix.

Thx

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,310
HTTP 500 Error on HTML Emails
« Reply #3 on: March 17, 2009, 04:07:49 AM »
did you run the installer? sounds like may be you dont have the PHP DOM module installed PHP: Introduction - Manual. If you ran the installer this should have shown up in the requirements check.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline emillme2

  • Newbie
  • *
  • Posts: 4
HTTP 500 Error on HTML Emails
« Reply #4 on: March 17, 2009, 07:51:57 AM »
Quote from: JohnDoh;17807
did you run the installer? sounds like may be you dont have the PHP DOM module installed PHP: Introduction - Manual. If you ran the installer this should have shown up in the requirements check.

I am using ubuntu 8.10 server and have not been able to find a package called "php-xml".
on ubuntu's website there is a package "php-xml-htmlsax3" that is supposed to be better.

I am going to try installing it, restarting apache and I will report back here.

Regards

EDIT: (10 minutes later)

Nope didn't fix it.

hurumph.
« Last Edit: March 17, 2009, 07:58:06 AM by emillme2 »

Offline emillme2

  • Newbie
  • *
  • Posts: 4
HTTP 500 Error on HTML Emails
« Reply #5 on: March 17, 2009, 02:36:26 PM »
Ok Here is a bit more on the error. THe last entry is the same as the OP's but the first two are different...i believe

[17-Mar-2009 14:33:38] PHP Warning:  include_once(DOMDocument.php) [function.include-once]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/web/roundcubemail/program/include/iniset.php on line 93
[17-Mar-2009 14:33:38] PHP Warning:  include_once() [function.include]: Failed opening 'DOMDocument.php' for inclusion (include_path='/home/admispconfig/ispconfig/web/roundcubemail/:/home/admispconfig/ispconfig/web/roundcubemail/program:/home/admispconfig/ispconfig/web/roundcubemail/program/lib:/home/admispconfig/ispconfig/web/roundcubemail/program/include:.:') in /home/admispconfig/ispconfig/web/roundcubemail/program/include/iniset.php on line 93
[17-Mar-2009 14:33:38] PHP Fatal error:  Class 'DOMDocument' not found in /home/admispconfig/ispconfig/web/roundcubemail/program/lib/washtml.php on line 235

Offline xion

  • Newbie
  • *
  • Posts: 4
HTTP 500 Error on HTML Emails
« Reply #6 on: March 18, 2009, 08:13:53 PM »
Anyone got any ideas?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,310
HTTP 500 Error on HTML Emails
« Reply #7 on: March 20, 2009, 04:17:08 AM »
if you make a phpinfo() file in your roundcube directory do you see dom listed? something like this....

dom
DOM/XML    enabled
DOM/XML API Version    20031129
libxml Version    2.6.32
HTML Support    enabled
XPath Support    enabled
XPointer Support    enabled
Schema Support    enabled
RelaxNG Support    enabled
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline gkaefer

  • Newbie
  • *
  • Posts: 1
HTTP 500 Error on HTML Emails
« Reply #8 on: March 20, 2009, 10:20:43 AM »
Quote from: JohnDoh;17898
if you make a phpinfo() file in your roundcube directory do you see dom listed? something like this....

dom
DOM/XML    enabled
DOM/XML API Version    20031129
libxml Version    2.6.32
HTML Support    enabled
XPath Support    enabled
XPointer Support    enabled
Schema Support    enabled
RelaxNG Support    enabled


I've exact the same error (gentoo):
my phpinfo output says:

DOM/XML  enabled  
DOM/XML API Version  20031129  
libxml Version  2.7.3  
HTML Support  enabled  
XPath Support  enabled  
XPointer Support  enabled  
Schema Support  enabled  
RelaxNG Support  enabled

and using:
dev-lang/php-5.2.8-r2  USE="apache2 berkdb bzip2 cli crypt ctype curl gd gdbm iconv imap mysql ncurses nls pcre readline reflection session spl ssl unicode xml zlib -adabas -bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd-external -gmp -hash -inifile -interbase -iodbc -ipv6 (-java-external) -json -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -spell -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -truetype -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external" 0 kB
... apache restarted after recompiling php with xml enabled...

.. and the mentioned "Failed opening 'DOMDocument.php' for inclusion " above is also coming on my box. slocate fails to find a DOMDocument.php on my server... so missing

SOLUTION for ME:
recompiled php once more
restared apache again
and errors were gone, ascii + html mails are now displayed and logfile is empty.

regards,
Georg
« Last Edit: March 20, 2009, 10:42:34 AM by gkaefer »

Offline xion

  • Newbie
  • *
  • Posts: 4
HTTP 500 Error on HTML Emails
« Reply #9 on: March 21, 2009, 01:02:07 AM »
How would I go about doing this in Ubuntu?