• Resolved perezsmarie

    (@perezsmarie)


    Hi,

    Since last Friday I’ve been receiving the HTTP Error when attempting to upload a file through BuddyPress Docs. However, my media library upload worked just fine. Is there a known issue of this happening? Any suggestions on how to fix this? Again, it’s only when uploading a file within a group in BP Docs.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author David Cavins

    (@dcavins)

    Hi perezsmarie-

    Let me be sure I understand you correctly: using the same test file, you’re able to upload it to the media library, but when you attempt to upload it via a BP Doc, you get an error. Is this the case when you’re logged in as a regular user and as a site admin?

    Can you tell me what versions of WordPress, BuddyPress and BP Docs you’re using? Please also let me know what hosting service you use to host the site.

    One thought I’m having is that my sites updated to WP 4.7.1 automatically last Thursday and now certain file types that I know are allowed are failing, too. πŸ™

    • This reply was modified 9 years, 4 months ago by David Cavins.
    Thread Starter perezsmarie

    (@perezsmarie)

    Thanks David,

    Correct, now I might be wrong here because I just attempted to upload a Word Document in my Media Library and I’m getting the HTTP Error which is the same I get with BP Docs. Then I tried to upload a .jpg and it worked just fine. Again, this only happened with the new WP update so that might just be the case here like you said.

    But here’s my information:

    Wordpress Version – 4.7.1
    BuddyPress – 2.7.4
    BP Docs – 1.9.2
    Hosting Provider – GoDaddy (Called them and they attempted multiple solutions to which none of them worked and they instead made a ticket for an admin to review)

    Plugin Author David Cavins

    (@dcavins)

    Thanks for your response. Using the same JPG that worked successfully in the media library, can it be attached to a BP Doc?

    It looks like 4.7.1 introduced stricter file checking that is causing problems for files like Word docs and CSVs: https://core.trac.ww.wp.xz.cn/ticket/39550

    It’s not easy to test, but going back to WP 4.7 may fix the problem for you.

    Thread Starter perezsmarie

    (@perezsmarie)

    Hi David,

    Yes, I was able to upload the .jpg in BP Docs with no issues. Now, I took your suggestion but rather went back one more version so I’m down to 4.6 and I’m still experiencing the same issue with the HTTP Error message when uploading Word docs.

    πŸ™

    Plugin Author David Cavins

    (@dcavins)

    Thanks for sharing the results of your tests.

    Hmm. So the same Word doc can be uploaded via the media library but not via a BP Doc? And a jpg will work in both places? Can you try another common type, like a pdf, in both places and let me know what you find?

    WordPress does generally limit what kind of files can be uploaded, but the default allowed list is here: https://codex.ww.wp.xz.cn/Uploading_Files

    If you’re able to upload some kinds of files via the BP Docs “add attachment” dialog, that sounds like WP is filtering some of them out.

    Thread Starter perezsmarie

    (@perezsmarie)

    I’m sorry for the confusion I’m unable to upload a Word document in Media Library and BP Docs. However, I can confirm that uploading a .jpg, .pdf, .png works fine with both Media Library and BP Docs.

    Plugin Author David Cavins

    (@dcavins)

    Ok, so it sounds like the problem is at the WordPress level. Word documents should be fine with 4.7 and earlier, but you can specifically add more allowed types via a small function:
    http://sumobi.com/how-to-add-a-new-mime-type-to-wordpress/

    There’s an alternative example here (though I like the previous example better) with a nice table of mime types:
    https://paulund.co.uk/change-wordpress-upload-mime-types

    You can also use one of many plugins that allow you to specify what should be able to be uploaded. (I don’t have a recommendation on this; I usually just add a function like the above examples.)

    Best,

    -David

    I have the same Issue since the last WordPress Update. I cant upload any file as attechement in a Doc.

    Plugin Author David Cavins

    (@dcavins)

    That’s helpful. It sounds like the problem is at the WordPress level. Word docs should be OK on WP 4.7 and earlier, but you can make doubly sure by adding a filter like this:
    http://sumobi.com/how-to-add-a-new-mime-type-to-wordpress/

    There are also plugins to help, but adding the filter is pretty straightforward.

    It might be worth it double-check that the WP downgrade you did was complete, because it still sounds like 4.7.1 problems are haunting you.

    Best,

    -David

    Plugin Author David Cavins

    (@dcavins)

    @dernerd The problem is upstream in WordPress, so the only short-term fix is to downgrade to 4.7 or hope for a quick 4.7.2 that addresses the issue.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘HTTP Error’ is closed to new replies.