Title: Syntax error &#8211; canvas.php
Last modified: April 11, 2022

---

# Syntax error – canvas.php

 *  [laweffect](https://wordpress.org/support/users/laweffect/)
 * (@laweffect)
 * [4 years ago](https://wordpress.org/support/topic/syntax-error-canvas-php/)
 * After updating the plugin to 2.2.7 I’ve received the following error:
 * Parse error: syntax error, unexpected ‘)’ in /var/www/html/walkinderbyshire/wp-
   content/plugins/extensions-leaflet-map/admin/canvas.php on line 29
 * Removing the comma at the end of line 29 seems to resolve the issue for me i.
   e. “$settings_section,” > “$settings_section”
 * Cheers,
    Leigh

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

 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [4 years ago](https://wordpress.org/support/topic/syntax-error-canvas-php/#post-15546343)
 * Which php version are you using?
 *  Thread Starter [laweffect](https://wordpress.org/support/users/laweffect/)
 * (@laweffect)
 * [4 years ago](https://wordpress.org/support/topic/syntax-error-canvas-php/#post-15546362)
 * 7.2.34
 * Just seen a message in the dashboard saying that I should update to 7.4, so it
   looks like this could be the issue.
 * Thanks hupe13!

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

The topic ‘Syntax error – canvas.php’ is closed to new replies.

 * ![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)
 * [Extensions for Leaflet Map](https://wordpress.org/plugins/extensions-leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extensions-leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extensions-leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [laweffect](https://wordpress.org/support/users/laweffect/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/syntax-error-canvas-php/#post-15546362)
 * Status: not resolved