Posted by zazinteractive on November 18, 2011 at 6:51am
8 followers
Jump to:
| Project: | Feeds |
| Version: | 7.x-2.0-alpha7 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
What happens if you map the url and title to separate text fields? Are both populated?
#2
Its 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.
#3
I am mapping them to separate fields
#4
Link mapper has a number of issues. I've added them ot the issues summary page at http://drupal.org/node/1301604
#5
Just tried importing a URL into a Link field, and I can confirm it does not work :)
#6
#7
Hi,
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
#8
I 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.
#9
I used a workaround and exported the urls straight into the table. Worked for me though some vids are missing.
#10
I 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.
#11
I re-wrote the link mapper in http://drupalcode.org/project/feeds.git/commit/714c9e3.
Let me know if this is still an issue.
#12
Automatically closed -- issue fixed for 2 weeks with no activity.
#13
EDITTED, 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.
#14
-ignore-
#15