Roundcube Community Forum

 

HTML mails messages not displayed

Started by amphora, November 25, 2008, 06:14:06 AM

Previous topic - Next topic

amphora

Everything else seems to work fine but when I trye to view a mail composed in HTML it just displays a blank page. It happens in the preview pane but also in when you doubleclick on a message then I only get a big white blank page. With plaintext mails it works perfect. I did some debugging myself and it seems that in show.inc the last  $OUTPUT->send('message'); command isn't working as it should. the ParseXML command followed by that isn't returning anything and the script executing just stops (without any errors). logs and temp folder are writeable so that's not it either.

I also tried the SVN version to check if it might be a bug that has been fixed but same issue here.

Any idea's?

rosali

Did you run /installer/check.php for configuration checking. It sounds to be a PHP issue not a RoundCube bug.
Regards,
Rosali

amphora

Quote from: rosali;15431Did you run /installer/check.php for configuration checking. It sounds to be a PHP issue not a RoundCube bug.

Just running //www.domain.com/roundcube/installer/check.php in browser results in:

Checking PHP version

Fatal error: Call to a member function fail() on a non-object in /var/www/html/roundcube/installer/check.php on line 47


Before I upgraded from 0.1 to 0.2 it was working but there were some session issues (nobody was able to login anymore) so I upgraded. After upgrade I could log in but now I have this issue. PHP configuration hasn't changed.

rosali

#3
Sorry, you can't run the check script directly. It is part of the installer and must be launched by /installer/index.php.

Nethertheless I see from the error log that it failed on line 47. There is the PHP version check located. So it looks like you do not have at least PHP 5.2.0. Unlike than v0.1 recent v0.2 requires at least PHP 5.2.0!

start check.php line 44

define('MIN_PHP_VERSION', '5.2.0');
if (version_compare(PHP_VERSION, MIN_PHP_VERSION, '>=')) {
    $RCI->pass('Version', 'PHP ' . PHP_VERSION . ' detected');
} else {
    $RCI->fail('Version', 'PHP Version ' . MIN_PHP_VERSION . ' or greater is required ' . PHP_VERSION . ' detected');
}
Regards,
Rosali

amphora

Hmm. That must be it then. Currently i'm on PHP version 5.1.6

Thanks for the help! Now to figure out how to upgrade PHP without destroying it :)

amphora

I upgraded to php 5.2.6 and it was still not working though.

But when starting the installer (after enabling installer in config) it also seemes DOM functions was missing so I also had to install php-xml

Now everything seems to work again. Thanks!

rosali

Could you please post here how you added DOM functions? There are other threads where users ask how to do this.
Regards,
Rosali

amphora

I upgraded PHP using rpm's from RPM Search for my linux distro (Fedora Core 6 in my case). Installing the additional php-xml rpm was easy as pie using this method.