timkelty / craftcms-site-sync

Sync content to locales on element save.
MIT License
40 stars 9 forks source link

"Sources is invalid" when saving entry #21

Open jesuismaxime opened 5 years ago

jesuismaxime commented 5 years ago

Lastest plugin version, lastest Craft version and got this log :

2019-04-08 09:06:08 [-][3][-][error][timkelty\craftcms\sitesync\Field::normalizeValue] Syncable failed validation: Array
(
    [sources] => Array
        (
            [0] => Sources est invalide.
        )

)

I dont have any 'Sources' field so I guess it coming from the plugin (or a conflict with another).

I use SEO, SuperTable and Neo on the section/entry type I need to sync. I test with a new/empty entry and still not able to sync my content.

"Sources est invalide." translate to "Sources is invalid"

timkelty commented 5 years ago

Thanks @jesuismaxime, I'll have a look today. If you could share a db dump and your composer.json that would help! I'm on the Craft Discord, or email me at tim@fusionary.com.

MisterMike commented 5 years ago

Just tried to install the plugin, which worked. But I can no longer add any fields, as there is the following error being thrown: Invalid path alias: @timkelty/craft/sitesync/resources/web

timkelty commented 5 years ago

@MisterMike make sure you have the latest: 1.0.2

MisterMike commented 5 years ago

@timkelty Thanks for the fast reply. Okay, will try. Currently composer does not let me get 1.0.2 despite "^1.0" and I can also see it on packagist..

MisterMike commented 5 years ago

"platform": { "php": "7.0" }

I set it to 7.2 and it worked. Thanks a lot!

timkelty commented 5 years ago

This was fixed by upgrading to the latest version

timkelty commented 5 years ago

Reopening…