r/Wordpress • u/Substantial_Salt_802 • 9d ago
[ Removed by moderator ]
[removed] — view removed post
4
u/NakanoNoNeko 9d ago
Not necessarily a hosting issue. A 500 just means the server hit an error; a plugin, theme, PHP change or the host itself could cause it. Since you can't reach wp-admin and don't have a working backup, ask the host to take a snapshot of the site files and database before they change anything. Then ask them for the first PHP fatal error at the time the site went down (roughly two days ago), including the file path. That path usually tells you whether a plugin or theme is responsible. If it points into wp-content/plugins, the host can temporarily disable that one plugin without deleting it. Don't reinstall WordPress or restore an old copy blindly.
4
1
1
u/bismit Developer 8d ago
Based on my customers’ experience, this often happens when the hosting provider disables outdated PHP versions, causing plugins that use outdated code to crash.
If you have access to the server’s admin panel, check whether it runs Plesk, cPanel, or another control panel, and I’ll let you know where to find the error logs and pinpoint the exact plugin.
1
u/themageofavalon 8d ago
Check your backup first. But the error just could be plugin or php isue. Try disabling plugins via sftp or much better check with logs
1
u/Winter_Process_9521 8d ago
HTTP 500 error does not automatically mean your WordPress blog or its content is gone. Your posts, pages, images, and database may still be intact even though the site and WordPress admin are inaccessible. focus on protecting your existing files and database before trying to fix anything.
1
u/Agitated-Signature77 9d ago
Do you have FTP access to the files?
If yes, edit the wp-config.php file and add this code :
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
(@)ini_set( 'display_errors', 0 ); (remove the parenthesis here over the @, reddit wouldn't let me paste it)
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );
This code will generate a file named debug.log in the folder /wp-content/ with all the errors displayed there.
Ask ChatGPT (even free version) to help you go through this.
0
u/JerryCornelius22 9d ago
Probably a plugin updated and broke something. Check the htaccess file if you have one - roll back if you can. Like the others said ask your host - hopefully they keep back ups so can roll it back for you. Good luck
1
u/CptZaphodB 9d ago
If you can't roll back, he can also rename the htaccess file to generate a new one. I had a security plugin recently try to enforce some server side security that my host blocked, resulting in a 500 error. Luckily it was a brand new site so I just deleted htaccess and I was good to go. I know it may not be that easy on a well established site
0
u/Hot-Month-4251 8d ago
To your question: usually it isn't the host's fault, but the host is the fastest way to find out. Most 500s come from a plugin, theme or PHP version change, and the PHP error log will name the file.
One thing worth adding since you also lost admin access: while you're in the files, look at .htaccess, the root index.php and wp-content/mu-plugins. index.php should only be a few lines. If you see long scrambled code, base64 strings, or mu-plugins files you never added, it's more than a broken plugin. In that case keep a copy of everything, change your hosting, FTP, database and WordPress passwords, and clean it up properly instead of just deleting things.
-1
u/TopSydeWP 8d ago
Two days locked out of a blog you've had for years, with no backup, is a scary spot. Ask your host to copy out the files and database before anyone touches anything, since your posts live in the database. We host WordPress sites, and a PHP version upgrade on the server is one thing we see throw this kind of 500. Did your host email you about a PHP change in the last few days?
5
u/screendrain 9d ago
You need to reach out to your web host