I have installed and enabled this widget (as well as all dependent modules), but no Explorer widget appears when I create a Node reference field.

Oddly enough, I can access the Explorer widget when I create a Link field. However, I get the following error when I save the content type:

Invalid argument supplied for foreach() in /home/EXAMPLE/public_html/EXAMPLE.com/includes/form.inc on line 1423.

I have searched the documentation, but no one else seems to be having this issue. Any help that anyone could provide would be greatly appreciated.

Comments

brycesenz’s picture

For reference, the line in form.inc (Drupal 6.13) that is causing an error is:

foreach ($choices as $key => $choice)

betz’s picture

I have the same error.

I am using this with CCK 3.dev, maybe it has something to do with this?
brycesenz, which CCK version do you use?

betz’s picture

Aha!! Found the little bugger!

I disabled and uninstalled lightbox2 and suddenly it worked.
Looks like it conflicts or something :s

Hope this helps you also...

betz’s picture

But the error on the field setting page stays, even on a fresh drupal with cck2.

warning: Invalid argument supplied for foreach().....

brycesenz’s picture

I ended up just re-installing drupal fresh and adding back all of the modules that I previously had installed.

I also had lightbox2 installed, which is more important to me than this module. I think that for now I'm just going to do without this particular module.

betz’s picture

Title: No Explorer Widget » No Explorer Widget when lightbox2 is installed

I changed the title a little bit

kevster111’s picture

warning: Invalid argument supplied for foreach() in /home/batmantrailer/public_html/includes/form.inc on line 1417 Thats my error.

I have lightbox2 installed as well. Seems like it is going to work then, I click the browse button and nothing happens.

gnindl’s picture

Status: Active » Needs review

Try 1.1-beta6 for lightbox2 integration (works perfectly for me) and the little form API bug is already handled here:

http://drupal.org/node/503962

stacysimpson’s picture

Well, I had already disabled and uninstalled lightbox2 and ran across this issue:
http://drupal.org/node/590192

I haven't re-enabled yet.

gnindl’s picture

Version: 6.x-1.1-beta4 » 6.x-1.x-dev
Status: Needs review » Fixed

Works with lightbox 2 version 6.x-1.9 and the latest development snapshot.

Status: Fixed » Closed (fixed)

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