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’, ‘