I installed the Aug. version of GMap Addons and got the ff. error across all pages (even if the module was not yet turned on)

Parse error: syntax error, unexpected '=', expecting ')' in /home/playpa00/public_html/locatelandmarks/modules/gmap_addons/gmap_overlays/gmap_overlays.module on line 14

Comments

Zoologico’s picture

Me too.
Now my whole site is down.
:(

kyutums’s picture

Try deleting the gmap_addons directory in the modules directory. After deleting the directory, everything else worked again. :)

Badmaster’s picture

Exactly the same problem. The only solution: delete the gmap_addons directory.

jendrek’s picture

I had the same problem
But it disappeared after upgrading to PHP5.

StuartDH’s picture

I think things worked OK for me until I installed newer versions of GMap and then got the same error...so I guess it's some sort of clash between the two

StuartDH’s picture

Installing PHP5 seems to have fixed it for me too.

sentron’s picture

I had the same problem on PHP4. This error disappeared after I chose PHP5. If your server has both PHP4 and PHP5, you can do this by adding this line to the top of your .htaccess in the drupal home directory:

AddHandler application/x-httpd-php5 .php

escoles’s picture

I notice that this is still open -- does anyone know whether this is a bug in PHP4? I've tracked down this same error in other modules, and it appears that PHP4 can handle that syntax just fine in some function definitions and not in others. I believe it may have to do with the number of times it's used in a function definition, because I've seen two cases where the offending syntax is used several times before PHP4 gags on it. The case where it gags, so far, is always one where the syntax is used twice in the same definition.

But I'm not a PHP expert. Anyone have any better analysis?

bdragon’s picture

Status: Active » Fixed

Nah, it's a limitation in PHP4. You can't have a param that is both default and by reference.

I had already fixed this in gmap proper, I forgot to check gmap_addons.

Sorry about the wait!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

virendrapratapsingh’s picture

"#7
sentron - January 24, 2008 - 00:50

I had the same problem on PHP4. This error disappeared after I chose PHP5. If your server has both PHP4 and PHP5, you can do this by adding this line to the top of your .htaccess in the drupal home directory:

AddHandler application/x-httpd-php5 .php"

Thanks Sentron: Thorugh ur suggestion i have been solved this problem