• Dear readers,

    We just had a new customer who moved their wordpress website from another hoster to us. After it was moved we immidiatly upgraded everything to the most recent versions since it was somewhat outdated.

    Now we get the messages like :
    Forbidden
    You don’t have permission to access /wp-admin/admin.php on this server.

    when we click on the S2member plugin menu entry
    The exact link is : /wp-admin/admin.php?page=ws-plugin–s2member-start

    We tried everything from putting back the old version.
    To adjust permission on all directorys and files.
    I even removed the .htaccess files to test if this was a problem but nothing worked.

    Does anybody know what can be wrong or how to fix this issue

    https://wordpress.org/plugins/s2member/

Viewing 14 replies - 1 through 14 (of 14 total)
  • I don’t know… You only have the problem with s2Member admin pages?

    If you haven’t yet, could you please do these? http://www.s2member.com/kb/common-troubleshooting-tips/

    Thread Starter Koeijers

    (@koeijers)

    Allready did all troubleshooting tips i could come up with.
    and this is the only plugin wich has the problem.

    So that’s why I hope people in here have experienced the same error/problem

    I just had a server permissions error after upgrading my localhost development installation.

    I found using the plugin, Query Monitor, helped me to identify the source of the problem (which turned out to be that the new installation was lacking a specific user), and then I was able to solve it.

    So I’d strongly recommend trying out Query Monitor and then, if necessary, reporting back here.

    Thread Starter Koeijers

    (@koeijers)

    Thanks KTS915,

    I installed the plugin but as soon as i click on the S2Member plugin it gives me the initial error :

    Forbidden
    You don’t have permission to access /wp-admin/admin.php on this server.

    Even if I chmod the directorys (as a test) to 777 it still gives me the same error.

    Any idea’s left?
    thanks in advance!

    I don’t know what you mean by “as soon as i click on the S2Member plugin”. Do you mean that it is not activated?

    If it is activated, just try accessing pages, posts, and the back-end in the normal way, and see if Query Monitor reports any problems (which you will be able to see by clicking on the admin bar).

    Thread Starter Koeijers

    (@koeijers)

    The plugin is activated and it creates an S2Member menu option on the left. As soon as I try any option in that menu i’ll get the Forbidden message. So I simply can’t see Query Monitor for problems as the page won’t get loaded.

    So I can’t troubleshoot this issue using the plugin or so it seems.

    I see. Do you get any messages from Query Monitor when accessing parts of the site that are accessible?

    The other two things I’d suggest are the following:

    1. Try adding something to the .htaccess file, as suggested here.

    2. It may be that it’s not the file permissions that are the problem (which chmod would fix) but who owns them (for which you’d use chown). Have you checked the ownership of the files and folders?

    Thread Starter Koeijers

    (@koeijers)

    I added an extra part to the .htaccess file but the first part didn’t work. I’ll just post the content of the .htaccess file in here maybe you’ll notice something strange since there is a section of S2Member in it.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # BEGIN s2Member GZIP exclusions
    <IfModule rewrite_module>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
    RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
    RewriteRule .* – [E=no-gzip:1]
    </IfModule>
    # END s2Member GZIP exclusions

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    Thread Starter Koeijers

    (@koeijers)

    Didn’t check who ownes the files as I don’t got root access to the server.
    Only FTP access. It’s a shared hosting server so that would be a problem right?

    Thread Starter Koeijers

    (@koeijers)

    And this is the .htaccess in the root of the S2Member plugin directory

    Options -Indexes
    <IfModule dir_module>
    DirectoryIndex disabled
    DirectoryIndex index.php
    </IfModule>

    I don’t see anything unusual there so far as s2Member is concerned.

    I suspect is a file ownership issue, for which you will need to contact the host provider.

    Since the section

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    doesn’t seem to achieve anything useful, I’d delete that again now before you contact the host, just in case it confuses matters.

    Thread Starter Koeijers

    (@koeijers)

    Thanks for the help.
    I’ll contact the host provider and let you know the outcome.

    Thread Starter Koeijers

    (@koeijers)

    I’ve contacted the host provider and we ruled out that it’s an chown issue.

    one thing i noticed is that my s2member plugin used to be 1 directory
    and now there are 3

    s2member
    s2member-files
    s2member-logs

    s2member has the actual plugin.
    en the other 2 below have 1 file a .htaccess and further nothing.

    any ideas left?

    Those other folders should be there.

    But I’m afraid I’m out of ideas. Maybe someone else will be able to suggest something.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘No access after moving the site and upgrade’ is closed to new replies.