Wednesday, October 27, 2010

Issue with the feedapi_mapper module...

Hi,

So had a nice time with my last posts for creating embedded video feeds into your drupal instance. Most of you would have got your feeds working. If you have any issue with feed first refer this. It should work after doing the mentioned changes to simplepie parser. If it still is not working and showing you NULL values getting entered into the content type type table (say, content_type_video_item) then make the following changes to feedapi_mapper modules feedapi_mapper.api.php file which you can find in feedapi_mapper module directory.

There in the file you will find the function hook_feedapi_mapper where in the parameter of the function one of the parameters is refer as $sub_field = '' whereas in the function body it is used as $node->myfields[$subfield]. change it to $node->myfields[$sub_field]. The wrong object reference name is causing it to take a garbage value. Though original one works for most of the feeds but causes certain issue when you go for anything like video feeds where you have a embedded video field which is a custom field causing it to behave abnormally.

Your feed should work fine now. if it still is not working then make sure that you have enabled and configured the required provider module.

So enjoy you video feeds now....

No comments:

Post a Comment