Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Can't Upload Files with Simple Fields Plugin

UserPost

7:35 pm
March 2, 2011


teegee543

New Member

posts 1

1

Hello, thanks for writing this great plugin! I'm having a problem with Role Scoper preventing file uploads when I have a "File" custom field added by the Simple Fields plugin:

http://eskapism.se/code-playground/simple-fields/

I get the error "You do not have permission to upload files." in the lightbox when I try to upload a file. The regular media manager in the default post box works just fine.

2:10 pm
March 7, 2011


akeith2002

New Member

posts 1

2

Having the same problem here! Same EXACT problem. Really need to solve this. It appears that it is because the user does not have access to "activate" plugins so they cannot upload using the file uploader of simple fields. When we use capabilities manager to allow them to "active" plugins it works but then the user can add/edit/delete plugins AND all custom post types using simple fields are available to them as well making the whole point of the plugin null and void.

Please please take a look at this!

Thanks.

Aaron

2:16 pm
March 7, 2011


lhSquared

New Member

posts 1

3

I am also having this issue.  When a user attempts to upload a file via a Simple Fields custom field, the pop-up gives them the message that they do not have permission.  If the same user then tries to upload an image in the content area, they are allowed to add the image as normal.  If you give the user the ability to "Activate Plugins" (got this from the super admin section of this plugin) the user can now upload the file in the Simple Fields field, but they can also view the plugins, and has access to all of the custom post types that use the Simple Fields plugin. 


Please HELP!

12:28 pm
March 10, 2011


Kevin

Admin

posts 2503

4

You can eliminate the conflict by disabling Role Scoper filtering for file uploads by putting this in wp-config.php, above the "stop editing" line:

if ( strpos( $_SERVER['SCRIPT_NAME'], '/wp-admin/media-upload.php' ) || strpos( $_SERVER['SCRIPT_NAME'], '/wp-admin/async-upload.php' ) )
   define( 'DISABLE_QUERYFILTERS_RS', true );

This will also prevent users from uploading files on the basis of RS role assignments, but I'm not ready to donate any more time to the investigation right now.


About the Agapetry forum

Currently Online:

11 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1245

Posts: 5653

Members:

There are 1255 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin