How to Fix My WordPress Site Showing 500 Error
P粉511749537
P粉511749537 2023-09-11 15:07:15
0
1
543

My WP website esawang.com shows error 500. And I can't log into the backend, I can only access it through the file manager. I also noticed that the wp-config.php file was empty. I really can't say what caused it.

I have tried different ways to solve this problem but still no solution. I've disabled all the plugins one by one, disabled the theme, and uploaded new WP folders (wp-admin and wp-includes) to overwrite the old ones, but it still doesn't work.

The following is the latest error message in error.log

Stack trace:
#0 /home2/esawang/public_html/index.php(17): require()
#1 {main}
  thrown in /home2/esawang/public_html/wp-blog-header.php on line 16

how to solve this problem?

P粉511749537
P粉511749537

reply all(1)
P粉330232096

Go to this file

/home2/esawang/public_html/wp-blog-header.php

Such changes

<?php

define('WP_USE_THEMES', true);
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

?>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template