• Resolved terek1972

    (@terek1972)


    Hello!

    updating php 8.5 results in an error

    2025/12/01 14:48:05 [error] 886950#886950: *21 FastCGI sent in stderr: “rray(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warning: filter_var_array(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warning: filter_var_array(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warning: filter_var_array(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHPWarning: filter_var_array(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warning: filter_var_array(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warning: filter_var_array(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warning: filter_var_array(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warning: filter_var_array(): Unknown filter withID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warning: filter_var_array(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warning: filter_var_array(): Unknown filter with ID 0 in /var/www/vhosts/kassir.local.site/html/wp-content/plugins/leaflet-map/class.plugin-option.php on line 90; PHP message: PHP Warnin

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

    (@hupe13)

    Thank you for the report. php 8.5 is very new, WordPress supports version 8.3. Version 8.4 is beta supported. See https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/.

    Please be patient and use php version 8.3 (or 8.4) for the moment.

    Thread Starter terek1972

    (@terek1972)

    Yes, but when I updated to ubuntu 22.04, it automatically switched to php 8.5. I had to roll back to 8.4

    Plugin Contributor hupe13

    (@hupe13)

    I have Ubuntu 24.04 installed somewhere, and it runs PHP 8.3. PHP 8.5 is new since last month! Therefore, it is impossible for it to be installed automatically in Ubuntu 22.04. Perhaps you have a custom environment.

    We will fix the warning in due time.

    pedautreppe

    (@pedautreppe)

    On my side, I have corrected the warnings by updating the source code class.plugin-option.php

    // $option_filter = array(
    // 'display_name' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
    // 'default' => null,
    // 'type' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
    // 'min' => "",
    // 'max' => "",
    // 'step' => "",
    // 'options' => array(
    // 'filter' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
    // 'flags' => FILTER_FORCE_ARRAY
    // ),
    // 'helptext' => null
    // );
    $option_filter = array(
    'display_name' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
    'default' => FILTER_DEFAULT,
    'type' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
    'min' => FILTER_DEFAULT,
    'max' => FILTER_DEFAULT,
    'step' => FILTER_DEFAULT,
    'options' => array(
    'filter' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
    'flags' => FILTER_FORCE_ARRAY
    ),
    'helptext' => FILTER_DEFAULT
    );
    Plugin Contributor hupe13

    (@hupe13)

    Yes you are right. This should be fixed.

    $option_filter = array(
    'display_name' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
    //'default' => null, // geht nicht
    'type' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
    'min' => FILTER_SANITIZE_NUMBER_FLOAT , // geht nicht
    'max' => FILTER_SANITIZE_NUMBER_FLOAT ,// geht nicht
    'step' => FILTER_SANITIZE_NUMBER_FLOAT ,// geht nicht
    'options' => array(
    'filter' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
    'flags' => FILTER_FORCE_ARRAY
    ),
    'helptext' => array(
    'filter' => FILTER_CALLBACK,
    'options' => function( $helptext ) {
    return wp_kses_post( $helptext );
    },
    ),
    );

    “geht nicht” = “does not work”. I didn’t have time to test that further.

    Plugin Contributor hupe13

    (@hupe13)

    There is an issue on Github now.

    Plugin Author bozdoz

    (@bozdoz)

    I went with FILTER_DEFAULT as I believe it’s not intended to actually filter those keys. @pedautreppe

    Should be released in v3.4.3

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

You must be logged in to reply to this topic.