Forum Replies Created
-
Thanks to all – I solved the problem. To be useful to others I report a some hints:
inexplicably, some capabilities in the Subscriber role in my wp installation were missing (publish_documents and, but not sure, override_document_lock) – I had to use Profile builder plugin to clearly see what’s missing, User Roles Editor was too much confusing.Hello, thanks for you reply. So you suggest to disable all the plugin and try with bbpress and GD Att. alone.
I’ll try it and let you know.I queued to an existing topic here: https://wordpress.org/support/topic/permission-to-attach-image-isnt-working/
It seems there’re others with my problem.
Yes, I already tried a plugin to modify the accepted mime types, this changes nothing. Anyway, I think that the setting for the new mime type added to wp is not the problem, since keymaster can successfully upload files.
I’d suggest you raise a ticket in bbpress attachments
https://wordpress.org/support/plugin/gd-bbpress-attachments/
Done, I hope this will help to find a solution. By now, many thanks for your help.
Yes exactly, but I made sure that all the roles were able to attach files – I believe that all its settings are correct.
Otherwise, how to allow attachments?
you mean:
// First we unregister the old key unset( $mime_types['txt|asc|c|cc|h'] ); // Then we add a new one ! isset( $mime_types['txt|asc|c|cc|h|nvn'] ) AND $mime_types['txt|asc|c|cc|h|<strong>nvn</strong>'] = 'text/plain';
No way, same error.
As a partecipant user, in the Reply to: box, I click on the button “Browse…” and I select a .nvn text file.
I’m posting a reply from a participant account in a already existing topic. The topic was created by a keymaster/admin.
No, participant cannot upload a psd file even with your code, same error:
filename.psd: Sorry, this file type is not permitted for security reasons.I tried by taking out the code as you said, but then the admin/keymaster account was not able to upload files.
Hence, the code is correct.
I checked also the file type, nvn does not exist as a registered mime type.Thanks, anyway I cannot find anything applying to my case.
First of all, I must exclude the WP capability named “unfiltered_upload”, since I didn’t activate the unfilted uploading feature. In any case, I made tests and this is not affecting the problem I’m facing.
Secondly, I tried editing the bbPress role capabilities (the problem is that the advised tool allows only the modification per user, and not for the entire role type), and I didn’t find anything that applies (there’s nothign related to uploads).
Then I tried to edit WP role capabilites with the help of a plugin, and nothing changes again.I’m desperate – I start thinking it’s a problem of my Windows hosting.
To exclude some things, let me ask 2 questions:
1. is this a new problem or it arose also in the past?
2. I found the WP capability “upload_files” for the Subscriber role by default. This is strange, anyway, I tried enabling it but nothing changes.thanks in advance for the help
Yes, I said earlier exactly that. Admin and keymaster combination works fine.
Thanks for your reply. I’ve added the capability by adding in theme functions these lines:
function my_mime_types($mime_types){ $mime_types['nvn'] = 'text/plain'; //Adding nvn extension return $mime_types; } add_filter('upload_mimes', 'my_mime_types', 1, 1);
I made the tests:
subscriber and keymaster: Sorry, this file type is not permitted for security reasons.
admin and participant: Sorry, this file type is not permitted for security reasons!!! THE SAME! I modified the same user that was a subscriber, I cannot figure out what’s happening here…anyone? I’m still getting nowhere.
Wp is correctly set, I checked the allowed mime types even via a plugin and nvn are permitted.
Admins can upload without any problem.