Open
Description
Description
Hello, Enupal team! We've noticed that when running a multisite setup, elements may be missing when viewing entries in various sub-sites. We have implemented a hotfix for this error by adding a third parameter of "*" so that all sites are queried within the element query.
Potential updated statement: $element = Craft::$app->getElements()->getElementById($elementId, null, "*");
Steps to reproduce
- Install and activate the plugin in a multi-site setup, double-check all the permissions.
- Network panel response shows that User or Element can't be found.
Additional info
- Craft version: 4.4.7.1
- PHP version: 8
- Database driver & version: MYSQL
- Plugin version: 2.0.0
Thanks for your help, we really appreciate it!