Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Joe

    (@morehawes)

    Hi @microteq,

    Thanks for reaching out and I am sorry to hear you are experiencing this issue.

    How big is the GPX file? My first guess would be that you are hitting PHP’s maximum file upload size for your server.

    I hope this helps, please do let me know if this is not the case.

    Cheers,

    Joe

    Thread Starter microteq

    (@microteq)

    Hi Joe

    unfortunately this is not the problem. My files are all about 1.6Mb in size. I also tried with a very small file of 3kb, which did not work either.

    Many thanks

    Daniel

    Plugin Author Joe

    (@morehawes)

    Hi Daniel,

    Thanks for the extra detail. This is a tricky one to diagnose because the error is occurring server-side. Are you able to access your servers Apache/PHP logs to get any more detail on the internal server error message?

    Does this happen with KML and GeoJSON files also?

    Would you be able to provide a link to a GPX file that is causing this issue on the off-chance that it is related to the file?

    Cheers,

    Joe

    Thread Starter microteq

    (@microteq)

    Hi Joe

    kml does not work either. But both files kml and gpx work prrfectly with google earth pro. I do not think, it is a problem with the file. If you would still look at the file, please tell me.

    I am trying to get php errors logged, but no success, yet (nothing is logged). Maybe, because php is running on Windows.

    Many thanks.

    Daniel

    Plugin Author Joe

    (@morehawes)

    Hi @microteq,

    A link to an example file would be useful, in-case there is a bug with Waymark when reading it.

    You may need to enable PHP error reporting (and for WordPress) for your environment, internal server errors should be getting logged with this enabled.

    Apologies I can’t be of more help at this time :-/

    Cheers,

    Joe

    Thread Starter microteq

    (@microteq)

    Hi Joe

    No problem, I really appreciate your help. “Error 500” as a message is also not very helpful to you, but I think I have found a much better error message meanwhile:

    [14-Apr-2023 05:55:10 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mime_content_type() in D:\inetpub\www.mywebsite.com\wp-content\plugins\waymark\inc\Helpers\Waymark_Input.php:456
    Stack trace:
    0 D:\inetpub\www.mywebsite.com\wp-content\plugins\waymark\inc\Admin\Waymark_AJAX.php(167): Waymark_Input::get_file_contents()
    1 D:\inetpub\www.mywebsite.com\wp-content\plugins\waymark\inc\Admin\Waymark_AJAX.php(89): Waymark_AJAX->read_file()
    2 D:\inetpub\www.mywebsite.com\wp-includes\class-wp-hook.php(308): Waymark_AJAX->handle_read_file()
    3 D:\inetpub\www.mywebsite.com\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters()
    4 D:\inetpub\www.mywebsite.com\wp-includes\plugin.php(517): WP_Hook->do_action()
    5 D:\inetpub\www.mywebsite.com\wp-admin\admin-ajax.php(188): do_action()
    6 {main}
    thrown in D:\inetpub\www.mywebsite.com\wp-content\plugins\waymark\inc\Helpers\Waymark_Input.php on line 456
    [14-Apr-2023 05:55:17 UTC] PHP Deprecated: Optional parameter $key declared before required parameter $value is implicitly treated as a required parameter in D:\inetpub\www.mywebsite.com\wp-content\plugins\waymark\inc\Waymark_Config.php on line 200
    [14-Apr-2023 05:55:17 UTC] PHP Deprecated: Optional parameter $map_title declared before required parameter $map_data is implicitly treated as a required parameter in D:\inetpub\www.mywebsite.com\wp-content\plugins\waymark\inc\Helpers\Waymark_Helper.php on line 529

    The first error is causing the problem, the last two are just for your information. Maybe you can also take care about them.

    Many thanks.

    Daniel.

    Thread Starter microteq

    (@microteq)

    It works!

    I had to activate the fileinfo extension in php.ini.

    Many thanks for your help.

    Daniel.

    Plugin Author Joe

    (@morehawes)

    Hi Daniel,

    Very glad to hear you got it working ?? Perhaps this will also help someone else out in the future.

    Reviews greatly appreciated!

    Cheers,

    Joe

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Waymark hangs when uploading gpx file’ is closed to new replies.