Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Taxonomy pagination improvements #2272

Merged
merged 5 commits into from
Mar 16, 2025

Conversation

nazmulhasan103
Copy link
Collaborator

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Improvement

Description

This PR fixes a critical issue where DivisionByZeroError occurs in the Directorist_Listing_Taxonomy class when $this->per_page is null or 0, causing a fatal error during taxonomy pagination calculation.

Added a safety check in the set_terms() method to ensure we never divide by zero when calculating total pages.

Internal-> 1008 Fatal Error (DivisionByZeroError) Directorist

Any linked issues

Fixes #

Checklist

Sorry, something went wrong.

@obiPlabon obiPlabon merged commit bc198cf into sovware:trunk Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants