• Resolved fkatsma

    (@fkatsma)


    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

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 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 fkatsma

    (@fkatsma)

    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, 7 months ago by fkatsma.
    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.

    did you solve?

    Thread Starter fkatsma

    (@fkatsma)

    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.