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

Wrong taxonomies count #11472

Open
peimn opened this issue Feb 19, 2025 · 2 comments
Open

Wrong taxonomies count #11472

peimn opened this issue Feb 19, 2025 · 2 comments

Comments

@peimn
Copy link
Contributor

peimn commented Feb 19, 2025

Bug description

Terms count are wrong in taxonomies when multisite enebaled.

How to reproduce

Create a taxonomy and assign it to multiple sites. When you add a term to that taxonomy, the total count of terms will be multiplied by the number of sites it’s applied to. For example, if you create a term in a taxonomy shared across 3 sites, the term count will reflect 3 instances (one for each site).

Logs

Environment

Environment
Application Name: Laravel
Laravel Version: 11.42.1
PHP Version: 8.3.13
Composer Version: 2.8.2
Environment: local
Debug Mode: ENABLED
URL: localhost
Maintenance Mode: OFF
Timezone: UTC
Locale: fa

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: NOT CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: smtp
Octane: frankenphp
Queue: sync
Session: file

Locales
Installed: az, en, fa
LaravelLang\Actions\Plugin: 1.8.10
LaravelLang\Attributes\Plugin: 2.11.4
LaravelLang\HttpStatuses\Plugin: 3.8.5
LaravelLang\Lang\Plugin: 15.14.0
LaravelLang\MoonShine\Plugin: INCORRECT
Locales Version: 2.9.2
Protected: en, fa
Publisher Version: 16.4.1

Statamic
Addons: 6
Sites: 5 (فارسی, English, עִברִית, عربي, Turkçe)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.x-dev PRO

Statamic Addons
aryehraber/statamic-logbook: dev-main
doefom/restrict: dev-main
octoper/statamic-html-minify: dev-main
statamic/seo-pro: dev-main
tresdstudioweb/dynamic-select: dev-main
webographen/statamic-admin-log: dev-main

Installation

Existing Laravel app

Additional details

No response

@ryanmitchell
Copy link
Contributor

When you say term count, where do you mean that this is displaying?

@peimn
Copy link
Contributor Author

peimn commented Feb 20, 2025

Image

I have 4 sites, and each taxonomy shows terms count multiplied by 4...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants