Title: Deprecated function
Last modified: February 16, 2019

---

# Deprecated function

 *  [marcophile](https://wordpress.org/support/users/marcophile/)
 * (@marcophile)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/deprecated-function-31/)
 * Error Deprecated: Function create_function() is deprecated in …/wp-content/plugins/
   leaflet-maps-marker/leaflet-maps-marker.php on line 132
    and Undefined index:
   mapquest_api_key in /wp-content/plugins/leaflet-maps-marker/leaflet-maps-marker.
   php on line 739 Version 3.12.2 Version Lite Php 7.2 Thanks for correcting.

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

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/deprecated-function-31/#post-11213767)
 * thanks for your report – we will have a look…
 *  [Simon](https://wordpress.org/support/users/simonmaddox/)
 * (@simonmaddox)
 * [7 years ago](https://wordpress.org/support/topic/deprecated-function-31/#post-11386992)
 * Also this one…
 * `Deprecated: Function create_function() is deprecated in ../wp-content/plugins/
   leaflet-maps-marker-pro/leaflet-core.php on line 2`
 * V3.12.2 Pro (trial)
    PHP 7.2
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [7 years ago](https://wordpress.org/support/topic/deprecated-function-31/#post-11388616)
 * Hi Simon,
    thanks for the info – this has already been fixed in the current version
   4.2 – an update is recommended. best, Robert
 *  [Gwyneth Llewelyn](https://wordpress.org/support/users/gwynethllewelyn/)
 * (@gwynethllewelyn)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/deprecated-function-31/#post-11663573)
 * 4.2?… at the time I’m writing this, this plugin is still at 3.12.2…
 * So, for those worried about the error message, the fix for the OP is to open `/
   wp-content/plugins/leaflet-maps-marker/leaflet-maps-marker.php`, go to line 132,
   comment it out, and use instead:
 * `add_action('widgets_init', function() { return register_widget("Class_leaflet_recent_marker_widget");});`
 * I can imagine that a similar fix ought to be possible on the Pro version as well.
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/deprecated-function-31/#post-11664049)
 * Sorry, did not say in my reply that I meant pro version 4.2
    Anyway since pro
   version 4 the free and the pro version do not share common code anymore – once
   pro v4.5 is available within the next few weeks, we will further sunset the free
   version. This means it will officially not get any more updates, as both plugins
   became to different over the last months and as we do not have the resources 
   anymore to provide regular updates of the free version anymore. It will be usable
   and available in the WordPress Plugin repository though as it is now.

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

The topic ‘Deprecated function’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/deprecated-function-31/#post-11664049)
 * Status: not resolved