Hi,
WP 6.4.2, Newspaper 12.6.2, PHP 8.2
in the footer of every post a receive this error:
Warning: require(/home/customer/www/telodoioildungeon.it/public_html/wp-content/themes/Newspaper-child): Failed to open stream: No such file or directory in /home/customer/www/telodoioildungeon.it/public_html/wp-includes/comment-template.php on line 1618
Fatal error: Uncaught Error: Failed opening required ‘/home/customer/www/telodoioildungeon.it/public_html/wp-content/themes/Newspaper-child/’ (include_path=’.:/usr/local/php82/pear’) in /home/customer/www/telodoioildungeon.it/public_html/wp-includes/comment-template.php:1618 Stack trace: #0 /home/customer/www/telodoioildungeon.it/public_html/wp-content/plugins/td-standard-pack/Newspaper/parts/single/single_template_5.php(29): comments_template(‘/comments.php’, true) #1 /home/customer/www/telodoioildungeon.it/public_html/wp-includes/template-loader.php(106): include(‘/home/customer/…’) #2 /home/customer/www/telodoioildungeon.it/public_html/wp-blog-header.php(19): require_once(‘/home/customer/…’) #3 /home/customer/www/telodoioildungeon.it/public_html/index.php(17): require(‘/home/customer/…’) #4 {main} thrown in /home/customer/www/telodoioildungeon.it/public_html/wp-includes/comment-template.php on line 1618
I disabled comments on the entire website by commenting out the code in the single_template_5.php file.
However, this is a temporary solution
This is your child theme function
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 11);
function theme_enqueue_styles() {
wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', TD_THEME_VERSION, 'all' );
wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), TD_THEME_VERSION . 'c', 'all' );
}
This is mine
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 11);
function theme_enqueue_styles() {
wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', TD_THEME_VERSION, 'all' );
wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), TD_THEME_VERSION . 'c', 'all' );
}
// Preload Newspaper fonts for responsive theme (main theme)
function dns_prefetch_responsive() {
echo "<link href='https://www.telodoioildungeon.it/wp-content/themes/Newspaper/images/icons/newspaper.woff?21' rel='preload' as='font' type='font/woff' crossorigin>";
echo "<link href='https://www.telodoioildungeon.it/wp-content/plugins/td-composer/legacy/Newspaper/assets/images/icons/newspaper-icons.woff?1' rel='preload' as='font' type='font/woff' crossorigin>";
}
add_action( 'wp_head', 'dns_prefetch_responsive', 0 );
there are no other changes
Hello @ewebfactor!
If you want, we can take a look, see exactly the issue and let you know what you can do there. Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cpanel url and credentials
– a link to this topic in order to identify you
Thank you!