Skip to content

[5.x]: Plugins license are not generate on install #17871

@nitriques

Description

@nitriques

What happened?

Description

If I install a plugin via the command line, then immediately generate the project yaml's file, the plugin license key is not in the yaml file. (The rest was there).

This was made in a dev environnement, and after a push to production, no license warning was given. Setting the licenseKey field to null does the same thing: no warning.

Steps to reproduce

  1. composer require deuxhuithuit/craft-cloudflare-images && craft plugin/install cloudflare-images
  2. craft pc/write

Expected behavior

I would expect a license key to be generated and present in the project.yaml file.
I had to go to in the cp, in the plugin page to get craft to generate one.
After that, I had a proper diff which showed the new field.

Actual behavior

The licenseKey field was missing in the yaml

Craft CMS version

5.8.17

PHP version

8.3-4

Operating system and version

linux

Database type and version

mysql

Image driver and version

gd

Installed plugins and versions

  • cloudflare stream latest
  • cloudflare images latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions