studioespresso / craft3-seeder

Seeder is the easiest way to quickly create placeholder content while you're building out a website. Create your sections & fields and then let Seeder make entries for you.
https://plugins.craftcms.com/seeder
MIT License
28 stars 3 forks source link

Issue when seeding entry with many fields/plugins #3

Closed mediabeastnz closed 6 years ago

mediabeastnz commented 6 years ago

I have an entry type that is using many fields which include a few plugins e.g. LinkField and ImageOptimize.

Should the seeder just skip those fields?

I ge the following error when sending:

PHP Warning 'yii\base\ErrorException' with message 'A non-numeric value encountered'

in /home/vagrant/Code/talleys.co.nz/vendor/studioespresso/craft-seeder/src/services/fields/Fields.php:185
jan-dh commented 6 years ago

There is a list of supported field types. My guess is that more will be added later, but for now only use the available ones.

janhenckens commented 6 years ago

If all goes well, you should just see a notice in your terminal when the plugin encounters an unsupported field.

But clearly not all is well :) Thanks for reporting this, I'll have a look tonight!

janhenckens commented 6 years ago

@mediabeastnz I released an update that should fix this issue, can you install that and give it another go? Thanks!

mediabeastnz commented 6 years ago

Legend, thanks @janhenckens. I'll try it now and let you know

mediabeastnz commented 6 years ago

Working now. I now get a notice saying field type not supported and it continues on through the loop.