Title: Site Down Showing only Code
Last modified: May 4, 2020

---

# Site Down Showing only Code

 *  Resolved [dshekhawat_88](https://wordpress.org/support/users/dshekhawat_88/)
 * (@dshekhawat_88)
 * [6 years ago](https://wordpress.org/support/topic/site-down-showing-only-code/)
 * Hello Experts,
 * Please help me, my couple of websites is down and all with the same error.
 * The website is showing PHP code and nothing else. This is a part of the code 
   being displayed on the home page.
 * `/** * GeneratePress child theme functions and definitions. * * Add your custom
   PHP in this file. * Only edit this file if you have direct access to it on your
   server (to fix errors if they happen). */ function generatepress_child_enqueue_scripts()`
 * Also the error I see in the log file is:
 *     ```
       PHP Fatal error:  require(): Failed opening required '/home/dotnejih/public_html/rpafeed.com/wp-includes/functions.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/dotnejih/public_html/rpafeed.com/wp-settings.php on line 113
   
       PHP Fatal error:  require_once(): Failed opening required '/home/dotnejih/public_html/rpafeed.com/wp-includes/functions.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/dotnejih/public_html/rpafeed.com/wp-includes/class-wp-fatal-error-handler.php on line 171
       ```
   
 * Please help!! I am facing this issue with all the websites on my hosting.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsite-down-showing-only-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 years ago](https://wordpress.org/support/topic/site-down-showing-only-code/#post-12780279)
 * Try [manually resetting your plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, access your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel (consult your hosting
   provider’s documentation for specifics on these), navigate to /wp-content/themes/
   and rename the directory of your currently active theme. This will force the 
   default theme to activate and hopefully rule-out a theme-specific issue (theme
   functions can interfere like plugins).
 *  Thread Starter [dshekhawat_88](https://wordpress.org/support/users/dshekhawat_88/)
 * (@dshekhawat_88)
 * [6 years ago](https://wordpress.org/support/topic/site-down-showing-only-code/#post-12781808)
 * Hey James(@macmanx),
 * I already tried the steps you have mentioned but it’s not working. I did rename
   the plugins folder and also tried renaming the current theme folder but the site
   is not loading.
 * Everything was working fine till yesterday, all of a sudden not sure why this
   happened to all the websites hosted with my shared hosting.
 * When I try to reset it to the default theme, I get the below error and no email.
 * `There has been a critical error on your website. Please check your site admin
   email inbox for instructions.`
 * Please help me, I had invested a lot of months in getting these sites up and 
   running 🙁
 * I appreciate your help!
    -  This reply was modified 6 years ago by [dshekhawat_88](https://wordpress.org/support/users/dshekhawat_88/).
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 years ago](https://wordpress.org/support/topic/site-down-showing-only-code/#post-12782341)
 * Try [downloading WordPress](https://wordpress.org/download/) again, access your
   server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   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.
 * Some uploaders tend to be unreliable when overwriting files, so don’t forget 
   to delete the original files before replacing them.
 *  Thread Starter [dshekhawat_88](https://wordpress.org/support/users/dshekhawat_88/)
 * (@dshekhawat_88)
 * [6 years ago](https://wordpress.org/support/topic/site-down-showing-only-code/#post-12782406)
 * Doing so, Will I be able to still get the site up on my existing theme and settings?
 * I have configured my site using elementor and essential plugins. So don’t want
   to lose my layout and appearance of the site along with the data.
 * Thanks!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 years ago](https://wordpress.org/support/topic/site-down-showing-only-code/#post-12782425)
 * If you follow the instructions exactly as stated, “This will effectively replace
   all of your core files without damaging your content and settings.“
 *  Thread Starter [dshekhawat_88](https://wordpress.org/support/users/dshekhawat_88/)
 * (@dshekhawat_88)
 * [6 years ago](https://wordpress.org/support/topic/site-down-showing-only-code/#post-12783409)
 * I followed the given instruction and able to access the site with the Twenty 
   Twenty theme. However not able to switch back to my previous theme.
 * Whenever I am trying to activate another theme it is giving me the same error
   again.
 *  Thread Starter [dshekhawat_88](https://wordpress.org/support/users/dshekhawat_88/)
 * (@dshekhawat_88)
 * [6 years ago](https://wordpress.org/support/topic/site-down-showing-only-code/#post-12783648)
 * I have deleted all the existing themes expect Twenty Twenty and then re-installed
   new theme and the site started working.
 * Had to work on the sidebar again though. But happy to get my site up.
 * Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Site Down Showing only Code’ is closed to new replies.

## Tags

 * [site down](https://wordpress.org/support/topic-tag/site-down/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [dshekhawat_88](https://wordpress.org/support/users/dshekhawat_88/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/site-down-showing-only-code/#post-12783648)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
