{ Dev Farm }

Web & Windows Development

PHP Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain

Home Forum Support PHP Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain

  • Il topic è vuoto.
Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
  • Autore
    Post
  • #107918 Rispondi
    ruedi
    Ospite

    Hello, ich have installed the latest version and a problem i had with the latest showed up again.
    PHP Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain at least one element in /var/www/html/wordpress/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php.

    Last time i fixed this problem by adding following to file wp-gpx-maps-utils.php at line 391

    if(!empty($_time)){
    $points->maxTime = max( $_time );
    $points->minTime = min( $_time );
    }

    and commented out

    /* $points->maxTime = max( $_time );
    $points->minTime = min( $_time );*/

    grazie

    ciao ruedi

    #108065 Rispondi
    Daniel
    Ospite

    Bonjour,
    Erreur PHP avec la dernière version de WP_GPX-Maps
    Merci pour vos infos.
    Cordialement.

    WordPress version 6.6.1
    Thème actif : Nisarg (version 1.6)
    Extension actuelle : WP-GPX-Maps (version 1.7.08)
    PHP version 8.0.30

    Détails de l’erreur
    ======================
    Une erreur de type E_ERROR a été causée dans la ligne 391 du fichier /home/randopbclx/www/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php. Message d’erreur : Uncaught ValueError: max(): Argument #1 ($value) must contain at least one element in /home/randopbclx/www/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php:391
    Stack trace:
    #0 /home/randopbclx/www/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php(391): max(Array)
    #1 /home/randopbclx/www/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php(161): wpgpxmaps_parseXml(‘/home/randopbcl…’, ’10’, ‘0’)
    #2 /home/randopbclx/www/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php(404): wpgpxmaps_getPoints(‘/home/randopbcl…’, ’10’, ‘true’, ‘0’)
    #3 /home/randopbclx/www/wp-includes/shortcodes.php(434): wpgpxmaps_handle_shortcodes(Array, ”, ‘sgpx’)
    #4 [internal function]: do_shortcode_tag(Array)
    #5 /home/randopbclx/www/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(sgpx)(…’, ‘do_shortcode_ta…’, ‘[sgpx gpx=”/wp-…’)
    #6 /home/randopbclx/www/wp-includes/class-wp-hook.php(324): do_shortcode(‘[sgpx gpx=”/wp-…’)
    #7 /home/randopbclx/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[sgpx gpx=”/wp-…’, Array)
    #8 /home/randopbclx/www/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1871): apply_filters(‘the_content’, ‘

    #111593 Rispondi
    test
    Ospite

    test

Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
Rispondi a: Risposta #111593 in PHP Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.