Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm getting a tiny warning in the index admin page
admin/config/search/search_api/index/default_index
Warning: Division by zero in theme_search_api_index() (line 966
I've narrowed down the problem and it seems it's coming out because my website doesn't have any content yet and the status percentage is calculated without any check on $total_items (that could be zero).
Comment | File | Size | Author |
---|---|---|---|
#1 | search_api_fix_division_by_zero_2227043.patch | 809 bytes | kladrian |
Issue fork search_api-2227043
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
kladrian CreditAttribution: kladrian commentedI've created a little patch for that.
Comment #2
drunken monkeyWas already fixed in #1227702: Improve error handling.