Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error generating element type in Craft 5 #32

Closed
thomasvantuycom opened this issue Feb 13, 2024 · 1 comment
Closed

Error generating element type in Craft 5 #32

thomasvantuycom opened this issue Feb 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@thomasvantuycom
Copy link

Description

Attempting to create an element type using the native generator within Craft 5 results in an error:

Exception 'ReflectionException' with message 'Method craft\base\Element::hasContent() does not exist'

in /var/www/html/vendor/craftcms/generator/src/BaseGenerator.php:553

Steps to reproduce

  1. php craft make element-type --plugin=my-plugin

Additional info

  • Craft version: 5.0.0-beta.1
  • PHP version: 8.2
  • Database driver & version: mysql-8.0:v1.22.6
  • Plugins & versions: "craftcms/generator": "2.0.x-dev"
@thomasvantuycom thomasvantuycom added the bug Something isn't working label Feb 13, 2024
brandonkelly added a commit that referenced this issue Mar 6, 2024
@brandonkelly
Copy link
Member

Thanks for reporting that! Generator 2.0.0 was just tagged with a fix.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants