feed-me
feed-me copied to clipboard
Type Error in Craft 5.5
Description
I have a feed that was created in an earlier version of Craft 5. After upgrading to Craft 5.5, I'm unable to make changes to the feed. When I get to the field map screen, I get a Type Error:
craft\helpers\Cp::elementChipHtml(): Argument #1 ($element) must be of type craft\base\ElementInterface, null given, called in /var/www/html/craft/storage/runtime/compiled_templates/d0/d09762a9dadf0fa25b204cfaa26d23b5.php on line 67
Full stack trace: https://gist.github.com/daltonrooney/39eca087802845c2733da7200883adfc
Additional info
- Craft version: 5.5.3
- PHP version: 8.2
- Feed Me version: 6.5.0
- Database driver & version: MySQL 8
One small update, I'm able to create a new feed with the same settings as the existing feed, and it runs just fine.
Hi, thanks for getting in touch. I’m not able to reproduce this. What type of element is this feed for? Do you know which version of the CMS it was created on? Since you’re able to create a new feed with the same settings, would you mind sharing a screenshot of its mapping screen?
I'm seeing the same behavior on Craft 5.8.2 with Feed Me 6.8.0. It happened when I created a new field to be imported, and defined an entry as the default value for the field.
The error occurs on the mapping screen – the one after this screen:
Also, I've noticed that I'm getting an error when trying to import a title or slug of an Entry and link the Entry into a field – if the Entry is a Single. It works fine if the Entry is in a Channel or Structure.
Could you have a look at this please?
@i-just
Any news on this? It's been quite a while since this has been reported.
Could it be related to this #1692? I hit the same error but related to an element when set as a default value for an element field but the element no longer exists
I just cut 5.14.0 and 6.11.0 - can anyone hitting this error test out the new release and see if it fixes the error for you? it does seem very similar to the one @jamesmacwhite mentioned.
@angrybrad
I've just tested after updating Feed Me, but it seems like now they are no entries found when trying to select a Default Entry – in neither multisite. Is there anything I'm missing?