Roundcube Community Forum

Release Support => Pending Issues => Topic started by: rpd5127 on March 15, 2009, 04:16:42 AM

Title: Parse Error
Post by: rpd5127 on March 15, 2009, 04:16:42 AM
Ok, I uploaded the files and folders onto the web-server as directed.

I made the logs and temp folders writable by the server.

I went to http://url-to-roundcube/installer/ and I get the following error as soon as I hit {Enter}.  Don't even get an installer screen, just the error.

QuoteParse error: syntax error, unexpected T_OBJECT_OPERATOR in /hermes/bosweb/web024/b240/***.***/public_html/**_****/program/include/rcube_shared.inc on line 549

I put the "*"'s in above for security reasons. Not that way on the original error.  Probably not necessary, but what the hell.
 
Here is the php code from ...program/include/rcube_shared.inc


548    $mime_type = null;
549    $mime_magic = rcmail::get_instance()->config->get('mime_magic');
550    $mime_ext = @include(RCMAIL_CONFIG_DIR . '/mimetypes.php');
551    $suffix = $name ? substr($name, strrpos($name, '.')+1) : '*';

This is what the server has on it.

Platform Type: Debian
MySQL Version: 5.0.45
Perl Version: 5.8.8
PHP Version: 4.4.8

If anyone has any idea how to fix this I would be very grateful.
Title: Parse Error
Post by: rosali on March 15, 2009, 05:54:22 AM
On a first glance I see PHP 4.4.8 !!!

RoundCube (v0.2.x) has to run on PHP 5.2.x
Title: PHP Version
Post by: rpd5127 on March 15, 2009, 07:02:31 AM
I really like RoundCube.  Is there a version that will work on PHP 4.4.8?
Title: Parse Error
Post by: rosali on March 16, 2009, 10:43:29 AM
v0.1.1 should work (/tags/roundcubemail/v0.1.1 ? RoundCube Webmail (http://trac.roundcube.net/browser/tags/roundcubemail/v0.1.1))

But I really don't recommend to use this old (partially buggy) stuff. Try to update your PHP instead.
Title: Parse Error
Post by: hogman on March 25, 2009, 08:18:17 AM
Depending on your host (I use 1and1) they support both php4 and php5 but the default is php4.

If you edit the .htaccess file and add the following at the top you should get it to work:

AddHandler x-mapp-php5 .php

Regards,

Mark