Hi....
I'm using gmap module in dupal 7, but when I enable location map, error message appear
* Warning: file_put_contents(temporary://filD9.tmp) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1847 of C:\xampp\htdocs\xxxxxx\includes\file.inc).
* The file could not be created.
* Notice: Trying to get property of non-object in gmap_regenerate_markers() (line 548 of C:\xampp\htdocs\xxxxxxx\sites\all\modules\gmap\gmap.module).

Thanks for helping me.....

CommentFileSizeAuthor
error.jpg155.24 KBduniapajak

Comments

parasox’s picture

I get a similar error but only the bottom part:

Notice: Trying to get property of non-object in gmap_regenerate_markers() (line 549 of /var/www/d7/sites/all/modules/gmap/gmap.module).

johnv’s picture

idem.

bdragon’s picture

That looks a lot like the public files directory / temporary files directory is not set up properly / writable by the webserver (see admin/config/media/file-system)

gmap assembles a compressed version of the marker .ini files and needs working files support to do this.

duniapajak’s picture

Status: Active » Closed (fixed)

@bdragon. Solved my problem
Thanks very much

nelsinchi’s picture

Please... I have the same problem, could you explain how did you fix that issue?
Thank you.

giorgosk’s picture

@nelsinchi
it depends on your webserver settings but usually setting the tmp directory set here
admin/config/media/file-system to chmod 777 (can also do it with ftp client with set permissions option)
solves such issues

dmackin’s picture

Awesome! Thanks @bdragon! Fixed for me too...

johnv’s picture

I confirmed this error in March (#2). After updating to latest version of Location + GMap, the following errors re-appear:

  • Notice: Trying to get property of non-object in gmap_regenerate_markers() (line 555 of gmap.module).
  • The specified file temporary://fileWAyzsJ could not be copied to public://js/gmap_markers.js.

I solved it by just removing the public://js directory, expecting it to re-appear automatically (since it is generated with proper permissions by modules themselves.)

jan101’s picture

This did the trick for me:
I went to sites/default/files/js on my site and then adminstering the proper rights to the file gmap_markers.js

giorgosk’s picture

didier misson’s picture

Yes !
Folder ../sites/.../js was ok :

.../sites/culbutte.be/files# ls -lhd js
drwxr-xr-x 2 www-data www-data 4.0K 2013-01-13 05:11 js

Apache can write in it.
But the file gmap_markers.js was not with the correct owner :

# cd js
.../sites/culbutte.be/files/js# ls -lh
total 8.0K
-rw-rw-r-- 1 root root 5.0K 2013-01-13 05:11 gmap_markers.js
.../sites/culbutte.be/files/js# chown www-data:www-data gmap_markers.js

Thanks !