MyBB Community Forums

Full Version: Attachment downloading problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I try to download attachment in my forum, it says "you don't have permission". Even the admin cannot download. What could be the problem? What is the solution?
Please review this user's usergroup permissions and their permissions for the target forum (and its parent / ancestor forums, if any).
I forgot to say, member permissions are normal.
Hi, I am joining this discussion, because I have exactly the same problem.
Has it been solved for the above case?
I have checked the BD, all seems OK.
The trouble is that it appeared suddenly 2 days ago, as nothing has changed in the forum configuration since days.

Nothing in error.log concerning attachments.
But found this related to last post :

[Wed Jun 03 20:45:28.131525 2020] [fcgid:warn] [pid 27647] (70008)Partial results are valid but processing is incomplete: [client 185.87.239.119:50575] mod_fcgid: can't get data from http client, referer: http://condor-velivole.eu/mybb/newreply....plyto=8122

[Thu Jun 04 21:29:38.316197 2020] [fcgid:warn] [pid 30122] (32)Broken pipe: [client 86.243.19.106:53736] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://condor-velivole.eu/mybb/Thread-AA...ge-Diamond

It seems that it is related to that peculiar post. I have created a new thread with an attachment that works normally.
That post has been created by a registered user that was evidently not familiar with our forum procedures, but his post was accepted.

Thanks for your help.

MyBB 1.8.21
PHP 7.2.18
(2020-06-05, 09:01 AM)papa2fois Wrote: [ -> ][Thu Jun 04 21:29:38.316197 2020] [fcgid:warn] [pid 30122] (32)Broken pipe: [client 86.243.19.106:53736] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://condor-velivole.eu/mybb/Thread-AA...ge-Diamond

Do you have a test account so that one can check that post and attachments in it?
thx Noyle, I sent you a PM.
(2020-06-05, 01:24 PM)papa2fois Wrote: [ -> ]thx Noyle, I sent you a PM.
Thanks. I checked that thread and didn't find anything wrong except that an attachment in a quoted has been updated with a new ID.

By the way, for the two error log entries, there are some suggestions:
Quote:[Wed Jun 03 20:45:28.131525 2020] [fcgid:warn] [pid 27647] (70008)Partial results are valid but processing is incomplete: [client 185.87.239.119:50575] mod_fcgid: can't get data from http client, referer: http://condor-velivole.eu/mybb/newreply....plyto=8122
Probably you need to adjust upload limits for http server and PHP.

Quote:[Thu Jun 04 21:29:38.316197 2020] [fcgid:warn] [pid 30122] (32)Broken pipe: [client 86.243.19.106:53736] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://condor-velivole.eu/mybb/Thread-AA...ge-Diamond
https://stackoverflow.com/a/48468294/6681141
Thanks, probably best is to clear the discussion from rubbish posts.
aid differs because of updates during my debug phase.
But it does not explain why the attachment cannot be downloaded.
For the rest, it is on the host provider side.
(2020-06-05, 05:34 PM)papa2fois Wrote: [ -> ](...)
But it does not explain why the attachment cannot be downloaded.
(...)

Could you please specify the attachment you can't download? PM me with that link if posting publicly is not an option.
(2020-06-05, 05:34 PM)papa2fois Wrote: [ -> ]Thanks, probably best is to clear the discussion from rubbish posts.
aid differs because of updates during my debug phase.
But it does not explain why the attachment cannot be downloaded.
For the rest, it is on the host provider side.

If connected as admin (as the test account) , every thing is OK, I can download the attachment, view attachesd inserted image, but it fails if connected as registered user!!

That gave me the clue : the forum permissions were not set to allow attachments download for registered users.
My mistake.
Thanks again.