This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
If you can install plugins, install “Health Check”: https://wordpress.org/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time.
See http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
Joy
(@joyously)
Look first for a plugin or theme with a name that has initials of hc.
I added this content as below in the file ./wp_includes/functions.php
##
function hc_cdn_callback($buffer) {
return str_replace(‘ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css?ver=5.4.2’, ‘cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.css’, $buffer);
}
function hc_buffer_start() {
ob_start(“hc_cdn_callback”);
}
function izt_buffer_end() {
ob_end_flush();
}
add_action(‘init’, ‘hc_buffer_start’);
add_action(‘shutdown’, ‘hc_buffer_end’);
##
That is to replace the google link to another link. It’s resolved by deleting the last line.
Joy
(@joyously)
That’s a crazy way to change a link. It’s because your function is named izt_buffer_end instead of hc_buffere_end.
You really should be using the versions of jquery that come bundled with WordPress, because of having two versions loaded and them having conflicts.
I modifed hc_buffere_end to izt_buffer_end, it worked. Thank you.
You know it’s not easy to use google service from China.