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

'Method craft\base\Utility::iconPath() does not exist' error when creating a plugin utility #34

Closed
russback opened this issue Mar 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@russback
Copy link

russback commented Mar 8, 2024

Description

Running php craft make utility --plugin=foo returns the following error:

Exception 'ReflectionException' with message 'Method craft\base\Utility::iconPath() does not exist'
in /var/www/html/vendor/craftcms/generator/src/BaseGenerator.php:553

The plugin this is running on has been updated ready for Craft 5.

Steps to reproduce

  1. Install Generator v2 on a Craft 5 beta project
  2. Run the make utility command

Additional info

  • Craft version: 5.0.0-beta.6
  • PHP version: 8.2
  • Database driver & version:
  • Plugins & versions: Custom plugin requiring craft ^4.0.0|^5.0.0
@russback russback added the bug Something isn't working label Mar 8, 2024
brandonkelly added a commit that referenced this issue Mar 8, 2024
@brandonkelly
Copy link
Member

Thanks for reporting that! Just tagged Generator 2.0.1 with a fix.

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

No branches or pull requests

2 participants