Hi,
I've had a bit of trouble getting this to work with imagefields.
I have set up a node type 'story' as a parent to an 'image_gallery' node type.
The node creation form for the story type correctly includes the 'image_gallery' form.
Both the node types have an imagefield. The 'story' imagefield works fine but when I attempt to upload an image into the imagefield of the 'image_gallery' node form I get the following error message within a popup:
An error occurred:
<br> <b>Fatal error</b>: Cannot access empty property in <b>W:\www\drupal\sites\all\modules\imagefield\imagefield.module</b> on line <b>1143</b><br> I had a look at the issue thread for the subform element module and happened upon this bit of information relating to the problem.
Comments
Comment #1
Tamar Badichi-Levy commentedSorry for not being around for a while. I have fixed the bug and added a new release. Please let me know if the bug still persists.
Best wishes,
Ofir.
Comment #2
MediaMunkey commentedHi Ofir,
Thanks for checking this issue out. The new code seems to address part of the problem because I am no longer getting the error.
Unfortunately I am now getting another one, this time within the page opossed to as a pop-up.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM content_ WHERE vid = 0 LIMIT 0, 1' at line 1 query: SELECT FROM content_ WHERE vid = 0 LIMIT 0, 1 in W:\www\drupal\includes\database.mysql.inc on line 172.Comment #3
Tamar Badichi-Levy commentedSorry but I could not reproduce this warning. I had it once before and the problem was that the 'upload_max_filesize' variable (from php.ini) was too low.
You can read about it in this discussion.