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

CommentFileSizeAuthor
#4 gmap_markersjs.jpg25.28 KBjamesmcd
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

VM’s picture

if 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?

jamesmcd’s picture

Hi,

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?

VM’s picture

what are its CHMOD settings?

jamesmcd’s picture

FileSize
25.28 KB

Please see screenshot attached.. is this what you are after?

thanks

jamesmcd’s picture

I am slightly confused by what you mean by CHMOD Settings? Apologies.. quite new to Drupal

Thanks

VM’s picture

CHMOD 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.

jfxberns’s picture

Perhaps 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:

ls -al

you will see something like:

drwxrwxr-x 2 jb     jb     4096 Jan 26 22:11 js

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:

chmod a+w

Now it should look like this:

drwxrwxrwx 2 jb     jb     4096 Jan 26 22:11 js

the "all users" bit has been changed from "-" to "w" and the error should go away.

AaronChristian’s picture

Yes, 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!

JohnnyW’s picture

my 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)

VM’s picture

Status: Active » Closed (fixed)
kirdydy’s picture

Thank you so much.
'chmod 777 js' fixed my similar issue

Wolf_22’s picture

For 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.