WordPress.org

Ready to get started?Download WordPress

Forums

MimeTypes Link Icons
[resolved] Error: Anonymous Function (4 posts)

  1. kevllar
    Member
    Posted 1 year ago #

    Hi I'm getting an error in my console about an Anonymous Function and it seems to be coming from this plugin.

    http://www.iccschannel.net/

    Uncaught TypeError: Cannot call method 'match' of null
    mtli_str_replace.js:13 <-- Line 13

    Any ideas what might be causing the problem?

    http://wordpress.org/extend/plugins/mimetypes-link-icons/

  2. kevllar
    Member
    Posted 1 year ago #

    Hi more info on this problem.

    Links that I have uploaded using the WordPress uploader seem to display fine with an Icon and filesize.

    Files that I link to manually on my server throw and error. (http://www.example.com/files/doc.pdf) Links like this will error and show:

    Warning: filesize() [function.filesize]: stat failed for http://www.iccs-isac.org/members/board/docs/minutes/ICCS%20Board%20Record%20of%20Decision%20Sept%2028_05.pdf in /hermes/bosoraweb004/b2818/nf.iccs-isac/public_html/iccs-isac.org/wp/wp-content/plugins/mimetypes-link-icons/mime_type_link_images.php on line 451

    Any idea what might cause this? Please help. I checked the permissions of the folder and set them to 777 but it still throws the same error. And it's only when I turn on "show filesize". If I turn it off everything is okay. But I would like to turn it on.

    Thanks!

  3. eagerterrier
    Member
    Plugin Author

    Posted 1 year ago #

    @kevillar

    sorry for late response.

    I can't get through to your iccschannel.net site to have a look. Is there any way of seeing your work so far?

  4. swinhoe
    Member
    Posted 1 year ago #

    @kevillar

    I have had this same issue - it was a poorly formed PDF file causing the issue. If the code cant gather the correct filesize, it throws this error, hence it disappears when the "show filesize" setting is disbaled.

    Try re-authoring the PDF..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic