Title: Load input files into map
Last modified: December 25, 2023

---

# Load input files into map

 *  Resolved [Maxime](https://wordpress.org/support/users/mc77500/)
 * (@mc77500)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/load-input-files-into-map/)
 * 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 [http://…/wp-admin/admin-ajax.php](http://.../wp-admin/admin-ajax.php).
 * Then, when I go to PHP error_logs , I got
 *     ```wp-block-code
       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 2 years, 5 months ago by [Maxime](https://wordpress.org/support/users/mc77500/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/load-input-files-into-map/#post-17302005)
 * Hi [@mc77500](https://wordpress.org/support/users/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](https://www.php.net/manual/en/book.fileinfo.php)
   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](https://wordpress.org/support/users/mc77500/)
 * (@mc77500)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/load-input-files-into-map/#post-17302113)
 * 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](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.

 * ![](https://ps.w.org/waymark/assets/icon-256x256.png?rev=3491393)
 * [Waymark](https://wordpress.org/plugins/waymark/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/waymark/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/waymark/)
 * [Active Topics](https://wordpress.org/support/plugin/waymark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/waymark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/waymark/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Maxime](https://wordpress.org/support/users/mc77500/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/load-input-files-into-map/#post-17302113)
 * Status: resolved