Roundcube Community Forum

 

Parse Error

Started by rpd5127, March 15, 2009, 04:16:42 AM

Previous topic - Next topic

rpd5127

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($namestrrpos($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.

rosali

On a first glance I see PHP 4.4.8 !!!

RoundCube (v0.2.x) has to run on PHP 5.2.x
Regards,
Rosali

rpd5127

I really like RoundCube.  Is there a version that will work on PHP 4.4.8?

rosali

v0.1.1 should work (/tags/roundcubemail/v0.1.1 ? RoundCube Webmail)

But I really don't recommend to use this old (partially buggy) stuff. Try to update your PHP instead.
Regards,
Rosali

hogman

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