Hi,
as i wrote via email there is a general error on site (see the “There has been a critical error on this website.” message at the bottom of the page), it is hard to tell what is causing it by looking at just this message alone.
You would need to open wp-config.php file add there a line define( "WP_DEBUG", true );
and refresh the page it should show an actual error message you can then copy and paste it here or let me know so i can see the message myself, i should be able to help then.
Dear Greg, Thank you for your help. I got this error message below:
Warning: require(/home/tinh/public_html/wp-content/plugins/td-standard-pack/Newspaper): failed to open stream: No such file or directory in /home/tinh/public_html/wp-includes/comment-template.php on line 1554
Fatal error: require(): Failed opening required '/home/tinh/public_html/wp-content/plugins/td-standard-pack/Newspaper/' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/tinh/public_html/wp-includes/comment-template.php on line 1554
There has been a critical error on this website
Hi,
hmm it might be a conflict between the theme and WPAdverts, please try opening the file wpadverts/includes/class-taxonomies.php, comment out or remove the two below lines
add_filter( 'comments_template', array( $this, 'comments_template' ) );
add_filter( 'comments_template_query_args', array( $this, 'comments_template_query_args' ) );
and let me know if this helps?
Thank you, Greg, I did remove these two lines but it still does not work.
What else should I do? Thanks
the error message:
Warning: require(/home/tinh/public_html/wp-content/plugins/td-standard-pack/Newspaper): failed to open stream: No such file or directory in /home/tinh/public_html/wp-includes/comment-template.php on line 1554
Fatal error: require(): Failed opening required ‘/home/tinh/public_html/wp-content/plugins/td-standard-pack/Newspaper/’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/tinh/public_html/wp-includes/comment-template.php on line 1554
There has been a critical error on this website.
Hi,
hmm i am not sure, maybe your theme has some option to set a comment template for a Custom Post Type? If so then you can try setting some value there.
If not then it might be best to ask the theme author about this error.
I did some search on the past forum threads and it seems that adding the code below in the (child) theme functions.php file resolved the problem for one of WPAdverts users (not 100% sure as the user never posted again after receiving the solution)
add_filter( "comments_template", function( $tpl ) {
if( is_singular( 'advert' ) ) {
$tpl = WP_PLUGIN_DIR . "/index.php";
}
return $tpl;
} );
You can see the full answer here https://wordpress.org/support/topic/newspaper-theme-error/
Thanks Greg,
Yes, I did try that but still does not work.
Have you tried checking with the theme support? if so then please let me know what was their reply.
Unfortunately the theme you are using is a paid one so I cannot test on my dev site.
By any chance, you have installed DISQUS, and you haven’t set them? If so, configure it and you will see how it is solved.