Title: Locations not saved (javascript error)
Last modified: December 10, 2019

---

# Locations not saved (javascript error)

 *  Resolved [cambofrizz](https://wordpress.org/support/users/cambofrizz/)
 * (@cambofrizz)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/locations-not-saved-javascript-error/)
 * This was the plugin I was looking for! However, there seems to be a problem: 
   it’s not saving the locations/markers.
 * There’s a PHP warning when saving the settings page:
    `PHP Warning: Invalid argument
   supplied for foreach() in /app/public/wp-content/plugins/locateandfilter/admin/
   class-locate-and-filter-admin.php on line 371`
 * That is probably not the reason a location is not saved. But maybe the following
   is.
    On both a ‘Post’ and a ‘Marker’ editing screen there’s a JavaScript error:
 *     ```
       Uncaught TypeError: Cannot read property 'parentNode' of null
           at EAL.start (edit_area_full.js:2)
           at <anonymous>:1:5
       ```
   
 * I don’t know how to fix this. Anyone has an idea?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [dgamoni](https://wordpress.org/support/users/dgamoni/)
 * (@dgamoni)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/locations-not-saved-javascript-error/#post-12226386)
 * Hi
    js error fixed, plugin updated new version available now 1.3.56 but this 
   is not due to an js error after adding the marker you clicked button ‘Get the
   Marker’ ? [http://prntscr.com/q96fja](http://prntscr.com/q96fja)
 * see doc [http://locateandfilter.monothemes.com/docs/locateandfilter-wp-plugin/add-markers/](http://locateandfilter.monothemes.com/docs/locateandfilter-wp-plugin/add-markers/)
   
   p. 3.3 [http://prntscr.com/q96g01](http://prntscr.com/q96g01)
 *  Thread Starter [cambofrizz](https://wordpress.org/support/users/cambofrizz/)
 * (@cambofrizz)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/locations-not-saved-javascript-error/#post-12228424)
 * Thanks a lot [@dgamoni](https://wordpress.org/support/users/dgamoni/) That solved
   it!
    I think the javascript error was preventing the code from running anything
   after the encountered error.
 * Because, I didn’t do anything except updating to your latest version, et voila:
   the previously entered location/icon was there.
 * Thanks a lot. Will write a review later, as I think this plugin deserves more
   installs, especially for people looking for a non-GoogleMaps (i.e. OpenStreetMap)
   solution.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Locations not saved (javascript error)’ is closed to new replies.

 * ![](https://ps.w.org/locateandfilter/assets/icon-128x128.png?rev=2050267)
 * [LocateAndFilter](https://wordpress.org/plugins/locateandfilter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/locateandfilter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/locateandfilter/)
 * [Active Topics](https://wordpress.org/support/plugin/locateandfilter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/locateandfilter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/locateandfilter/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [openstreetmap](https://wordpress.org/support/topic-tag/openstreetmap/)

 * 2 replies
 * 2 participants
 * Last reply from: [cambofrizz](https://wordpress.org/support/users/cambofrizz/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/locations-not-saved-javascript-error/#post-12228424)
 * Status: resolved