PHP 8.x Missing Sidebar, Comments template and Footer
-
Hello,
The theme I use works on my site installed in the main directory.
The site wordpress installed in the subfolder is working incorrectly. Missing Sidebar, Comments template and Footer
site.com OK
site.com/subfolder/ INCORRECTReinstalling WordPress, changing themes, disabling plugins, etc. None of them worked.
The source of the problem is the code in single.php;
<?php comments_template( '', true ); ?>
Fatal error: Uncaught DivisionByZeroError: Division by zero in /.../wp-includes/comment-template.php:1532
Stack trace:
#0 /.../wp-content/themes/derli/single.php(42): comments_template()
#1 /.../wp-includes/template-loader.php(106): include('/home/p...')
#2 /.../wp-blog-header.php(19): require_once('/home/p...')
#3 /.../index.php(17): require('/home/p...')
#4 {main} thrown in /.../wp-includes/comment-template.php on line 1532I have tried many themes but they all have the same problem in subfolders.
When I did a Google search I saw that many sites were affected “wp-includes/comment-template.php on line 1532”
https://ytter.no/2015/03/departure-absence-flight-emigration/
https://www.saucycooks.com/who-needs-hot-food-displays/
https://ilcontevini.it/en/company-numbers-2/
https://schule-waldershof.de/services/zusammen_in_der_schule/
The topic ‘PHP 8.x Missing Sidebar, Comments template and Footer’ is closed to new replies.