[wp-trac] [WordPress Trac] #63146: PHP 8.1 Missing Sidebar, Comments template and Footer
WordPress Trac
noreply at wordpress.org
Sat Mar 22 13:17:04 UTC 2025
#63146: PHP 8.1 Missing Sidebar, Comments template and Footer
--------------------------+-----------------------------
Reporter: burhi | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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/wp/ INCORRECT
The source of the problem is the code in single.php;
{{{
<?php comments_template( '', true ); ?>
}}}
{{{
Fatal error: Uncaught DivisionByZeroError: Division by zero in
/home/public_html/en/wp-includes/comment-template.php:1532 Stack trace: #0
/home/public_html/en/wp-content/themes/derli/single.php(42):
comments_template() #1 /home/public_html/en/wp-includes/template-
loader.php(106): include('/home/p...') #2 /home/public_html/en/wp-blog-
header.php(19): require_once('/home/p...') #3
/home/public_html/en/index.php(17): require('/home/p...') #4 {main} thrown
in /home/public_html/en/wp-includes/comment-template.php on line 1532
}}}
I have tried many themes but they all have the same problem in subfolders.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63146>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list