• I have removed lines from my htaccess file until I found this one is causing a 500 error.

    ExpiresByType default “access plus 3 hours”

    When I try to save my permalinks, the lines are added to my htaccess file and then I get 404 errors on pages.

    Everything works fine without that line. Is it necessary?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter pressmaster

    (@longshotisland)

    Great point.

    I had just upgraded to the newest WordPress 4.9.8 when the problems started.

    Whenever I try to save my permalinks, it adds a line to the htaccess file that just doesn’t work. If I take that line out (ExpiresByType default “access plus 3 hours”), I have a fully functioning website. But I can’t updated my permalinks on the dashboard by clicking on save, because it adds that line back in again.

    None of my error logs are showing anything new. I have access to “error_log” and to “php_errors.log”, but nothing has changed in them. “mail.log” looks fine. I’ve tried different themes, plugins and widgets. I run 5 WordPress sites and have upgraded all of them and only one has this problem.

    I did the upgrade via Mojo Marketplace. The Mojo plugin is terrible, by the way. Nobody can post comments on my site when it’s active, so I never use it. I’m a big fan of Jetpack and all they have to offer.

    The WordPress app on my phone crashes a lot when I click on stats. I sometimes wonder if 5 WordPress sites is too many for my host…

    • This reply was modified 6 years, 3 months ago by pressmaster.
    • This reply was modified 6 years, 3 months ago by pressmaster.
    • This reply was modified 6 years, 3 months ago by pressmaster.
    Moderator t-p

    (@t-p)

    In case the upgrade did not complete, try MANUALLY updating. Download WordPress again and unzip it. Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Please read the Manual Update directions first.

    Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. You can never have enough backups!

    Thread Starter pressmaster

    (@longshotisland)

    It gets even more curious now. I just upgraded to 5.0, no problem with upgrade, and now if I even just click on “permalinks” it crashes my site. Before, I had to save the new permalink settings to crash the site. Out of the frying pan and into the fire.

    Like I mentioned, I run 5 sites and they all use the same basic plugins. But all 5 htaccess files are different. It’s the line: ExpiresByType default “access plus 3 hours”, that crashes the site. Looking more specifically at why that line causes problems should lead to solutions.

    I mean, it’s kind of lame that I can’t even access the Permalinks panel any more. Site is 2 years old with close to 50,000 visits, so I don’t want to shut it down.

    • This reply was modified 6 years, 3 months ago by pressmaster.
    Moderator t-p

    (@t-p)

    Whenever I try to save my permalinks, it adds a line to the htaccess file that just doesn’t work.

    That line most probably added by one of your plugins.

    If I take that line out (ExpiresByType default “access plus 3 hours”)

    That may be the solution.

    Thread Starter pressmaster

    (@longshotisland)

    When I click on “Permalinks” it adds the line back into my htaccess file.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Updated Error 500’ is closed to new replies.