• Hi all,

    I’m using WordPress with NameCheap’s EasyWP. The problem I’m facing:

    • error 404 on the website
    • an error 500 when I try to access the admin page
    • no longer able to SFTP into the backend of the site

    I was making some changes to the website code (i know that’s super bad practice, but it was supposed to be a small change and i regret it 🙁 ). I had a syntax error that led to a fatal error.

    I tried many things to fix that fatal error screen:

    • renamed plugin folder (created an empty string error so i reverted)
    • renamed folder containing my active theme (nothing happened)
    • fixed the syntax error / restored to a previous version of the file (nothing happened)
    • deleted the file with the error as it was non-essential (nothing happened)
    • manually downloaded WordPress and copied over all the files (nothing happened)
    • deleted chrome’s cache and hard reloaded (nothing happened)
    • deleted folder with my active theme (nothing happened)
    • a friend on another laptop tried out the site too and it was a no go
    • finally, restored a backup from EasyWP (404/500 screens came up, not able to SFTP in)
    • Please help as I’m really not sure where to go for help on this. Thank you!

    • This topic was modified 5 years, 9 months ago by kay00000.
    • This topic was modified 5 years, 9 months ago by kay00000.
Viewing 2 replies - 1 through 2 (of 2 total)
  • @kay00000

    Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, 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, try switching to the default theme for your version of WordPress to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, 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.

    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your SFTP or FTP client to view invisible files.

    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    404 – The reasons behind this error can vary between bad redirects (caused by the installed redirection plugins), WordPress Permalink glitches or .htaccess issues, and file permission issues.

    You can try to re-save the Permalinks, check the Redirection plugins.

    If all else fails, for both error messages, I recommend that you reach out to your host. Errors such as 500 are being recorded in the server error logs. That could also help debug the issue

    Thread Starter kay00000

    (@kay00000)

    Hi, thanks for the response.

    I’ve tried everything you’ve suggested except the htaccess one. I don’t have a .htaccess file even when I viewed all hidden files (I’m using WinSCP). I created one from a sample I found online but it doesn’t work.

    Just an update, the restore I tried yesterday has brought the site back to the fatal error screen from before. The changes you’ve suggested still don’t work however.

    For reference, this is the error being displayed:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function add_action(), 1 passed in /var/www/wptbox/wp-content/themes/bia_theme_25May2020/functions.php on line 10 and at least 2 expected in /var/www/wptbox/wp-includes/plugin.php:403 Stack trace: #0 /var/www/wptbox/wp-content/themes/bia_theme_25May2020/functions.php(10): add_action(‘wpb_adding_scri…’) #1 /var/www/wptbox/wp-settings.php(508): include(‘/var/www/wptbox…’) #2 /var/www/wptbox/wp-config.php(73): require_once(‘/var/www/wptbox…’) #3 /var/www/wptbox/wp-load.php(37): require_once(‘/var/www/wptbox…’) #4 /var/www/wptbox/wp-blog-header.php(13): require_once(‘/var/www/wptbox…’) #5 /var/www/wptbox/index.php(17): require(‘/var/www/wptbox…’) #6 {main} thrown in /var/www/wptbox/wp-includes/plugin.php on line 403
    There has been a critical error on your website.

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

The topic ‘Website Hanging – Error 404 and 500 on Admin Page’ is closed to new replies.