• Resolved dshekhawat_88

    (@dshekhawat_88)


    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 to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    Try manually resetting your plugins (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, 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

    (@dshekhawat_88)

    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 4 years, 7 months ago by dshekhawat_88.
    Moderator James Huff

    (@macmanx)

    Try downloading WordPress again, access your server via SFTP or FTP, 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

    (@dshekhawat_88)

    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

    (@macmanx)

    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

    (@dshekhawat_88)

    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

    (@dshekhawat_88)

    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.