SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.
In the function $this->setMatchedElement($uri, $siteId); that is called in line 364 in the file MetaContainers.php and that is implemented starting on line 457 in the same file, the variable $element can't be found and is not set – that's why we're getting a server error (see screenshot).
Shouldn't there be something like $element = null; for the case that the variable $element can't be set?
To reproduce
Steps to reproduce the behaviour:
Click on an element in the Control Panel
Describe the bug
In the function
$this->setMatchedElement($uri, $siteId);
that is called in line 364 in the fileMetaContainers.php
and that is implemented starting on line 457 in the same file, the variable$element
can't be found and is not set – that's why we're getting a server error (see screenshot).Shouldn't there be something like
$element = null;
for the case that the variable$element
can't be set?To reproduce
Steps to reproduce the behaviour: Click on an element in the Control Panel
Expected behaviour
Server error should not appear
Screenshots
Versions