• Resolved gabrivisual

    (@gabrivisual)


    The plugin works fine except when i try to create a ticket with an uploaded file.
    When i submit the ticket i get this wordpress error:

    Fatal error: Uncaught Error: Call to undefined function mime_content_type() in /home/nh2bvbsr/public_html/ticket/wp-content/plugins/awesome-support/includes/file-uploader/class-file-uploader.php:1748 Stack trace: #0 /home/nh2bvbsr/public_html/ticket/wp-content/plugins/awesome-support/includes/file-uploader/class-file-uploader.php(1693): WPAS_File_Upload->process_ajax_upload(13, 107, Array) #1 /home/nh2bvbsr/public_html/ticket/wp-includes/class-wp-hook.php(287): WPAS_File_Upload->new_ticket_ajax_attachments(107, Array) #2 /home/nh2bvbsr/public_html/ticket/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #3 /home/nh2bvbsr/public_html/ticket/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /home/nh2bvbsr/public_html/ticket/wp-content/plugins/awesome-support/includes/functions-post.php(373): do_action(‘wpas_open_ticke…’, 107, Array) #5 /home/nh2bvbsr/public_html/ticket/wp-content/plugins/awesome-support/includes/functions-post.php(142): wpas_insert_ticket(Array, false, 1, ‘standard-ticket…’) in /home/nh2bvbsr/public_html/ticket/wp-content/plugins/awesome-support/includes/file-uploader/class-file-uploader.php on line 1748

    Si è verificato un errore critico sul tuo sito web.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author yeisonbp

    (@yeisonbp)

    Hi @gabrivisual,

    Try to go to the php.ini file and delete the initial comma from the following line:

    ;extension=php_fileinfo.dll

    If you are using Apache or another web server you will have to restart it to reload the configuration. If you are using the script by command line it is already reloaded when you rerun the script.

    Also, try to check that you have the latest PHP version. Another client with the same issue reported that the issue got solved when updating it.

    Regards.

    Thread Starter gabrivisual

    (@gabrivisual)

    I found the solution: i had to enable “fileinfo” extension in my hosting php settings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical error when upload a fild’ is closed to new replies.