Title: Plugin update errors
Last modified: January 20, 2026

---

# Plugin update errors

 *  [pttolev](https://wordpress.org/support/users/pttolev/)
 * (@pttolev)
 * [4 months ago](https://wordpress.org/support/topic/plugin-update-errors-5/)
 * Hello [@bastianonm](https://wordpress.org/support/users/bastianonm/),
 * I just created a very legacy migration from PHP 7.2 and WP 5.2, to 8.0/6.0 and
   I have a few notes that might be helpful to you and one issue. I have later tried
   this on 8.4/6.9 and reproduced them again.
 * 2. I got this error:
 *     ```wp-block-code
       ( ! ) Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain at least one element in D:\wamp\www\transkotd\wp-content\plugins\wp-gpx-maps\wp-gpx-maps-utils.php on line 389 ( ! ) ValueError: max(): Argument #1 ($value) must contain at least one element in D:\wamp\www\transkotd\wp-content\plugins\wp-gpx-maps\wp-gpx-maps-utils.php on line 389
       ```
   
 * Which was resolved by this code replacing lines 378-390 in wp-gpx-maps-utils.
 *     ```wp-block-code
       if (!empty($_ele)) {/*There might be cases where ele is not set in the gpx (0.00).array_filter will filter out those values and as a consequence min()/max() would fail.*/$points->maxEle = max($_ele);$points->minEle = min($_ele);} else {$points->maxEle = null;$points->minEle = null;}if (!empty($_dist)) {$points->totalLength = max($_dist);} else {$points->totalLength = 0;}if (!empty($_time)) {$points->maxTime = max($_time);$points->minTime = min($_time);} else {$points->maxTime = null;$points->minTime = null;}
       ```
   
 * After that I refreshed the problematic pages, reverted the code and it didn’t
   have the issue.
 * 2. Waypoints support doesn’t work. I get this console error: `Uncaught SyntaxError:
   Unexpected token '&'`
 * It’s because it turns the quotes to ascii symbols:
 *     ```wp-block-code
       waypoints          : [{&quot;lat&quot;:42.58143997751176357269287109375,&quot;lon&quot;:22.6101859845221042633056640625,&quot;ele&quot;:1169,&quot;time&quot;:&quot;2021-04-22T08:58:31Z&quot;,&quot;name&quot;:&quot;u0432u0440.......
       ```
   

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-update-errors-5%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-gpx-maps_bcbfb3.svg)
 * [WP GPX Maps](https://wordpress.org/plugins/wp-gpx-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-gpx-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-gpx-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-gpx-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-gpx-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-gpx-maps/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pttolev](https://wordpress.org/support/users/pttolev/)
 * Last activity: [4 months ago](https://wordpress.org/support/topic/plugin-update-errors-5/)
 * Status: not resolved