feed-me icon indicating copy to clipboard operation
feed-me copied to clipboard

Type Error in Craft 5.5

Open daltonrooney opened this issue 11 months ago • 2 comments
trafficstars

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

daltonrooney avatar Nov 26 '24 16:11 daltonrooney

One small update, I'm able to create a new feed with the same settings as the existing feed, and it runs just fine.

daltonrooney avatar Nov 26 '24 20:11 daltonrooney

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-just avatar Feb 06 '25 11:02 i-just

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:

Image

martinhellwagner avatar Jul 24 '25 07:07 martinhellwagner

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?

martinhellwagner avatar Jul 28 '25 19:07 martinhellwagner

@i-just

Any news on this? It's been quite a while since this has been reported.

martinhellwagner avatar Sep 03 '25 08:09 martinhellwagner

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

jamesmacwhite avatar Oct 28 '25 18:10 jamesmacwhite

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 avatar Oct 31 '25 00:10 angrybrad

@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?

Image

martinhellwagner avatar Nov 04 '25 13:11 martinhellwagner