Title: critical error Website
Last modified: October 13, 2020

---

# critical error Website

 *  Resolved [fkatsma](https://wordpress.org/support/users/fkatsma/)
 * (@fkatsma)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/critical-error-website/)
 * Hello,
 * After yesterday our website is not reachable and i cannot login to the dashboard
   of wordpress anymore.
 * the follow error appeared when i turn on Debug-mode in wp-config.php:
    ——— Fatal
   error: Namespace declaration statement has to be the very first statement or 
   after any declare call in the script in /var/www/clients/client21293/web19635/
   web/wp-includes/sodium_compat/lib/sodium_compat.php on line 2 Er heeft zich een
   kritische fout voorgedaan op je site.
 * Meer informatie over probleemoplossing in WordPress.
    ——- Does somebody recognized
   this error and can somebody help me to tell what i have to do?
 * Greetings, Femke
    -  This topic was modified 5 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-website%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/critical-error-website/#post-13530776)
 * 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 [fkatsma](https://wordpress.org/support/users/fkatsma/)
 * (@fkatsma)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/critical-error-website/#post-13532235)
 * Thanks James for you answer,
 * I have changed my plugin map and the currently active theme map, but it does 
   not work.
 * when i change the plugin map this error appers:
    fatal error: Namespace declaration
   statement has to be the very first statement or after any declare call in the
   script in /var/www/clients/client21293/web19635/web/wp-includes/sodium_compat/
   lib/sodium_compat.php on line 2
 * without the disabled plugin/theme map only this appears:
    Er heeft zich een kritische
   fout voorgedaan op je site.
 * Meer informatie over probleemoplossing in WordPress.
    -  This reply was modified 5 years, 8 months ago by [fkatsma](https://wordpress.org/support/users/fkatsma/).
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/critical-error-website/#post-13534969)
 * 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.
 *  [richard245](https://wordpress.org/support/users/richard245/)
 * (@richard245)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/critical-error-website/#post-13541111)
 * did you solve?
 *  Thread Starter [fkatsma](https://wordpress.org/support/users/fkatsma/)
 * (@fkatsma)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/critical-error-website/#post-13541939)
 * Hello,
 * Today i copied the wordpress files back to the hosting server, and i could login
   with wp-admin. after that, i activate again the enfold theme and after that the
   website worked again.
 * Thanks for the tip and solution,
 * Greetings Femke

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

The topic ‘critical error Website’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [fkatsma](https://wordpress.org/support/users/fkatsma/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/critical-error-website/#post-13541939)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
