• djtravel

    (@djtravel)


    Hello,
    I need your help. After I updated WP GPX Maps to version 1.7.05 I am not able to edit many of the pages with the WP GPX Maps short code. Instead of the editing, it brings me a message:There has been a critical error on this website. Please check your site admin email inbox for instructions. And at the same time, I received a message from my web hosting provider with the following information about the error details:

    Error Details
    =============
    An error of type E_ERROR was caused in line 381 of the file /home2/tempdpc6/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php. Error message: Uncaught ValueError: max(): Argument #1 ($value) must contain at least one element in /home2/tempdpc6/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php:381
    Stack trace:
    #0 /home2/tempdpc6/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php(381): max(Array)
    #1 /home2/tempdpc6/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php(151): wpgpxmaps_parseXml(‘/home2/tempdpc6…’, ’10’, ‘0’)
    #2 /home2/tempdpc6/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php(392): wpgpxmaps_getPoints(‘/home2/tempdpc6…’, ’10’, false, ‘0’)
    #3 /home2/tempdpc6/public_html/wp-includes/shortcodes.php(356): wpgpxmaps_handle_shortcodes(Array, ”, ‘sgpx’)
    #4 [internal function]: do_shortcode_tag(Array)
    #5 /home2/tempdpc6/public_html/wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\[(\\[?)(sgpx)(…’, ‘do_shortcode_ta…’, ‘`

    Please any advice how I can fix it?
    Thanks!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • draggi

    (@draggi)

    Hello,
    I have the same issue with PHP8. I have already test to downgrade the version of the PLUGGIN without success.
    Here is the error:

    [Mon Mar 21 11:19:51.524868 2022] [php:error] [pid 22435] [client 172.20.0.1:0] 
    
    PHP Fatal error:  Uncaught Error: Attempt to assign property "dt" on null in /home/**********leg-st1/www/wp-content/plugins/wp-gpx-maps/wp-gpx-maps_utils.php:196\n
    Stack trace:\n#0 /home/**********leg-st1/www/wp-content/plugins/wp-gpx-maps/wp-gpx-maps_utils.php(157): wpgpxmaps_parseXml()
    \n#1 /home/**********leg-st1/www/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php(377): wpgpxmaps_getPoints()
    \n#2 /home/**********leg-st1/www/wp-includes/shortcodes.php(356): handle_WP_GPX_Maps_Shortcodes()
    \n#3 [internal function]: do_shortcode_tag()
    \n#4 /home/**********leg-st1/www/wp-includes/shortcodes.php(228): preg_replace_callback()
    \n#5 /home/**********leg-st1/www/wp-includes/class-wp-hook.php(307): do_shortcode()
    \n#6 /home/**********leg-st1/www/wp-includes/plugin.php(189): WP_Hook->apply_filters()
    \n#7 /home/**********leg-st1/www/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1811): apply_filters()
    \n#8 /home/**********leg-st1/www/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(560): WP_REST_Posts_Controller->prepare_item_for_response()
    \n#9 /home/**********leg-st1/www/wp-includes/rest-api/class-wp-rest-server.php(1141): WP_REST_Posts_Controller->get_item()
    \n#10 /home/**********leg-st1/www/wp-includes/rest-api/class-wp-rest-server.php(988): WP_REST_Server->respond_to_request()
    \n#11 /home/**********leg-st1/www/wp-includes/rest-api.php(511): WP_REST_Server->dispatch()
    \n#12 /home/**********leg-st1/www/wp-includes/rest-api.php(2860): rest_do_request()\n#13 [internal function]: rest_preload_api_request()
    \n#14 /home/**********leg-st1/www/wp-includes/block-editor.php(501): array_reduce()
    \n#15 /home/**********leg-st1/www/wp-admin/edit-form-blocks.php(72): block_editor_rest_api_preload()
    \n#16 /home/**********leg-st1/www/wp-admin/post.php(187): require('...')
    \n#17 {main}\n  thrown in /home/**********leg-st1/www/wp-content/plugins/wp-gpx-maps/wp-gpx-maps_utils.php on line 196, referer: https://www.**********.org/wp-admin/edit.php

    Lo stesso problema. Ho attivato PHP 7.4

    this plugin no longer works
    causes a critical error when using the standard PHP 8
    I cannot go back down to the previous PHP as the hosting company charges extra for non supported PHP

    • This reply was modified 2 years, 7 months ago by deepmill.

    I can’t wait for a fix so I am noe using

    https://www.mapsmarker.com/

    seems even better, just a hassle to migrate

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Update to 1.7.05 brings a critical error on my website’ is closed to new replies.