• Resolved Mr Beta

    (@mr-beta)


    After updating to version 1.5.3 when trying to save or do another function in the admin area, I get this error: Fatal error: Call to undefined function mime_content_type() in /home/user/public_html/wp-content/plugins/mailgun/includes/wp-mail.php on line 249

    I checked line 249 and this is it:

    $content_type = mime_content_type($tmppath);

Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi, I am using WordPress 4.6.1. Mailgun 1.5.4, PHP 5.5.30, Memberpress and WpCourseware.

    It is working fine after I downgraded to Mailgun Version 1.5.2.

    Thanks
    wayne

    Plugin Author Mailgun

    (@mailgun)

    @wayne_min Thanks. So your probably is caused by one of your plugins not actually setting the email Content-Type header when it’s attempting to send it. When the Content-Type header is omitted, we try to assume the actual content type using this code.

    In 1.5.2, the default Content-Type assumption was always text/html, but 1.5.3 or 1.5.4 changed that to try mime-type detection.

    In a lot of cases, the content type will be assumed correctly, but if the email you’re trying to send is missing some of the characteristics of an HTML email (eg., <!DOCTYPE html>, <html>, …), the type checker will just assume text/plain. If possible, please try wrapping your emails in a <html>...</html> block to see if that fixes the issue.

    If you can’t do that, some plugins will actually have an option allowing you to select the default content type to send emails as, typically plain text or HTML (or both).

    I hope this helps! Please let me know if either of the solutions above work for you; if not, I will try to figure something else out ??

    Thanks!

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘After Updating to 1.5.3 Error’ is closed to new replies.