Changes between Initial Version and Version 1 of Ticket #53773
- Timestamp:
- 07/24/2021 04:38:22 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #53773
- Property Keywords needs-patch good-first-bug added
-
Property
Component
changed from
General
toMedia
-
Property
Milestone
changed from
Awaiting Review
to5.8.1
-
Ticket #53773 – Description
initial v1 1 1 In the /wp-admin/includes/ajax-actions.php file line 3006 it keeps popping up an error in our php error log that says it is trying to divide by zero. It produces an error over and over again. 2 2 {{{ 3 3 PHP Warning: Division by zero in /wp-admin/includes/ajax-actions.php on line 3006 4 4 }}} 5 5 This is line 3006: 6 {{{ 6 7 $max_pages = ceil( $total_posts / (int) $attachments_query->query['posts_per_page'] ); 7 8 }}} 8 9 9 10 Here is the whole section: 11 {{{ 10 12 /** 11 13 * Filters the arguments passed to WP_Query during an Ajax … … 41 43 wp_send_json_success( $posts ); 42 44 } 43 45 }}} 44 46 45 47 Our php error log looks like this: (truncated a lot) 46 admin/includes/ajax-actions.php on line 3006 48 {{{ 47 49 [23-Jul-2021 18:46:05 UTC] PHP Warning: Division by zero in /wp-admin/includes/ajax-actions.php on line 3006 48 50 [23-Jul-2021 18:46:14 UTC] PHP Warning: Division by zero in /wp-admin/includes/ajax-actions.php on line 3006 … … 54 56 [23-Jul-2021 19:35:58 UTC] PHP Warning: Division by zero in /wp-admin/includes/ajax-actions.php on line 3006 55 57 [23-Jul-2021 19:36:01 UTC] PHP Warning: Division by zero in /wp-admin/includes/ajax-actions.php on line 3006 58 }}}