WordPress.org

Ready to get started?Download WordPress

Forums

Risal Download
Fatal error: Call to undefined function mime_content_type() (2 posts)

  1. Persephone33
    Member
    Posted 2 years ago #

    Hi there,
    Thanks for this plugin, I hope to be able to use it!

    When I put in the Server's File Name and Server's File Path (or even not), and click the Browse button I get this error:
    Fatal error: Call to undefined function mime_content_type() in /domainname.com/wp-content/plugins/wp-risal-download/risal-download.php on line 130

    which is this:
    echo "<td>".filesize($drtry)."</td><td>".mime_content_type($drtry)."</td></tr>";

    I want to be able to allow my authors to upload and feature files to download in a user-friendly way, but most of them are not tech-savvy enough to know the way to fill this out.

    But what is this error? I know my authors can browse to the file, but not if there is error.. :/

    Can we fix this somehow?

    http://wordpress.org/extend/plugins/wp-risal-download/

  2. Risal Affendie
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, Seems like your php's server not support build-in function mime_content_type(). Try to fix this by installing it OR modifying file php.ini (search line mime_magic.magicfile).

    Regards,
    Risal

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic