WordPress.org

Forums

[resolved] can't install plugins, themes or reinstall/up wordpress, get a 404 page instead. (24 posts)

  1. YacoRoca
    Member
    Posted 1 year ago #

    Hello, I've looked searched through the forums and found similar problems but have not found a solution to this.

    UPDATES
    I noticed today that if I try to fo to "Updates" in the Dashboard, I am taken to "mydomain.com/wp-admin/update-core.php", but a 404 page.

    PLUGINS
    I keep getting a 404 page when I try to view the plugins page (sometimes), and always when after uploading a plugin, or clicking on "featured, "Popular", "Newest", and "Favorites" in the Plugins page.

    THEMES
    Same happens when clicking on "Featured", "Newest", and "Recently Updated".

    Relevant info might be that I have a second WP install in a subdirectory, for a site I'm developing,which shows the same issues. However, up until yesterday, it was working just fine and I was able to install plugins and themes no problem.

    Any clues / suggestions will be much appreciated. Thank you!

  2. Hristo Pandjarov
    Member
    Posted 1 year ago #

    This looks like some sort of an .htaccess issue. Have you added any redirections or something like that recently?

  3. YacoRoca
    Member
    Posted 1 year ago #

    Thank you Hristo. I have not added any redirects. I copied the site to my server for redesign, using the duplicator plugin, and uninstalled several plugins, installed a new theme, and that's about it.

    I noticed in other similar forum entries that .htaccess was involved in those cases, if it is the cause here, how can I check?

  4. YacoRoca
    Member
    Posted 1 year ago #

    I'm checking on my htaccess file on the site installed in the subdirectory and I have a .htaccess file, and a .htaccess.original file.

    The original site only has the .htaccess

    I just ran a test: A site I have in another subdirectory was working just fine. I updated to WordPress 3.7 (it had not been updated in a few months) and now it too presents the same issues. Does this help?

  5. Wastabik
    Member
    Posted 1 year ago #

    Exactly the same problem here with me.
    Have you solved this?

  6. Wastabik
    Member
    Posted 1 year ago #

    Did this happen after upgrading to 3.7?

  7. YacoRoca
    Member
    Posted 1 year ago #

    Yup, I wasn't sure about the cause but after updating a different, fully-functioning site to 3.7, I ran into the same issue.

    Have not been able to solve it yet.

    Really troublesome since I need to finish some work on that site ASAP.

  8. Rachel Goldstein
    Member
    Posted 1 year ago #

    Same here - ever since updating to 3.7. All my plugins are de-activated. I haven't seen any solutions yet.

  9. Wastabik
    Member
    Posted 1 year ago #

    Where are your sites hosted at?

  10. Rachel Goldstein
    Member
    Posted 1 year ago #

    My client's site is on InMotion Hosting

  11. Wastabik
    Member
    Posted 1 year ago #

    When I reverted to 3.6.1, all the issues were gone. Did you try that?

  12. Rachel Goldstein
    Member
    Posted 1 year ago #

    No, I haven't yet. I'd rather wait and see if there is an update or a fix for 3.7, but it's not clear to me yet whether it's been acknowledged that there's an issue.

  13. YacoRoca
    Member
    Posted 1 year ago #

    I'm using InMotion Hosting as well Rachel. I wonder if that's the main cause?

  14. YacoRoca
    Member
    Posted 1 year ago #

    Ok, got it fixed, or rather, InMotion Tech Support did, my advice is to get in touch with them via tech support chat, Rachel. Wastabik, get in touch with your hosting provider and see if they can help with this as well.

    I had tried to revert via dashboard but could not because of the same issue, and did not want to do a manual reversion.

    Feedback from InMotion's Cory P. was this (only posting the most relevant bits):

    On Issue
    "your account was forcing PHP 5.2 and 3.7 has serious issues on PHP 5.2 "

    "That theme may not be optimized for PHP 5.3+ or WP 3.7+ "

    On Fix
    "If you look in the home directory, there is a .htaccess file that has a line dictating the PHP version in it which I have commented out. "

    On whether I should fix it myself should it happen again
    "It should be resolved now, but if it does happen, please contact us again. "

    Cory P.'s / Inmotion's support was very quick and spot on, highly recommended!

  15. Wastabik
    Member
    Posted 1 year ago #

    Can you paste your htaccess here? And also mention the line you commented out?

  16. YacoRoca
    Member
    Posted 1 year ago #

    Not sure which of the site's .htaccess he changed, I'm guessing it was the core site, (the domain with which the hosting was registered, which houses the other 2 sites presenting the issue). However, I am not sure exactly what he commented out by looking at this, as both lines dealing with php seem to be active, any ideas?

    RewriteEngine on
    (here was info info regarding other irrelevant)

    # 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>

    # END WordPress

  17. Rachel Goldstein
    Member
    Posted 1 year ago #

    Thanks, this is great, I'll get in touch with InMotion.

  18. Rachel Goldstein
    Member
    Posted 1 year ago #

    Worked like a charm - Just needed to comment out the line in the .htaccess file that was forcing PHP 5.2.

  19. YacoRoca
    Member
    Posted 1 year ago #

    Yup. Rachel, were you able to identify exactly which line is that? I'm just curious, since the issue has already been fixed.

  20. Rachel Goldstein
    Member
    Posted 1 year ago #

    Sorry, I'm not sure - the Tech Support person at InMotion Hosting did it on their end.

  21. jriemerm
    Member
    Posted 1 year ago #

    Just talked to InMotion and fixed the problem. It's the .htaccess at the server root level, not /public_html/ but /

    These are the lines:

    # Use PHP52 as default
    #AddHandler application/x-httpd-php52 .php

    Just commented out the second line. Solved the problem immediately

  22. mpoulter
    Member
    Posted 1 year ago #

    I am getting the same 404 error. I searched ALL of the htaccess files I could find. I could not locate any reference to php52. Really not sure what to do or what kicked this error off. Not sure what to do next. Downgrade WordPress?

  23. MagicPlants
    Member
    Posted 1 year ago #

    SOLUTION

    Edit the .htaccess file in your ROOT (/) not WordPress folder (/public_html/) to force PHP 5.5 instead of 5.2

    CHANGE:

    # Use PHP52 as default
    AddHandler application/x-httpd-php52 .php

    TO:

    # Use PHP52 as default
    AddHandler application/x-httpd-php55 .php

    FINAL ANSWER! (;

  24. Pioneer Web Design
    Member
    Posted 1 year ago #

    Cross posting (asking another to post here and to then have a reply ) is not appropriate here) OR:

    Please post your own topic.

Topic Closed

This topic has been closed to new replies.

About this Topic