Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the nextgen-gallery-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/mxvysmpn/public_html/wp-includes/functions.php on line 6121
Topic: PHP Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain | PHP Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain – { Dev Farm }

{ 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 2 post - dal 1 a 2 (di 2 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’, ‘

Stai visualizzando 2 post - dal 1 a 2 (di 2 totali)
Rispondi a: 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.