Support » Plugin: Extensions for Leaflet Map » Fatal error with new version 3 and Modern Events Calendar

  • Resolved DVDK94

    (@dvdk94)


    Hey,

    after I updated the plugin to the new version 3.0 I got some strange fatal errors when I used functions of another plugin called “Modern Events Calendar” (MEC). The error also occurred when I used the iCal export function of MEC. Why does “Extensions for Leaflet Map” interfere with such a function that has nothing to do with Leaflet?

    Here the stacktrace of one of the occurred errors:

    [25-May-2022 08:18:40 UTC] PHP Fatal error: Uncaught Error: Call to undefined function locale_accept_from_http() in /var/www/html/wp-content/plugins/extensions-leaflet-map/php/gesture.php:47
    Stack trace:
    #0 /var/www/html/wp-content/plugins/extensions-leaflet-map/php/gesture.php(127): leafext_gestures_lang(Array)
    #1 /var/www/html/wp-content/plugins/extensions-leaflet-map/php/gesture.php(136): leafext_gestures_function()
    #2 /var/www/html/wp-includes/class-wp-hook.php(309): {closure}(false, ‘leaflet-map’)
    #3 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters(false, Array)
    #4 /var/www/html/wp-includes/shortcodes.php(349): apply_filters(‘pre_do_shortcod…’, false, ‘leaflet-map’, Array, Array)
    #5 [internal function]: do_shortcode_tag(Array)
    #6 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\[(\\[?)(fullsc…’, ‘do_shortcode_ta…’, ‘\n<p>Organisiert…’)
    #7 /var/www/html/wp-includes/class-wp-hook.php(307): do_shortcode(‘\n<p>Organisiert…’)
    #8 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters(‘\n<p>Or in /var/www/html/wp-content/plugins/extensions-leaflet-map/php/gesture.php on line 47

    I have now downgraded the version of Extensions for Leaflet Map to the old version 2.2.6 I had in my backup and it works again.

    Best regards,
    David

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author hupe13

    (@hupe13)

    The documentation of locale_accept_from_http() is here: https://www.php.net/manual/en/locale.acceptfromhttp.php. Which php version you are using?

    Thread Starter DVDK94

    (@dvdk94)

    PHP version 7.4.20 is used.

    Plugin Author hupe13

    (@hupe13)

    Are you running a self hosted apache2? Then you need to install the package php-intl.

    Plugin Author hupe13

    (@hupe13)

    I will use an other method to detect the language in the next version.

    adriansuhanea

    (@adriansuhanea)

    The same error just after the update in 2 different websites wher I use the plugin.

    PHP Fatal error: Uncaught Error: Call to undefined function locale_accept_from_http() in /wp-content/plugins/extensions-leaflet-map/php/gesture.php:47

    Is an amazing plugin and is very useful for the websites I use it.

    How can I find a previous version of the plugin to be able to still show a map until a new release will fix the problem?

    Thank you so much for all your work

    Plugin Author hupe13

    (@hupe13)

    I’m sorry about this. You can download the previous version from https://wordpress.org/plugins/extensions-leaflet-map/advanced/.
    I will do my best to correct this as soon as possible.

    Thread Starter DVDK94

    (@dvdk94)

    Version 3.0.1 fixes the issue.
    Thanks @hupe13 !

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.