Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have installed the GMaps Module and Location Module and I am unable to get user locations to show up on the map, I have enabled Gmap Locations in the settings and disabled it in the Location settings as instructed by other members but it is still not working.
In the GMap settings I get the error:
"The selected file /tmp/filecAuY9S could not be uploaded, because the destination sites/default/files/js/gmap_markers.js is not properly configured."
Is this related? If so how do I sort this problem out?
Many thanks
Comment | File | Size | Author |
---|---|---|---|
#4 | gmap_markersjs.jpg | 25.28 KB | jamesmcd |
Comments
Comment #1
VM CreditAttribution: VM commentedif on a shared server, I suggest using files/tmp in administer -> file system to ensure your files aren't thrown in a community tmp folder.
have you look at sites/default/files/js/ is the folder actually there?
Comment #2
jamesmcd CreditAttribution: jamesmcd commentedHi,
Thanks for your assistance.
Just double checked sites/default/files/js/ and the folder is there with a gmap_markers.js file within it.
How do I "properly configure" it?
Comment #3
VM CreditAttribution: VM commentedwhat are its CHMOD settings?
Comment #4
jamesmcd CreditAttribution: jamesmcd commentedPlease see screenshot attached.. is this what you are after?
thanks
Comment #5
jamesmcd CreditAttribution: jamesmcd commentedI am slightly confused by what you mean by CHMOD Settings? Apologies.. quite new to Drupal
Thanks
Comment #6
VM CreditAttribution: VM commentedCHMOD is not drupal, it's server file and folder permissions.
You'll have to wait for someone else who is more familiar with this module to repsond. Research the issue queue for this module and do a search on drupal.org and if necessary google.
beyond that a forum post may draw some attention from those who are also more familar with this module.
Comment #7
jfxberns CreditAttribution: jfxberns commentedPerhaps I can be of assistance...
What you are looking for is the permissions on the folder sites/default/files/js
If you are familiar with the command line, go to the folder sites/default/files and type in:
you will see something like:
For the server to be able to write to that folder all users must ha ve write permissions, to grant all users write permissions enter:
Now it should look like this:
the "all users" bit has been changed from "-" to "w" and the error should go away.
Comment #8
AaronChristian CreditAttribution: AaronChristian commentedYes, I was having this problem as soon as I uploaded my site from the Dev server to the Live server.
Configure your folder permissions for the "js" folder. You are correct with the screenshot for changing the CHMOD permissions (in comment #4).
Although you may have to go further and make the permissions read:
User: Read/Write/Execute
Group: Read/Write/Execute
World: Read/Execute
Octal: 775 (rwxrwxr-x).
This fixed my issue and loaded the gMap markers correctly!
Comment #9
JohnnyW CreditAttribution: JohnnyW commentedmy js file (under sites/default/files/js) was set to:
User: Read/Write/Execute
Group: Read/Write/Execute
World: Read/Execute/Execute
777 permission
Works for me know :D
I set it to 777 and had the files also set to 777 (cascade the permissions using Filezilla)
Comment #10
VM CreditAttribution: VM commentedComment #11
kirdydy CreditAttribution: kirdydy commentedThank you so much.
'chmod 777 js' fixed my similar issue
Comment #12
Wolf_22 CreditAttribution: Wolf_22 commentedFor anyone stumbling across this post in the future, just know that 777 is one of the worst permission settings to use... Try to use something else.