Title: Fatal error
Last modified: May 1, 2024

---

# Fatal error

 *  Resolved [Jeffinho2016](https://wordpress.org/support/users/jeffinho2016/)
 * (@jeffinho2016)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4673/)
 * When manually uploading another plugin, via [/wp-admin/update.php?action=upload-plugin](https://generatorbible.com/wp-admin/update.php?action=upload-plugin)
   
   I’m getting this error:WordPress version 6.5.2Current plugin: Media File Renamer:
   Rename for better SEO (AI-Powered) (version 5.9.1)PHP version 8.2.18Error Details
   =============An error of type E_ERROR was caused in line 1894 of the file /home/
   www/public_html/wp-content/plugins/media-file-renamer/classes/core.php Error 
   message: Uncaught ValueError: mime_content_type(): Argument #1 ($filename) cannot
   be empty in /home/www/public_html/wp-content/plugins/media-file-renamer/classes/
   core.php:1894Stack trace:#0 /home/www/public_html/wp-content/plugins/media-file-
   renamer/classes/core.php(1894): mime_content_type()#1 /home/www/public_html/wp-
   content/plugins/media-file-renamer/classes/core.php(337): Meow_MFRH_Core->get_mime_type()#
   2 /home/www/public_html/wp-includes/class-wp-hook.php(324): Meow_MFRH_Core->on_upload_hook_prefilter()#
   3 /home/www/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()#
   4 /home/www/public_html/wp-admin/includes/file.php(833): apply_filters()#5 /home/
   www/public_html/wp-admin/includes/file.php(1105): _wp_handle_upload()#6 /home/
   www/public_html/wp-admin/includes/class-file-upload-upgrader.php(66): wp_handle_upload()#
   7 /home/www/public_html/wp-admin/update.php(161): File_Upload_Upgrader->__construct()#
   8 {main} thrown

Viewing 1 replies (of 1 total)

 *  Plugin Support [Val Meow](https://wordpress.org/support/users/valwa/)
 * (@valwa)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4673/#post-17731195)
 * Hey [@jeffinho2016](https://wordpress.org/support/users/jeffinho2016/)! 👋
 * This would only happen if the uploaded file is somehow null or doesn’t have a
   filename, which shouldn’t occur. I’ve tried to reproduce the issue and confirmed
   that this code is executed, but as long as the plugin zip file is valid, no error
   should occur. In any case, we will update the plugin to ensure that nothing happens
   if the uploaded file seems to be missing data. Thanks for your patience and understanding.

Viewing 1 replies (of 1 total)

The topic ‘Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/media-file-renamer/assets/icon-256x256.png?rev=2791577)
 * [Media File Renamer: Rename for better SEO (AI-Powered)](https://wordpress.org/plugins/media-file-renamer/)
 * [Support Threads](https://wordpress.org/support/plugin/media-file-renamer/)
 * [Active Topics](https://wordpress.org/support/plugin/media-file-renamer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-file-renamer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-file-renamer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Val Meow](https://wordpress.org/support/users/valwa/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4673/#post-17731195)
 * Status: resolved