craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
286 stars 140 forks source link

craft\feedme\base\Element::parseTitle(): Return value must be of type string, null returned - Element.php: 300 #1467

Closed DynamiteGoesBoom closed 1 week ago

DynamiteGoesBoom commented 1 week ago

Description

No matter what feed field mapping is setup, I continue to get this error:

craft\feedme\base\Element::parseTitle(): Return value must be of type string, null returned - Element.php: 300

I have tried simplifying the feed but still get this error.

Steps to reproduce

  1. Setup a feed
  2. Use https://aaci.getfido.app/api/pages.json for the data
  3. Map just the title field to data/title
  4. run the feed

Additional info

Thanks as always for the help!

tommysvr commented 1 week ago

Resolved in support; the fix was to use a different Primary Element

chadclark commented 1 week ago

I'm running into this same issue. In my situation, I'm trying to map to the title field in the root element. It previews correctly in the feed setup, but fails each time when run.

In debug mode, I receive this TypeError:

Unsupported operand types: string + int

1. in /var/www/html/vendor/craftcms/feed-me/src/services/Process.php
at line 205

205: Plugin::info('Starting processing of node `#{i}`.', ['i' => ($step + 1)]);