• I’m getting this error when I try to (re) activate the plugin. I was using it successfully last year. I’m running Leaflet plugin Version 3.0.4. I have WP 5.9.2 and PHP 7.2.24. However, after some automatic updates, this “Extensions for Leaflet Map” fails with:

    “Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected ‘)’ in /webdata/web/wisconsinview-test/htdocs/wordpress/wp-content/plugins/extensions-leaflet-map/admin/canvas.php on line 29”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter batzli

    (@batzli)

    maybe its the “,” at the end of line 28 that make the “)” throw an error on line 29?

    22// Add fields to that section
    23 add_settings_field(
    24 $section_name,
    25 ‘tolerance’,
    26 ‘leafext_canvas_form’,
    27 $page,
    28 $settings_section,
    29 );

    Plugin Author hupe13

    (@hupe13)

    The comma is valid and optional, see https://www.php.net/manual/en/language.types.array.php.
    But your php version 7.2.24 is a very old one. Please upgrade to 7.4 or better to version 8.0. But it may be that not all plugins works with php 8 yet.

    Thread Starter batzli

    (@batzli)

    Thank you. I will upgrade my php.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘failed to activate’ is closed to new replies.