Biała strona po aktualizacjach
-
Kilka dni temu robiłam aktualizacje pluginów na stronie http://www.wakcji.org (bardzo muliła przy ładowaniu, czasem po kilkukrotnym odświeżeniu ładowała treści) z myślą, że trochę to pomoże w pracy, ale oczywiście musiało się stać odwrotnie.
Teraz wyświetla mi się już tylko i wyłącznie biała strona. Wyłączenie zaktualizowanych dodatków nie pomaga. Prześledziłam już to co było na forum i włączyłam debugowanie. Oto co się teraz wyświetla na www:Warning: include(/home/wakcji.org/www/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /home/wakcji.org/www/wp-settings.php on line 58 Warning: include(): Failed opening '/home/wakcji.org/www/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/wakcji.org/www/wp-settings.php on line 58 Warning: Illegal offset type in /home/wakcji.org/www/wp-includes/theme.php on line 1397 Fatal error: Call to undefined function types_render_field() in /home/wakcji.org/www/wp-content/themes/wakcji.org/features/excerpt.php on line 9
oraz zawartość pliku excerpt
<?php// Removing default
remove_filter('get_the_excerpt', 'wp_trim_excerpt');// Replacing
add_filter('get_the_excerpt', function(){$intro = types_render_field('intro');
// Copy-paste from original filter
$intro = apply_filters('the_content', $intro);
$intro = str_replace(']]>', ']]>', $intro);
$excerpt_length = apply_filters('excerpt_length', 55);
$excerpt_more = apply_filters('excerpt_more', ' ' . '[…]');
$intro = wp_trim_words( $intro, $excerpt_length, $excerpt_more );return wp_trim_excerpt($intro);
});
// Length
add_filter('excerpt_length', function($length) {
return 15;
});Czy macie może jakieś pomysły? Proszę o pomoc.
- Temat ‘Biała strona po aktualizacjach’ jest zamknięty na nowe odpowiedzi.