• When I log in to the network administrator dashboard, the following message appears:
    There has been a critical error on your website. Please check your site administration email inbox for instructions.
    – domain.com/wp-admin/network/ < = critical error
    – domain.com/wp-admin/ < = critical error

    I activate debugging mode via FTP in the wp-config file and the following errors appear:
    ————————————————————

    Fatal error: Uncaught Error: Call to undefined function wp_version_check() in /home/folder/public_html/wp-includes/update.php:742 Stack trace:
    #0 /home/folder/public_html/wp-includes/class-wp-hook.php(287): _maybe_update_core(”)
    #1 /home/folder/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(true, Array)
    #2 /home/folder/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /home/folder/public_html/wp-admin/admin.php(170): do_action(‘admin_init’)
    #4 /home/folder/public_html/wp-admin/index.php(10): require_once(‘/home/folder/…’)
    #5 {main} thrown in /home/folder/public_html/wp-includes/update.php on line 742

    ————————————————————
    This error did not harm anything on the front end of the sites (They are working fine).

    When I log in to the dashboard of the other sites on the network, they work fine.
    – domain.com/site1/wp-admin/ < = Ok
    – domain.com/site2/wp-admin/ < = Ok
    – domain.com/site3/wp-admin/ < = Ok

    Actions I have taken:
    – Review and change the .htaccess file (It has configured the www redirects and SSL. It has been verified in other installations)
    – Disable plugins
    – Update the wp-admin and wp-includes folders
    – Disable the Cache plugin (W3TCache and Delete the configuration in .htaccess)
    – Increase the Memory Limit, increased to ‘1024M’ (in the wp-config file)
    – I have checked the user permissions on the files, inside the cPanel.
    All this I have checked and the error still persists.

    I would like to understand and know why the errors were generated, and it only affects the network administrator, and the other sites on the network can be accessed normally.

    Additional Information:
    – WordPress: 5.4.2
    – Multisite: Sub-directory
    – Theme: Divi 4.4.8
    – Google server (not shared), PHP7 (Updated more than a month ago)

    Regards and thanks beforehand!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    You only have the issue with the network login because that’s the only time WP checks for updates. Only the network admin should be able to apply updates. On at least v5.4.2, (v5.5 just came out) the function wp_version_check() is declared right on /wp-includes/update.php (starting line 24) so it’s difficult to imagine how it could be undefined by the time line 742 executes on the same file. All I can think of is there’s an issue with the file, but you say you updated all the files in the folder.

    Try getting a fresh download of WP. Be sure to get v5.4.2 from the prior releases page. Extract the files and upload a pristine version of /wp-includes/update.php to your server. Be sure all caches are cleared, both on the server (if any) and your browser.

    Thread Starter creativemoments

    (@creativemoments)

    bcworkz, Thank you very much.
    Problem solved, I changed the update.php file and I can now enter the network wp-admin

    Thread Starter creativemoments

    (@creativemoments)

    The site had been fixed yesterday (that’s why we closed the case / topic in this forum); but then we upgraded to WordPress.org 5.5 and then after several hours it returned an error. We have already changed the wp-admin and wp-includes folders, but the error continues (with WordPress.org 5.5).

    The current error information is this:

    Fatal error: Uncaught Error: Call to undefined function create_initial_taxonomies() in /home/folder/public_html/wp-settings.php:361 Stack trace:
    #0 /home/folder/public_html/wp-config.php(98): require_once()
    #1 /home/folder/public_html/wp-load.php(37): require_once('/home/folder/...')
    #2 /home/folder/public_html/wp-admin/admin.php(34): require_once('/home/folder/...')
    #3 /home/folder/public_html/wp-admin/index.php(10): require_once('/home/folder/...')
    #4 {main} thrown in /home/folder/public_html/wp-settings.php on line 361
    Moderator bcworkz

    (@bcworkz)

    Well, that’s strange — again. You say you replaced the includes and admin folders. What about all the wp-*.php (excluding wp-config.php but include xmlrpc.php) files in public_html? Double check that all the file and folder permissions are correct (usually 644 files and 755 folders, YMMV).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical error when accessing “network administrator” in WordPress Multisite’ is closed to new replies.