Closed marcorieser closed 9 months ago
I think this is the same as #2498
I think this is the same as #2498
I'm not sure about that. The tag is working as expected but it's not possible to have the tag and the group overview in cp working at the same time because of the stache structure.
As a workaround I removed the filter on {{ users }}
and check the group inside inside the loop. As long as there are not many users this works well. Now I can access the group overview in the cp 👍🏻
{{ users }}
{{ if in_participants }}
...
{{ /if }}
{{ /users }}
@marcorieser definitely related :) - see https://github.com/statamic/cms/pull/6131 and let me know if it works for you?
@ryanmitchell Your PR seems to do the trick. Thank you so much!
Bug description
It seems that the groups section in the control panel
/cp/user-groups
needs another stache file structure than the{{ users groups:in="whatever" }}
tag.storage/framework/cache/data/stache/indexes/users/groups
)storage/framework/cache/data/stache/indexes/users/groups
)After clearing the cache (
php artisan optimize:clear
), visiting the control panel/cp/user-groups
and then visiting the page with the tag I get the following error: https://flareapp.io/share/95JkNpDm#F123After clearing the cache (
php artisan optimize:clear
), visiting the page with the tag and then visiting the control panel/cp/user-groups
I get the following error: https://flareapp.io/share/yPaYqraP#F96How to reproduce
Installation You can clone this repo: https://github.com/marcorieser/statamic-grouperrors
runtime
parser andpro
modegroup_1
)resources/views/home.antlers.html
with{{ users groups:in="group_1" }}{{ name }}{{ /users }}
Case 1
php artisan optimize:clear
/cp/user-groups
in the cpstorage/framework/cache/data/stache/indexes/users/groups
is a directoryCase 2
php artisan optimize:clear
/cp/user-groups
in the cpstorage/framework/cache/data/stache/indexes/users/groups
is a a fileLogs
Versions
Statamic 3.3.12 Pro Laravel 9.15.0 PHP 8.1.6 No addons installed
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
runtime (new)
Additional details
No response