Closed (cannot reproduce)
Project:
Feeds
Version:
6.x-1.0-alpha15
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2010 at 10:14 UTC
Updated:
18 Sep 2010 at 03:08 UTC
I have a problem with the Feeds-module. It is the same problem as here (http://drupal.org/node/769084). My system is also only importing the first feed item.
I tried the solution that was suggested but that is not working. The table columns "guid" and "url" are empty.
Some facts:
- I use the Twitter search parser
- Targets URL and GUID are set to unique target
Someone can help me with this issue? I have included the "FeedsTwitterParser.inc" also. I made some modifications.
| Comment | File | Size | Author |
|---|---|---|---|
| FeedsTwitterParser.inc_.test | 3.36 KB | ufeg02 | |
| mapping.JPG | 49.4 KB | ufeg02 |
Comments
Comment #1
alex_b commentedA good place to start debugging is the processor's existingItemId() method.
Comment #2
ufeg02 commentedHow is it possible that the database columns are empty?
The table columns "guid" and "url" are empty. <- in table feeds_node_item
Comment #3
alex_b commentedCheck what the node object looks like before it's saved (see node_save($node) in FeedsNodeProcessor).
Comment #4
ufeg02 commentedThe nodes are correct created.
This is how my table "feeds_node_item" looks.
nid id feed_nid imported url guid hash
4392 twitterstatussen 2236 1276614222
4393 twitterstatussen 4090 1276614222
4394 twitterstatussen 1760 1276614222
4395 twitterstatussen 2220 1276614282
4396 twitterstatussen 1635 1276614282
4403 testgewoneimport 0 1276617222 (this is corresponding with the node 4403)
This is the content of the "node" table.
nid vid type language title uid status created changed comment promote moderate sticky tnid translate
4403 4557 twitter_status dsonline: #sport Man dreigt met bom in 'fan park':... 0 1 1276608205 1276618313 2 1 0 0 0 0
Comment #5
alex_b commentedWhile there appears to be a valid mapping from Twitter link to URL and from GUID to GUID it seems that the URL and the GUID properties of the node are actually not being populated. I wonder why.
- Is it because the feed does not contain valid twitter link and GUID?
- Does the parser not detect the twitter link and the GUID?
- Is there a problem in FeedsNodeProcessor that causes it node to populate the node properly although twitter link and GUID are present?
If you print $node to the screen before node_save($node); is called in FeedsNodeProcessor::process() - what does it say? There should be a
on it. If those values are empty, are they present on the $item returned by $batch->shiftItem() in FeedsNodeProcessor::process() ? If they are, there must be something wrong with the mapping that is defined on the processor. If they aren't - the parser is not parsing them out correctly.
Comment #6
ufeg02 commentedI installed the logging module and this error shows up:
Location http://localhost/batch?id=125&op=do
Referrer http://localhost/batch?op=start&id=125
Bericht mysql_real_escape_string() expects parameter 1 to be string, array given in J:\wamp\www\includes\database.mysql.inc on line 321.
Maybe it is related?
Comment #7
ufeg02 commentedThis is a part of the errorcode generated when I try to import a feed.
Comment #8
alex_b commentedClosing as can't reproduce. I know I've been not very responsive on this issue, so please reopen if problems persist.