• Resolved Maxime

    (@mc77500)


    Hi,

    I just downloaded the plugin, and I think it’s great! However, when I try to import a GPX file extracted from Garmin (I also tried with GeoJSON file), it doesn’t load, and it returns errors in the JS console and in the PHP errors.

    First, there’s a 500 error on POST https://…/wp-admin/admin-ajax.php.

    Then, when I go to PHP error_logs , I got

    PHP Fatal error:  Uncaught Error: Call to undefined function mime_content_type() in ...\wp-content\plugins\waymark\inc\Helpers\Waymark_Input.php:456
    
    Stack trace:
    
    #0 ...\wp-content\plugins\waymark\inc\Admin\Waymark_AJAX.php(167): Waymark_Input::get_file_contents(Array)
    
    #1 ...\wp-content\plugins\waymark\inc\Admin\Waymark_AJAX.php(89): Waymark_AJAX->read_file()
    
    #2 ...\wp-includes\class-wp-hook.php(324): Waymark_AJAX->handle_read_file('')
    
    #3 ...\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    
    #4 ...\wp-includes\plugin.php(517): WP_Hook->do_action(Array)
    
    #5 ...\wp-admin\admin-ajax.php(188): do_action('wp_ajax_waymark...')
    
    #6 {main}
    
      thrown in ...\wp-content\plugins\waymark\inc\Helpers\Waymark_Input.php on line 456

    Do you have any idea what the issue might be? Thank you very much for your help,

    Maxime

    • This topic was modified 11 months, 1 week ago by Maxime.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe

    (@morehawes)

    Hi @mc77500,

    Thanks for reaching out ?? After doing a little research…

    The reason for the error is because the mime_content_type() function can not be found. This is part of the core PHP Fileinfo Extension which is enabled by default.

    If you are able to enable the extension then that should fix the issue. I will look into improving the handling of this in the next release.

    I hope that helps.

    Cheers,

    Joe

    Thread Starter Maxime

    (@mc77500)

    Hi Joe,

    Thank you very much for your feedback. I was able to resolve the issue, which appears to be specific to Windows (I am currently working locally only). By following the instructions at https://stackoverflow.com/a/5605953/17586135, where others had the same issue as me, everything is working perfectly now. Thanks again for your response, which guided me to the right solution.

    Cheers,

    Maxime

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load input files into map’ is closed to new replies.