• 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 85
    Deprecated: 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 85
    Deprecated: 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
    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 85
    Deprecated: 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 85
    Deprecated: 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.

    public $display_name='';
    public $min='';
    public $max='';
    public $step='';

    Thank you

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

    (@oufmilo)

    Hi, i’ve the same problem here ..

    https://paste.yunohost.org/cidetenecu.swift

    Any suggestions ?

    Thanks.

    Thread Starter neo2k23

    (@neo2k23)

    @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 :

    public $display_name='';
    public $min='';
    public $max='';
    public $step='';

    this will resolve your issue .

    Plugin Contributor hupe13

    (@hupe13)

    Thread Starter neo2k23

    (@neo2k23)

    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 :

    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.