Adding fields to Story
When I add an node reference image field to the story ( admin/content/node-type/story/fields ) It locks up.
Everything else works but when I try to add a story (node/add/story )
This does not affect any other node/add except the one I added the node reference type image field to.
Any thoughts? I am trying to make adding a story idiot proof, so I want to force them to add an image, not just rely on the visual editor, and hope they can figure the little tree icon out. We want any average Joe to come to the site and submit content.
Thanks,
Rachel
What I mean by "locks up" is that when I try to go to the node/add/story, the browser stops responding and it won't load the page.
If I remove the field everything goes back to normal. and node/add/story loads just fine.
This is the only thing I found in the error log from Friday. I am not sure if it is related.
magecolorsforindex() [
href='function.imagecolorsforindex'>function.imagecolorsfori
ndex]: Color index 31 out of range in
/home/freedom/public_html/drupaldev/profiles/prosepoint/modu
les/imageapi/imageapi_gd.module on line 251.
Hi Beng,
I was wondering if there was anything you could help me with here?
Thanks,
Rachel
Hi,
The message "Color index 31 out of range ..." is, I believe, only a warning and shouldn't cause your browser to 'lock up'. You may have a malformed PNG or GIF file (or perhaps an animated GIF is causing the problem). You could try isolating the image triggering this message and then temporarily removing it.
> the browser stops responding and it won't load the page.
As for this ... do you have a lot of image nodes on your site? Perhaps the dropdown select list is showing every image as an option and if there are too many image nodes, it just takes a very very long time for your browser to operate?
What browser are you using, by the way?
We do have a lot of images, we have imported the data from the old site, and there are several years worth of images.
I am using firefox, I will test IE to see if it gives the same problem. (sorry forgot to do that) I think I have the image viewer set to show 100 images per page, I can drop that number down and report back.
If having a lot of images is an issue, you can try changing the widget for your image nodereference field from a select dropdown to an autocomplete textfield.
That fixes it so the number of images is the problem, but I was kind of hoping to get a view like the visual editor has of images to browse through and pick from.
Is there a way to do that? Nevermind, I see the images in the dropdown!
That might just work!
thanks!

Hi,
> It locks up.
Can you describe the symptoms of this 'locking up'? Do you see a white screen on your browser? Or do you see an error message?
Can you check your web server logs for any PHP errors?
If you undo the node reference image field, does the symptom go away?