I uploaded the most recent Filebrowser module to my site running a new Drupal 6 upgrade, and when I attempted to install the module from the Administer/Site Building/Modules page, I got the following error message:

Parse error: syntax error, unexpected ')', expecting '(' in /home/***/public_html/sites/all/modules/filebrowser/filebrowser.module on line 81

Line 81 looks like this, although it means nothing to me:

if ($zip->open($match['path'], ZIPARCHIVE :: CREATE) === TRUE) {

The Parse error came up on every page on my site, so I have deleted the filebrowser module folder.

Any ideas what's wrong?

thanks
Phil

Comments

Yoran’s picture

What version of PHP are you using ? It looks like you have no object support.

philiphart’s picture

Thanks. I'm with OpenSourceHost - I thought I had PHP5 but am still on 4. Have requested an upgrade but taking some time to get that implemented.

Will report back once I can try it with PHP5..

philiphart’s picture

Working fine now with PHP5. Looks like a great replacement for Fileshare module.

Yoran’s picture

Status: Active » Closed (fixed)

Ok perfect, that was an easy one :)