Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Zoologico CreditAttribution: Zoologico commentedMe too.
Now my whole site is down.
:(
Comment #2
kyutums CreditAttribution: kyutums commentedTry deleting the gmap_addons directory in the modules directory. After deleting the directory, everything else worked again. :)
Comment #3
Badmaster CreditAttribution: Badmaster commentedExactly the same problem. The only solution: delete the gmap_addons directory.
Comment #4
jendrek CreditAttribution: jendrek commentedI had the same problem
But it disappeared after upgrading to PHP5.
Comment #5
StuartDH CreditAttribution: StuartDH commentedI 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
Comment #6
StuartDH CreditAttribution: StuartDH commentedInstalling PHP5 seems to have fixed it for me too.
Comment #7
sentron CreditAttribution: sentron commentedI 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
Comment #8
escoles CreditAttribution: escoles commentedI 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?
Comment #9
bdragon CreditAttribution: bdragon commentedNah, 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!
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #11
virendrapratapsingh CreditAttribution: virendrapratapsingh commented"#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