#63146 closed defect (bug) (invalid)
PHP 8.1 Missing Sidebar, Comments template and Footer
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
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.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hello and thank you for reporting this issue,
However, I don't think this issue is related to WordPress Core. I think you should try to report it on WordPress community support forums first: https://wordpress.org/support/forums/
I'm closing this ticket as
invalid
, which may sounds rude but it only aims to mention that this ticket doesn't seem like a bug in WordPress Core.