• Hello all.

    I have Recently Upgraded My WordPress Install to 3.2.1

    I am having an issue, where if i try to do some actions in the dashboard i get a 404 page can not be found error.

    The first time i noticed it was while inserting photos into my post, i clicked on the gallery tab.

    I disabled all my plugins, and changed my theme to the Default theme.

    I then got the error while trying to delete a plugin. The only thing i have noticed, while doing the actions, it seems to strip my domain out. The address bar shows “https://wp-admin/plugins.php?action=delete-selected&checked%5B0%5D=hello.php&plugin_status=inactive&paged=1&s&_wpnonce=7dbcb5b883”

    when clearly it should have my domain name https://www.thecrazysteve.com between the https:// and the /wp-admin/

    I can still log into the dashboard and navigate around without problems.

    i did try reinstalling the 3.2.1 update just to see if that would fix it, but it did not.

    any suggestions would be great.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    Try:
    – updating your permalinks by choosing the default permalink structure or re-saving your current structure at Settings > Permalinks in your admin panel. WordPress will rebuild the .htaccess file. If WordPress cannot automatically edit the .htaccess file, it will provide manual instructions after saving.

    – Do a manual upgrade by using FTP or whatever file management application your host provides.

    Thread Starter crazysteve5575

    (@crazysteve5575)

    changed the Permalink Structure, no error, but did not help.

    Followed the guide for manual upgrade. this did not help either.

    Moderator keesiemeijer

    (@keesiemeijer)

    Try putting WordPress in debug mode: https://codex.www.ads-software.com/Editing_wp-config.php#Debug . And See what errors are displayed.

    Check if the permissions are correct on files and folders: https://codex.www.ads-software.com/Changing_File_Permissions

    try:
    – renaming or deleting the .htaccess file by using FTP or whatever file management application your host provides. If you delete it make a backup first.

    Are you using any cache plugins?

    Thread Starter crazysteve5575

    (@crazysteve5575)

    ok i turned on debugging, and right on the main page of the dashboard i see this

    Warning: include(/homepages/7/d373872834/htdocs/thecrazysteve/wp-content/advanced-cache.php) [function.include]: failed to open stream: No such file or directory in /homepages/7/d373872834/htdocs/thecrazysteve/wp-settings.php on line 62
    
    Warning: include() [function.include]: Failed opening '/homepages/7/d373872834/htdocs/thecrazysteve/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/lib/php5') in /homepages/7/d373872834/htdocs/thecrazysteve/wp-settings.php on line 62

    To my knowledge ive not used caching. im not familiar with what this is. Is cashing built into wordpress?

    I looked and i dont have advanced-cache.php in that folder.

    Moderator keesiemeijer

    (@keesiemeijer)

    From the Warnings I think you have a cache plugin activated (wp-content/advanced-cache.php). Look under Plugins > Installed Plugins and try to deactivate it.

    Thread Starter crazysteve5575

    (@crazysteve5575)

    Help
    Screen Options

    Plugins

    All (12) |
    Inactive (12) |
    Recently Active (7)

    I dont have any cache plugins installed, and i dont have any plugins activated.

    Moderator keesiemeijer

    (@keesiemeijer)

    If you still have the same warnings try:

    – changing the permissions on the wp-content directory to 766. If you still have problems, try 767, 775 or 777. Change it back to 755 if this solves the problem.

    https://codex.www.ads-software.com/Changing_File_Permissions

    Thread Starter crazysteve5575

    (@crazysteve5575)

    That did not work either. It may be related to this https://www.ads-software.com/extend/plugins/wp-super-cache/faq/

    ill dig through and check it out. I vaguely remember installing this a long time ago. Im not really sure why the references are there. or why this is all of a sudden an issue.

    Moderator keesiemeijer

    (@keesiemeijer)

    Thread Starter crazysteve5575

    (@crazysteve5575)

    Ok i followed those instructions, and i deleted the rogue entrys for this plugin.

    I no longer get cache errors, but i am still getting the 404 errors.

    The thing that is weird is it seams like certain pages open up, completely missing the domain name.

    Thread Starter crazysteve5575

    (@crazysteve5575)

    i have 2 blogs, i went to delete a plugin on both. Looking at the source of that page.

    the site that’s not working has an extra “/”
    Broken Site
    <input type="hidden" id="_wpnonce" name="_wpnonce" value="7dbcb5b883" /><input type="hidden" name="_wp_http_referer" value="//wp-admin/plugins.php?action=delete-selected&checked%5B0%5D=hello.php&plugin_status=inactive&paged=1&s&_wpnonce=7dbcb5b883" /> <input type="submit" name="submit" id="submit" class="button" value="Yes, Delete these files" />
    Working Site
    <input type="hidden" name="_wp_http_referer" value="/wp-admin/plugins.php?action=delete-selected&checked%5B0%5D=wordbook%2Fwordbook.php&plugin_status=inactive&paged=1&s&_wpnonce=302407f8fa" /> <input type="submit" name="submit" id="submit" class="button" value="Yes, Delete these files" />

    Where would that extra “/” come from before /wp-admin/ and how can i get rid of it?

    i also notice the extra “/” when im in the dashboard.

    Moderator keesiemeijer

    (@keesiemeijer)

    Look under Settings > General if the “WordPress address (URL)” or the “Site address (URL)” have a trailing slash.

    Thread Starter crazysteve5575

    (@crazysteve5575)

    it does, but its grayed out, and i cant change it.

    Moderator keesiemeijer

    (@keesiemeijer)

    Look in your wp-config.php for these lines:

    define('WP_HOME','https://www.thecrazysteve.com/');
    define('WP_SITEURL','https://www.thecrazysteve.com/');

    Change them to without a trailing slash or remove these lines from your wp-config.php and change the urls under Settings > General.

    Thread Starter crazysteve5575

    (@crazysteve5575)

    That was the ticket!

    Thanks for your help i removed the / at the end of both of those lines and it seems to be working fine now

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Getting 404 errors when trying to do some Admin Task’ is closed to new replies.