My site is giving a 500 error and I've been trying various ways to fix it. First, I'm trying to reset permalinks, but the options-permalink.php page is totally BLANK. Unlike all the other solutions I've found, the whole page is blank, it's NOT a WP admin sidebar showing with blank content. Is there another way I can reset the permalinks without going through the admin interface? Or another solution?
I've checked the .htaccess file and it seems fine, I've renamed it which didn't solve this, and I've even replaced it with the standard WP one. I've checked file permissions too and they seem fine.
If anyone has encountered this and could help me I'd appreciate it.
Edit: I've downloaded a clone of my site using Duplicator. I installed it on my localhost using MAMP. It worked out the box, no issues. I then deleted the original on my remote host, including the database, and then installed the same clone. I still get the 500 error. This would suggest it's not a database error.
wp-config.php
add the linedefine( 'WP_DEBUG', true);
, or make sure it's set totrue
if it's already defined and set tofalse
. Then, you candefine( 'WP_DEBUG_DISPLAY', true );
to show errors anddefine( 'WP_DEBUG_LOG', true );
will create a file calledwp-content/debug.log
that will log errors. I would start debugging like that to find out what's going on.500
error is just Apache/Nginx's was of saying something bad happened in PHP, don't know what it is, look at the PHP error logs for the actual errorwp-config.php
before‘That’s all, stop editing! Happy blogging.’
define( 'WP_MEMORY_LIMIT', '256M' );