Skip to content

Multi-Environment Entries May Not Trigger Presence Detection #6

Open
@benlobach

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.

$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!

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions