• I tried to install a plugin then the website broke and I got “There has been a critical error on your website.”
    .
    .
    I tried to fix this by going to wp-config.php and changing the define( ‘WP_DEBUG’, true ); to define( ‘WP_DEBUG’, true );
    .
    .
    then I got
    .
    .
    Cannot redeclare wp_unregister_GLOBALS() (previously declared in /home/vol9_7/epizy.com/epiz_26404180/htdocs/wp-includes/load.php:30) in /home/vol9_7/epizy.com/epiz_26404180/htdocs/wp-includes/deprecated.php on line 4019
    .
    .
    .
    the line says
    .
    .
    function wp_unregister_GLOBALS() { // phpcs:ignore WordPress.Naming Conventions.Valid FunctionName.FunctionName Invalid // register_globals was deprecated in PHP 5.3 and removed entirely in PHP 5.4. _deprecated_function( __FUNCTION__, ‘5.5.0’ );

    • This topic was modified 5 years, 10 months ago by yubaba277.

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

Viewing 3 replies - 1 through 3 (of 3 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).

    @macmanx
    Hi James,

    I have got the same error as OP but I am unable to manually reset my plugins thru the SFTP or database (with phpmyadmin).

    When I try to deactivate my plugins the website still states:
    “Fatal error: Cannot redeclare wp_unregister_GLOBALS() (previously declared in /mnt/env/iwtnl/development/public_html/wp-includes/load.php:31) in /mnt/env/iwtnl/development/public_html/wp-includes/deprecated.php on line 4021
    There has been a critical error on your website.”

    I have tried multiple names for the plugins folder like:
    – plugins.deactivate
    – plugins.old
    – plugins_old

    But none of them have worked.
    Can you help me finding the solution to this problem?

    Thanks in Advance,
    James

    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.

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

The topic ‘wp_unregister_GLOBALS()’ is closed to new replies.