boboldehampsink / import

DEPRECATED - Import plugin for Craft CMS
MIT License
176 stars 28 forks source link

Import "Replace Data" is failing all the time #155

Open exophunk opened 7 years ago

exophunk commented 7 years ago

Hey Bob,

I tried to import entries with multiple locales. I approached it the same way as described in #103.

When I try to import with the Option "Replace Data", The craft tasks always failed. I tried one million different things. To the point when I created a empty new section with just a title field, and tried to import simply just titles. Also crashes. I think the "Replace Data" simply doesn't work at the moment?

Append always worked, Replace always crashed (with the same csv-file/section, so its not about a faulty file)

My Craft: Craft CMS 2.6.2962 Import Plugin: 0.8.33

I simplified and tried this import:

CSV:

title,
Wtf,
Title,
Something,

Section:

Test

Fields: (none, just title)

I also tried it with any other kind of entries. I tried it with selecting criteria fields, no criteria fields, anything. Always crashes.

– Task just fails. No message, no error, nothing – No entry in "craft_import_log" – Again: "append" always works, "replace" always crashes.

The only thing I found somewhere very hidden in the craft.log file was this,

2017/02/23 14:20:21 [error] [php] Object of class Craft\Model could not be converted to string (/home/vagrant/workspace/y7k/cp01-coop-emoji/craft/plugins/import/services/ImportService.php:121)

I couldn't understand why it really crashes or if this is the issue. it looks like..

Thanks, Robert

northamerican commented 7 years ago

Try uninstalling and reinstalling the plugin from the Settings > Plugins page.