Support » Plugin: WP Mail Logging » Attachment Error Status

  • Resolved deathbybots

    (@deathbybots)


    Hello,

    The plugin seem to be logging the emails but I did get this error code under the attachment log. I think it is minor but thought I would report it. Error below

    Fatal error: Call to undefined function No3x\WPML\mime_content_type() in /home/inkdprint/shop.3inkd.com/store/wp-content/plugins/wp-mail-logging/WPML_Utils.php on line 83

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author No3x

    (@no3x)

    Thank you! Add a \ before mime_content_type in WPML_Utils.php on line 83 as quick fix. I will put this in the next release.

    Plugin Author No3x

    (@no3x)

    I’v looked a bit more into this now. The problem is not related to the namespace so prefixing \ does not has impact.
    It’s related to your php version and installed extensions. Especially mime_magic.
    What php version are you running?

    • This reply was modified 1 year, 2 months ago by  No3x.
    • This reply was modified 1 year, 2 months ago by  No3x.

    That domain is currently running PHP 5.6

    Plugin Author No3x

    (@no3x)

    Please check if the php module php_fileinfo is enabled.

    Plugin Author No3x

    (@no3x)

    Let’s do it the other way around:
    the function is required to determine a file icon based on the file type for attachments.
    In the meantime I changed the plugin to avoid throwing an error and showing a generic file icon. This change is not available by a new version yet.

    There are at least 2 options:
    1) You did not even know there are icons for attachemtns / you don’t care about attachment icons: ignore this error, wait for the next update of the plugin, inform me if the error gone after the next update.
    2) Fix your server settings to support this kind of function

    • This reply was modified 1 year, 2 months ago by  No3x.

    This error is not important to me at all. The plug in still works fine for what I use it for. However, thanks for looking into this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Attachment Error Status’ is closed to new replies.