born05 / craft-colorextractor

Extract colors from image assets in Craft CMS.
MIT License
2 stars 5 forks source link

Error during install #1

Closed piotrpog closed 5 years ago

piotrpog commented 5 years ago

After installing this plugin, message appears:

Color Extractor has been added, but an error occurred when installing it.
yii\base\UnknownMethodException: Calling unknown method: craft\elements\db\AssetQuery::imageColor()

Plugins seems to be properly installed however, it shows up on settings/plugins list.

roelvanhintum commented 5 years ago

@piotrpog Did you create a color or plaintext field with the imageColor handle on the assets? This is needed to store the extracted color.

piotrpog commented 5 years ago

@roelvanhintum I didnt created any field. Its just a message that appears right after (during) installing of plugin.

roelvanhintum commented 5 years ago

@piotrpog The error should be gone in 2.0.0-beta.3. The imageColor field was missing, which prevents the plugin from working but should not throw errors and prevent installation. Installation should be fine now.