Author Topic: Parse Error  (Read 6136 times)

Offline rpd5127

  • Newbie
  • *
  • Posts: 2
Parse Error
« 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.

Quote

Parse 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.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Parse Error
« Reply #1 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
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline rpd5127

  • Newbie
  • *
  • Posts: 2
PHP Version
« Reply #2 on: March 15, 2009, 07:02:31 AM »
I really like RoundCube.  Is there a version that will work on PHP 4.4.8?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Parse Error
« Reply #3 on: March 16, 2009, 10:43:29 AM »
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
__________________
MyRoundcube Project (commercial)

Offline hogman

  • Newbie
  • *
  • Posts: 1
Parse Error
« Reply #4 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