Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am currently using the xpath parser to map links to my link field. The title is being mapped correctly but there is a problem with URLs. I get this message in Drupal's system log.
Notice: Undefined index: url in _link_process() (line 330 of /home/glumboco/public_html/couponclad.com/sites/all/modules/link/link.module).
The newly created nodes have a title but the url is blank
Comments
Comment #1
johnbarclay CreditAttribution: johnbarclay commentedWhat happens if you map the url and title to separate text fields? Are both populated?
Comment #2
johnbarclay CreditAttribution: johnbarclay commentedIts also possible that the link mapper simply doesn't work. I ran the simpltest for it and it failed. Its unclear if the simpletests haven't been updated to drupal 7 or if the link mapper simplty doesn't work. The tests are at admin/config/development/testing when testing module is enabled.
Comment #3
zazinteractive CreditAttribution: zazinteractive commentedI am mapping them to separate fields
Comment #4
johnbarclay CreditAttribution: johnbarclay commentedLink mapper has a number of issues. I've added them ot the issues summary page at http://drupal.org/node/1301604
Comment #5
giorgio79 CreditAttribution: giorgio79 commentedJust tried importing a URL into a Link field, and I can confirm it does not work :)
Comment #6
giorgio79 CreditAttribution: giorgio79 commentedComment #7
Tafa CreditAttribution: Tafa commentedHi,
I am experiencing a similar issue and could not import links from a cvs file. So, I wondered if this had to do with the specific format of the URl (youtube link) but tested on a random link and still no link being imported.
I am not sure how to go from there. Maybe one way would be use a different importer and overwrite content but I am dubious this would solve the problem.
Thanks
T
Comment #8
giorgio79 CreditAttribution: giorgio79 commentedI found that there is actually a URL field for the node path, and then there is MyFieldname (URL) for Link field. This second one worked for me.
Comment #9
Tafa CreditAttribution: Tafa commentedI used a workaround and exported the urls straight into the table. Worked for me though some vids are missing.
Comment #10
cpelham CreditAttribution: cpelham commentedI kept getting corrupted YouTube links on import with SimplePie parser. The equals signs and ampersands in the links were being escaped, which broke the links. Switching to Common syndication parser and re -importing the feed items from YouTube fixed the problem.
Comment #11
twistor CreditAttribution: twistor commentedI re-wrote the link mapper in http://drupalcode.org/project/feeds.git/commit/714c9e3.
Let me know if this is still an issue.
Comment #13
alanom CreditAttribution: alanom commentedEDITTED, IGNORE - I thought I was seeing this bug in alpha7, as link URLs were coming up blank while what I thought was identical logic mapped to other fields was being processed fine. Actually, there was a valid reason why it was coming up blank (preceding slash in xpath logic). So all is fine and works, I've re-closed this issue below.
Comment #13.0
alanom CreditAttribution: alanom commentedtypo
Comment #14
alanom CreditAttribution: alanom commented-ignore-
Comment #15
alanom CreditAttribution: alanom commented