Skip to content

Creating new addon via CLI #3191

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

Closed
williamsears opened this issue Apr 1, 2023 · 2 comments · Fixed by #3199
Closed

Creating new addon via CLI #3191

williamsears opened this issue Apr 1, 2023 · 2 comments · Fixed by #3199
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.

Comments

@williamsears
Copy link

Description of the problem
On EE 7.2.12 - If you use the CLI to make:addon and then subsequently make:fieldtype and then make:action you will get the following errors when installing / uninstalling your addon:

Warning
Undefined array key "module"
ee/legacy/libraries/addons/Addons_installer.php, line 326

Severity: E_WARNING
Warning
Trying to access array offset on value of type null
ee/legacy/libraries/addons/Addons_installer.php, line 326

Severity: E_WARNING
Deprecated
rtrim(): Passing null to parameter #1 ($string) of type string is deprecated
ee/legacy/core/Loader.php, line 586

Severity: E_DEPRECATED
Warning
Undefined array key "module"
ee/legacy/libraries/addons/Addons_installer.php, line 330

Severity: E_WARNING
Warning
Trying to access array offset on value of type null
ee/legacy/libraries/addons/Addons_installer.php, line 330

How To Reproduce
Steps to reproduce the behavior:

  1. make:addon
  2. make:fieldtype
  3. make:action
  4. install the addon and see the errors

Environment Details:

  • Version: [7.2.12]
  • PHP Version [8.1.2]
  • OS: [Windows]
  • Web Server: [XAMPP]
@intoeetive
Copy link
Contributor

@williamsears I wasn't able to replicate this following the steps you provided. Can you send me the copy of the add-on that was generated?

@williamsears
Copy link
Author

channel_explorer.zip

@intoeetive intoeetive added the Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on. label Apr 3, 2023
intoeetive added a commit that referenced this issue Apr 3, 2023
bryannielsen added a commit that referenced this issue Apr 24, 2023
…ing-key-error

Resolved #3191 where PHP errors could be shown when installing add-on that has fieldtype and module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.
Projects
None yet
2 participants