This helped me discover that I did not have a user table row with uid = 0. This has been rectified. Not sure if the intention of the module design was to save Discogs import data with uid =0

Comments

Karlheinz’s picture

I'll look into that. I imagine it's because the nodes are being created by the Discogs module itself, thus it doesn't automatically save the user ID. It should be an easy fix.

Karlheinz’s picture

Status: Active » Needs review
StatusFileSize
new906 bytes

Fixed, and I'm uploading a patch. (And I just released the third beta, too!)

It turns out there is a very obscure requirement for saving nodes programmatically: you have to set $node->name to the username, and not $node->uid to the user ID.

The only place this is ever mentioned is in a comment on the API page for node_save (which I don't even use):
https://api.drupal.org/comment/3399#comment-3399
https://api.drupal.org/api/drupal/modules%21node%21node.module/function/...

I am uploading a patch to fix this. It is patched against beta3, so make sure you get that first.

Karlheinz’s picture

Status: Needs review » Closed (fixed)

Included in 6.x-1.0.