Closed (fixed)
Project:
GMap Addons
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2007 at 03:21 UTC
Updated:
24 Jun 2009 at 21:19 UTC
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 commentedMe too.
Now my whole site is down.
:(
Comment #2
kyutums commentedTry deleting the gmap_addons directory in the modules directory. After deleting the directory, everything else worked again. :)
Comment #3
fjcalzado@gmail.com commentedExactly the same problem. The only solution: delete the gmap_addons directory.
Comment #4
jendrek commentedI had the same problem
But it disappeared after upgrading to PHP5.
Comment #5
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 commentedInstalling PHP5 seems to have fixed it for me too.
Comment #7
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 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 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) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #11
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