• Resolved greenhalos

    (@greenhalos)


    I’ve updated my Webserver to use php7.2. From now on I always get this deprecation warning:
    Deprecated: Function create_function() is deprecated in /home/www/website/wordpress/wp-content/plugins/leaflet-maps-marker/leaflet-maps-marker.php on line 132

    Can this be fixed?

    I am using WordPress Version 4.9.8
    the plugin version is 3.12.2
    and everything with php 7.2

    • This topic was modified 6 years, 1 month ago by greenhalos.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter greenhalos

    (@greenhalos)

    Here a possible solution:
    – add_action(‘widgets_init’, create_function(”, ‘return register_widget(“Class_leaflet_recent_marker_widget”);’));
    + add_action(‘widgets_init’, function() {return register_widget(“Class_leaflet_recent_marker_widget”);});

    thanks for your feedback – we will update the code accordingly with the next release!

    eutravelmag

    (@eutravelmag)

    Hi Robert.

    My webserver provider has also just upgraded to php7.2 and my site (www.e-travelmag.com) had the (almost) samme error message as greenhalos:

    Deprecated: Function create_function() is deprecated in /customers/8/9/c/e-travelmag.com/httpd.www/wp-content/plugins/leaflet-maps-marker-pro/leaflet-core.php on line 2 Deprecated: Function create_function() is deprecated in /customers/8/9/c/e-travelmag.com/httpd.www/wp-content/plugins/leaflet-maps-marker-pro/leaflet-core.php on line 2 Deprecated: Function create_function() is deprecated in /customers/8/9/c/e-travelmag.com/httpd.www/wp-content/plugins/master-slider/includes/classes/class-msp-main-widget.php on line 95 Deprecated: Function create_function() is deprecated in /customers/8/9/c/e-travelmag.com/httpd.www/wp-content/plugins/php-code-widget/execphp.php on line 62

    I have downgraded my php version to 7.0 today in order for the error message not to show on my website, but sooner or later I have to upgrade to php7.2.

    I bought the MapsMarker version 3.1 2 years ago and obviously the update options have long since expired. If I buy the present update, will it support PHP 7.2?

    Thanks in advance – love your plugin!

    // Maj-Britt
    European Travel Magazine

    Plugin Author Robert Seyfriedsberger

    (@harmr)

    Hi Maj-Britt,
    downgrading php because of this warning is not recommended, it is just a warning & has no actual effect on the functionality. With the pro version v4.0.3, this warning does not happen and for the free version we will fix the warning with the next release (no planned release date yet though)
    best,
    Robert

    eutravelmag

    (@eutravelmag)

    Thanks for the very expedient info!
    Cheers
    // Maj-Britt

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deprecated: Function create_function()’ is closed to new replies.