Title: Plugin is not php 8.2 compatible
Last modified: December 6, 2023

---

# Plugin is not php 8.2 compatible

 *  [BackuPs](https://wordpress.org/support/users/neo2k23/)
 * (@neo2k23)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-not-php-8-2-compatible-2/)
 * If you turn on debug mode in php 8.2 you get about 30 warning messages
 * Deprecated: Creation of dynamic property Leaflet_Map_Plugin_Option::$display_name
   is deprecated in /var/docs/wpreview.tst/public/wp-content/plugins/leaflet-map/
   class.plugin-option.php on line 85
   Deprecated: Creation of dynamic property Leaflet_Map_Plugin_Option::
   $min is deprecated in /var/docs/wpreview.tst/public/wp-content/plugins/leaflet-
   map/class.plugin-option.php on line 85Deprecated: Creation of dynamic property
   Leaflet_Map_Plugin_Option::$max is deprecated in /var/docs/wpreview.tst/public/
   wp-content/plugins/leaflet-map/class.plugin-option.php on line 85Deprecated: 
   Creation of dynamic property Leaflet_Map_Plugin_Option::$step is deprecated in/
   var/docs/wpreview.tst/public/wp-content/plugins/leaflet-map/class.plugin-option.
   php on line 85Deprecated: Creation of dynamic property Leaflet_Map_Plugin_Option::
   $min is deprecated in /var/docs/wpreview.tst/public/wp-content/plugins/leaflet-
   map/class.plugin-option.php on line 85Deprecated: Creation of dynamic property
   Leaflet_Map_Plugin_Option::$max is deprecated in /var/docs/wpreview.tst/public/
   wp-content/plugins/leaflet-map/class.plugin-option.php on line 85Deprecated: 
   Creation of dynamic property Leaflet_Map_Plugin_Option::$step is deprecated in/
   var/docs/wpreview.tst/public/wp-content/plugins/leaflet-map/class.plugin-option.
   php on line 85
 * Warning: Array to string conversion in /var/docs/wpreview.tst/public/wp-content/
   plugins/leaflet-map/class.plugin-option.php on line 85
 * Warning: Undefined property: Leaflet_Map_Plugin_Option::$min in /var/docs/wpreview.
   tst/public/wp-content/plugins/leaflet-map/class.plugin-option.php on line 85
 * etc etc etc
 * Please declare the variables within the class.
 *     ```wp-block-code
       public $display_name='';
       public $min='';
       public $max='';
       public $step='';
       ```
   
 * Thank you

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

 *  [oufmilo](https://wordpress.org/support/users/oufmilo/)
 * (@oufmilo)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-is-not-php-8-2-compatible-2/#post-17457554)
 * Hi, i’ve the same problem here ..
 * [https://paste.yunohost.org/cidetenecu.swift](https://paste.yunohost.org/cidetenecu.swift)
 * Any suggestions ?
 * Thanks.
 *  Thread Starter [BackuPs](https://wordpress.org/support/users/neo2k23/)
 * (@neo2k23)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-is-not-php-8-2-compatible-2/#post-17458795)
 * [@oufmilo](https://wordpress.org/support/users/oufmilo/)
   just open the file wp-
   content/plugins/leaflet-map/class.plugin-option.php in ftp with a text editor
   like notepad++ and on line 85 change the lines to :
 *     ```wp-block-code
       public $display_name='';
       public $min='';
       public $max='';
       public $step='';
       ```
   
 * this will resolve your issue .
 *  Plugin Contributor [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-is-not-php-8-2-compatible-2/#post-17458959)
 * See [https://github.com/bozdoz/wp-plugin-leaflet-map/issues/247](https://github.com/bozdoz/wp-plugin-leaflet-map/issues/247)
 *  Thread Starter [BackuPs](https://wordpress.org/support/users/neo2k23/)
 * (@neo2k23)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-is-not-php-8-2-compatible-2/#post-17459521)
 * i ment line 49
   just open the file wp-content/plugins/leaflet-map/class.plugin-
   option.php in ftp with a text editor like notepad++ and on line 49 change the
   lines to :
 *     ```wp-block-code
       public $helptext = '';
   
       /**
        * All properties that we will be setting
        */
       public $display_name = '';
       public $min = 0;
       public $max = 0;
       public $step = 0;
       ```
   

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

The topic ‘Plugin is not php 8.2 compatible’ is closed to new replies.

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

 * 4 replies
 * 3 participants
 * Last reply from: [BackuPs](https://wordpress.org/support/users/neo2k23/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-is-not-php-8-2-compatible-2/#post-17459521)
 * Status: not resolved