• Resolved Jeffinho2016

    (@jeffinho2016)


    When manually uploading another plugin, via /wp-admin/update.php?action=upload-plugin
    I’m getting this error:
    WordPress version 6.5.2
    Current plugin: Media File Renamer: Rename for better SEO (AI-Powered) (version 5.9.1)
    PHP version 8.2.18

    Error 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:1894
    Stack 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

    (@valwa)

    Hey @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.