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

Multi-Environment Entries May Not Trigger Presence Detection #6

Open
benlobach opened this issue Apr 20, 2023 · 0 comments
Open

Multi-Environment Entries May Not Trigger Presence Detection #6

benlobach opened this issue Apr 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@benlobach
Copy link

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.

$element = Craft::$app->getElements()->getElementById($elementId);

Potential updated statement: $element = Craft::$app->getElements()->getElementById($elementId, null, "*");

Steps to reproduce

  1. Install and activate the plugin in a multi-site setup, double-check all the permissions.
  2. 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!

@andrelopez andrelopez self-assigned this Apr 23, 2023
@andrelopez andrelopez added the enhancement New feature or request label Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants