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

Variable "elementType" does not exist #11

Open
dr-codswallop opened this issue Aug 11, 2020 · 4 comments
Open

Variable "elementType" does not exist #11

dr-codswallop opened this issue Aug 11, 2020 · 4 comments

Comments

@dr-codswallop
Copy link

dr-codswallop commented Aug 11, 2020

Running fresh Craft 3.5.2 install. Installed plugin and can't edit entries in sections with this field any more. Returns with twig runtime error.

Variable "elementType" does not exist.
in XXXXX/vendor/craftcms/cms/src/templates/_elements/sources.html at line 53

{{ sourceLink(key, source, not keyPrefix, elementType) }}

My field is set up as an Entry List.

pseudo

Craft 3.5.2
Elements List 3.1.0

@nateiler
Copy link
Contributor

Look like the recent required changes here is causing this: craftcms/cms@8678b51#diff-184ce609400df0ea3b938a89b899ba1dL4

I've updated the sub package which should resolve this issue. Try running composer update flipboxfactory/craft-elements-nested-index which should bump to version 2.4.1

@dr-codswallop
Copy link
Author

I'm afraid not @nateiler. I ran the composer update command but still receiving the same error

@nateiler
Copy link
Contributor

Can you verify two dependency versions in your composer.lock file:

flipboxfactory/craft-elements-nested-index -> 2.4.1
flipboxfactory/craft-element-lists -> 3.1.0

If one of those is off, we'll try to get them updated

@dr-codswallop
Copy link
Author

Here's the entries in my composer.lock file

"name": "flipboxfactory/craft-element-lists",
"version": "3.1.0",

"name": "flipboxfactory/craft-elements-nested-index",
"version": "2.4.1",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants