• Resolved TKPM

    (@tkpm)


    Hi, I’m receiving the following error code when trying to upload pdf files:

    Warning: in_array() expects parameter 2 to be array, null given in /home/content/24/10812624/html/wp-content/plugins/frontend-uploader/frontend-uploader.php on line 198

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/24/10812624/html/wp-content/plugins/frontend-uploader/frontend-uploader.php:198) in /home/content/24/10812624/html/wp-includes/pluggable.php on line 876

    https://www.ads-software.com/extend/plugins/frontend-uploader/

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Author Rinat

    (@rinatkhaziev)

    You should figure out what mime type is your PDF file (that’s what fu_is_debug filter for) – it’ll display more detailed information on failed upload (including mime-type),
    and then add this mime with
    add_filter( ‘fu_allowed_mime_types’, ‘my_fu_allowed_mime_types’ );

    If you post here what exact mime type gives you trouble, I can write a snippet for you that’ll take care of it. Or you can do it yourself if you’re feeling brave

    Thread Starter TKPM

    (@tkpm)

    Assuming it’s application/pdf (as I’ve tried a few different pdf files); looks like filext.com is currently down.

    Thanks for all your help!

    Thread Starter TKPM

    (@tkpm)

    Unfortunately, I’ve had no luck with the snippet, so any help would be greatly appreciated.

    On the bright side, I’m no longer receiving that syntax error when logging into the dashboard, guessing it worked itself out over time…

    Plugin Author Rinat

    (@rinatkhaziev)

    Try the new version and let me know if it works for you.
    https://downloads.www.ads-software.com/plugin/frontend-uploader.0.5.2.zip

    Thread Starter TKPM

    (@tkpm)

    Just tried pdf and psd files and both worked! Thanks a ton!!

    Plugin Author Rinat

    (@rinatkhaziev)

    Marking as resolved

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Error When Uploading PDF’ is closed to new replies.