-
Notifications
You must be signed in to change notification settings - Fork 638
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
Variable "pluralElementType" does not exist #4732
Comments
Looks like this is originating from Without seeing your code, I assume that If you are overriding protected $settingsTemplate = 'your/custom/template/path'; If you are overriding it because you (also?) needed to modify the variables passed to the template, then leave the method in-place for now, but add this to the variables array: If that’s right, then you should be able to fix this by including this in your variable array: 'pluralElementType' => $elementType::pluralDisplayName(), I just added a new protected function settingsTemplateVariables(): array
{
$variables = parent::settingsTemplateVariables();
// Add custom variables here...
// ...
return $variables;
} That will future-proof your code a little better, as you’ll always get any new variables that Craft ends up adding. |
Ah, my bad... should have checked the log for |
Updated Craft CMS from 3.1.34.2 to 3.2.9, and when I go to edit any field in the CP, I get this error:
Additional info
The text was updated successfully, but these errors were encountered: