Home  >  Q&A  >  body text

How to Fix My WordPress Site Showing 500 Error

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粉511749537P粉511749537427 days ago481

reply all(1)I'll reply

  • P粉330232096

    P粉3302320962023-09-12 14:07:52

    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' );
    
    ?>

    reply
    0
  • Cancelreply