[wp-trac] [WordPress Trac] #63146: PHP 8.1 Missing Sidebar, Comments template and Footer
WordPress Trac
noreply at wordpress.org
Sat Mar 22 22:42:28 UTC 2025
#63146: PHP 8.1 Missing Sidebar, Comments template and Footer
--------------------------+----------------------
Reporter: burhi | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Description changed by sabernhardt:
Old description:
> 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.
New description:
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 /.../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 1532
}}}
I have tried many themes but they all have the same problem in subfolders.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63146#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list