• I have recently upgraded to WordPress 2.2, for about several weeks now and all of a sudden I can no longer visit moderation.php to moderate comments. Furthermore I cannot view any other pages of my blog other than the first page which is strange. Now there are also several more admin functions which I cannot use such as editing comments and such. Please take a look and tell me what’s wrong:

    http://blog.divineiniquity.net

    I think my problem is that when I upgraded I simple overwrote all the files although I don’t think my FTP did it right. Please help me, Im losing faith in this forum.

Viewing 15 replies - 1 through 15 (of 29 total)
  • Did you check if your permalink setup works?

    Im losing faith in this forum

    I don’t think this will inspire people to help.

    Thread Starter divineiniquity

    (@divineiniquity)

    yes my bad for saying that. It’s just that I havn’t had much luck getting responses for a while now. I withdraw that statement.

    As for permlinks I’ve set it numeric since it has the shortest URL path but that’s it…I am not sure of what to do with it, they seem fine I think.

    Ok I think the “Next Page” links work now so all I need with at the moment is with the “moderation.php”…can’t access it. It returns a 403 forbidden error I think because it’s my webhost’s custom error page which redirects to the home page.

    I visited your page earlier and got a few “not found” when clicking some links and got redirected to your host (?) but now it seems to be working?

    Maybe you can check your webserver logs?

    Have you checked the permissions on the moderation.php file?

    Thread Starter divineiniquity

    (@divineiniquity)

    Thanks. Umm what number should they be…mine are all set to 755.

    The problem also exists for the “edit_comments.php” file. Which means I cannot even view the comments in the admin panel. Does this have anything to do with the database?

    Kinda sounds like a mod_security issue. If so, whooami’s oft-repeated advice follows:

    IF YOU DO NOT HAVE an .htaccess in your wp-admin/ directory:

    create a text file on your desktop:

    put the following inside it:

    <IfModule mod_security.c>
    SecFilterInheritance Off
    </IfModule>

    save the file. name it whatever you want

    Upload the file to your wp-admin directory.

    Rename the uploaded file to .htaccess (with the .)

    IF YOU DO HAVE an .htaccess in your wp-admin/ directory:

    Edit it, and add the following:

    <IfModule mod_security.c>
    SecFilterInheritance Off
    </IfModule>

    save the new .htaccess

    Thread Starter divineiniquity

    (@divineiniquity)

    alright thanks man Ill see if it works πŸ˜›

    Thread Starter divineiniquity

    (@divineiniquity)

    alright thanks man Ill see if it works πŸ˜›

    ok I just checked. It actually made things worse:

    Firstly the .htaccess file was actually located in my main wordpress directory: one level above wp-admin.

    Secondly it already had this text in it:

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

    If I add what you just told me to I get a 500 internal error.

    Firstly the .htaccess file was actually located in my main wordpress directory: one level above wp-admin.

    Re-read the quoted bit in my post. Read for context and notice the directory names listed.

    Thread Starter divineiniquity

    (@divineiniquity)

    yes I know what you’re talking about and so I’ll explain to you what I meant:

    the .htaccess file your quote refers to should be located in this directory “…/Wordpress/wp-admin/.htaccess”

    However my existing .htaccess file is located as thus:
    “…/Wordpress/.htaccess”

    I have followed your quoted section and made a new .htaccess file and uploaded it so that it matches the directory of the first instance I said. This is the resukt:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    you can check on my site as well.

    Err, you can have more than one .htaccess file. One per directory even!

    Stop messing with your “main” one.

    Create the one in the wp-admin directory as the instructions above mention.

    the .htaccess file your quote refers to should be located in this directory “…/Wordpress/wp-admin/.htaccess”

    exactly. Don’t touch the other one. Create THAT one.

    AND additionally, what has been provided to you will NOT cause ANY error. So if you are seeing one, its a result of you not pasting properly.

    Thread Starter divineiniquity

    (@divineiniquity)

    ok I think I better start this all over again:

    Firstly (before anything happend here), I was unable to access the comments page in the admin panel. Furthermore I cannot moderate any of the new comments through moderation.php. That is the original problem.

    Your instructions was to create a .htaccess file in this directory:

    …Wordpress/wp-admin/.htaccess

    With the text:

    <IfModule mod_security.c>
    SecFilterInheritance Off
    </IfModule>

    This file exists in that location right now.

    Also I have another .htaccess file in this directory:

    …Wordpress/.htaccess

    With this text:

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

    With both of these .htaccess files in their approprite directories, I can no longer access the wp-admin at all, let alone moerate comments and such.

    At whooami: If I have pasted the text wrong for the first .htaccess file then tell me what’s wrong because the text I have entered is exactly what appears in this post.

    Right now this is not working…

    http://blog.divineiniquity.net you can take a look if you don’t believe me, try and click on “Site Admin”, you won’t be able to get into the login screen for the admin panel.

    At the moment I am getting this: (500 Internal Server Error)

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Thread Starter divineiniquity

    (@divineiniquity)

    Can someone please help me with this problem? It’s starting to get on my nerves.

    Try it again I can get your login just fine, although without any styling.

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘Lots of PHP Problems: Please help!!!’ is closed to new replies.