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

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

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

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

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

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

Installing PHP5 seems to have fixed it for me too.

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

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?

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!

Status:Fixed» Closed (fixed)

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

"#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