I have no clue what the cause of the problem is yet, but I wanted to get this in the issue queue in case anyone else stumbles across it (I spent a long time tracking it down).

For some reason, whenever I enable nodereference_url 1.6 or greater I lose all allowed values in any select list on any node with a nodereference_url widget field when editing (works fine during node creation). I can reproduce it repeatedly (by simply disabling and enabling the nodereference_url module) with all versions of 1.6 or greater. Version 1.5 is the latest version I could get to work. I'm pretty good about keeping modules up to date so I don't know why none of my users reported the problem sooner or how I could have not noticed it either for that matter.

I have a pretty complex site so it could very well have something to do with an interaction of custom code (i use the method described at http://drupal.org/node/536842) or another module I'm using. I haven't had a chance to track it down yet and I'm working on an intense deadline atm, but as soon as I get some breathing room I'll try to debug it and post an update.

Comments

WorldFallz’s picture

I'm having quite the problem trying to parse the diffs from drupalcode.org -- back in cvs days I could easily select which versions to diff and see exactly what was changed. Either I'm a total tool or something is wrong somewhere-- the diff I'm seeing is saying that 6.x-1.6 version is a d7 version.

quicksketch’s picture

Hi WorldFallz, I'm skeptical that Node Reference URL Widget could be responsible for breaking unrelated fields. This module just provides a CCK Widget, so I'm not sure how it could be affecting data outside of the field it's providing. It's possible of course, but I don't think this is common. I can't reproduce this problem with a simple select list and node reference field on a clean D6 install.

WorldFallz’s picture

Hi qs-- I completely agree. And in fact spent a lot of time troubleshooting all sorts of other things because I thought the same thing (not to mention it's one of your modules ;-).

All I can say is that simply enabling and disabling nodereference_url of any version after 1.5, and not changing anything else, reliably produces the problem every single time. As I said though, I have a very complex site with some custom code which could be interacting with nodereference_url in some weird way.

I'm going to troubleshoot this more in depth this weekend and I'll post back my findings. It's definitely bizarre.

Thanks for quick the response though.

WorldFallz’s picture

Status: Active » Fixed

well I have no idea what the cause was, but I did manage to fix it.

It was some weird interaction between nodereference_url, modal_noderef, and my custom #after_build function. Disabling modal_noderef and my custom custom function didn't fix it-- only enabling/disabling nodereference_url could reliably create/fix the problem. But once I removed my custom #after_build and modal_noderef, I could update nodereference_url to the current version, run update.php and have my select lists work again. Adding back my custom function and modal_noderef recreates the problem and only disabling nodereference_url gets the select lists back again.

Very, very odd. But thanks for the quick response anyway.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.