Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




unwanted htacces

UserPost

4:04 am
January 28, 2010


absimiliard

Member

posts 2

1

Hi,

Your plugin works fine, except a little bug, but perhaps its comes from my server configuration…
When i deactivate the plugin, a htaccess is written in my uploads folder:

# BEGIN Role Scoper

# END Role Scoper

It seems to do nothing, but it blocks all acces to the folder: the media stocked here don't appear anymore.
My personnal solution: edit the plugin and remove this feature.

Could you tell me the name of the function to edit , and the file to edit please ?

Thanks.


7:49 am
January 28, 2010


Kevin

Admin

posts 2503

2

Apparantly your server does not support .htaccess in subdirectories. After deleting it, turn off the following option: Roles > Options > File Filtering.

New installations of Role Scoper will have that feature disabled by default, to avoid situations like this.

7:56 am
January 28, 2010


Kevin

Admin

posts 2503

3

On second thought, you will also need to modify plugins/role-scoper/rewrite-rules_rs.php as follows:

change:

insert_with_markers( $file_path, $marker_text, explode( "\n", $insertion ) );

to:

if ( $insertion || file_exists($file_path) )	
   insert_with_markers( $file_path, $marker_text, explode( "\n", $insertion ) );

8:43 am
January 28, 2010


absimiliard

Member

posts 2

4

Thanks…it works…(i think…)


About the Agapetry forum

Currently Online:

14 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1249

Posts: 5659

Members:

There are 1261 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