[resolved] "You don't have permission to access ... (7 posts)

  1. Brett
    Posted 3 years ago #

    Hi there

    I am getting the following error when I press on the little compfight button in the editor of WordPress.

    "You don't have permission to access /wp-content/plugins/compfight/compfight-search.php"

    This is the first time I have tried to use it, so I can't give any clues as to what is causing it sorry.

    Any ideas?


  2. Brett
    Posted 3 years ago #

    Please ignore. This was as a result of a security plugin I have. BPS Security. I am not sure quite how to get around it, but at least I know the problem. There is obviously something blocking access to the files.

  3. SteviniP
    Posted 3 years ago #

    same here I can't even find the file on my server to change permissions

  4. Jablago
    Posted 3 years ago #

    Hi Brett,

    I found the solution of the BPS incompatibility and Compfight.

    If you still have that issue with BPS you can fix the problem adding to the .htaccess (in root directory) the next code:

    # Compfight error accesing to the photos
    RewriteCond %{REQUEST_URI} ^/wp-content/plugins/compfight/ [NC]
    RewriteRule . - [S=7]

    There is a section in the .htaccess that says: PLUGINS AND VARIOUS EXPLOIT FILTER SKIP RULES. I add the code at the end of that section.

    Hope it works for you!!!

  5. Brett
    Posted 3 years ago #

    Thanks for that. I will try reenabling BPS and see if I can get this to work. Appreciate your help!

    What does the [S=7] mean?


  6. Jablago
    Posted 3 years ago #

    You're welcome Brett!

    It means the position of the rewrite rule. This will depend on what you have in your htaccess file. In my case I deleted the position 7 (designated to Xcloner) and included the code I showed above.

    If you have the position 7 already occupied, try to include the code at the beginning of the list, and change the number that corresponds to your case.

    You can also do the same as I did, if you're not using the Xcloner plugin.

    I hope I have been helpful.

    Sorry for my bad English, is not very good.


  7. Brett
    Posted 3 years ago #

    Thanks again. I understand now. Have never seen that used before.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Compfight
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.