After install current drupal 7 cvs and some config it, i'm try to add book page and get PDO error:
PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "": SELECT revision.timestamp AS revision_timestamp, revision.uid AS revision_uid, revision.vid AS vid, revision.title AS title, revision.log AS log, revision.status AS status, revision.comment AS comment, revision.promote AS promote, revision.sticky AS sticky, base.nid AS nid, base.type AS type, base.language AS language, base.uid AS uid, base.created AS created, base.changed AS changed, base.tnid AS tnid, base.translate AS translate FROM {node} base INNER JOIN {node_revision} revision ON revision.vid = base.vid WHERE (base.nid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => ) in DrupalDefaultEntityController->load() (line 122 of /home/vase/www/dev.selfip.ru/includes/entity.inc).
Comment | File | Size | Author |
---|---|---|---|
#8 | node_needs_a_nid_for_contextual_links.patch | 570 bytes | chx |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedInteresting. It is trying to load a node with
nid = ''
?Comment #2
lotyrin CreditAttribution: lotyrin commentedSubscribe. I've set up a test environment with PostgreSQL on Ubuntu 10.4 and CVS HEAD, running tests now. If they all pass I'll try to reproduce the issue by hand.
Comment #3
vase CreditAttribution: vase commentedToday i'm upgrade php (i like to test some new features :). Before i have php 5.3. Now i have php 5 - svn.
My phpinfo if this matter - http://dev.selfip.ru/phpinfo.php. If needed, i can provide additional info..
May be this is because i check preview is mandatory before post content. May be in this step drupal have not node id ?
Comment #4
vase CreditAttribution: vase commentedSorry, i'm recheck drupal version - i'm use 7.x-dev, not CVS. But when i'm upgrade to cvs version - problem still exists.
Comment #5
BerdirOk, I am able to reproduce this with any node type.
This goes back to contextual links, which tries to generate an link with the name "node/", the menu system then calls node_load() with an empty string and so it fails..
Not sure where this should be fixed, entity system, menu system, contextual links module, ... ?
Shortened stack trace:
Comment #6
vase CreditAttribution: vase commentedping
Comment #7
vase CreditAttribution: vase commentedComment #8
chx CreditAttribution: chx commentedUm. Seriously. Dudes. Noone patched this? What on earth, it's trivial.
Comment #9
BerdirI planned to do so but got distracted into other PostgreSQL issues yesterday :)
The patch looks good and I verified that it fixes the problem. I guess a test would be nice but contextual.module does not have any tests yet (because it depends heavily on JS I assume) so this simple bugfix shouldn't be punished because of that :)
Comment #10
BerdirBetter title...
Comment #11
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #12
David_Rothstein CreditAttribution: David_Rothstein commentedMinor issue queue cleanup: Seems like this was a pure node module bug, wasn't it (only indirectly related to contextual.module).
Comment #14
Liam Morland