Тема вызывает проблему. Это debug.log :
Код: Выделить всё
PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "removeperth-headings-fonts" not found or invalid function name in /hp/bk/ac/cm/www/xxx/wp-includes/class-wp-hook.php:324
Stack trace:
#0 /hp/bk/ac/cm/www/xxx/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#1 /hp/bk/ac/cm/www/xxx/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#2 /hp/bk/ac/cm/www/xxx/wp-includes/script-loader.php(2299): do_action('wp_enqueue_scri...')
#3 /hp/bk/ac/cm/www/xxx/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts('')
#4 /hp/bk/ac/cm/www/xxx/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#5 /hp/bk/ac/cm/www/xxx/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /hp/bk/ac/cm/www/xxx/wp-includes/general-template.php(3192): do_action('wp_head')
#7 /hp/bk/ac/cm/www/xxx/wp-content/themes/perth/header.php(28): wp_head()
#8 /hp/bk/ac/cm/www/xxx/wp-includes/template.php(810): require_once('/hp/bk/ac/cm/ww...')
#9 /hp/bk/ac/cm/www/xxx/wp-includes/template.php(745): load_template('/hp/bk/ac/cm/ww...', true, Array)
#10 /hp/bk/ac/cm/www/xxx/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#11 /hp/bk/ac/cm/www/xxx/wp-content/themes/perth/page-templates/page_front-page.php(6): get_header()
#12 /hp/bk/ac/cm/www/xxx/wp-includes/template-loader.php(106): include('/hp/bk/ac/cm/ww...')
#13 /hp/bk/ac/cm/www/xxx/wp-blog-header.php(19): require_once('/hp/bk/ac/cm/ww...')
#14 /hp/bk/ac/cm/www/xxx/index.php(17): require('/hp/bk/ac/cm/ww...')
#15 {main}
thrown in /hp/bk/ac/cm/www/xxx/wp-includes/class-wp-hook.php on line 324
< /code>
Я понятия не имею, как его решить. Поэтому я искал удаление в ходе управления Код: Выделить всё
add_action('wp_print_styles', 'perth_deregister_styles', 100);
function perth_deregister_styles() {
wp_deregister_style( 'perth-headings-fonts' );
wp_deregister_style( 'perth-body-fonts' );
}
add_action('wp_enqueue_scripts', 'removeperth-headings-fonts');
add_action('wp_enqueue_scripts', 'removeperth-body-fonts');
add_action( 'wp_enqueue_scripts', 'perth_scripts' );
Подробнее здесь: https://stackoverflow.com/questions/797 ... my-wp-site
Мобильная версия