Download & Extend

Call to undefined function dragndrop_uploads_node_type_form_submit()

Project:Drag'n'Drop Uploads
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Im testing your D7-version (very nice module BTW!),
and when I save a node, which has DnDU activated, I get the following error, which appears on a totally white screen:
"Fatal error: Call to undefined function dragndrop_uploads_node_type_form_submit() in C:\Damp\Sites\drupal-7.0-alpha6\includes\form.inc on line 1157"
However, the node seems to have been saved just fine.

Comments

#1

Confirm this is still an issue with beta1, the line is 1303 though.

#2

#3

bug still exists in latest dev version. Looking at the code, the function just isn't there, and since I don't know what it's supposed to do I couldn't really write a patch. But when I comment out line 75 of dragndrop_uploads.module ($form['#submit'][] = 'dragndrop_uploads_node_type_form_submit';) everything still seems to work...

#4

Status:active» needs review
AttachmentSize
902356.patch 553 bytes

#5

I've also ran into this issue on a fresh install of D7. I commented the function out just like #4 did.

#6

I got this error in D7 too.

There's the same submit handler with no function of that name in the stable D6 version, too. Doesn't this cause an issue there...?

#7

There is no hook named like that. #4 has is right. I wonder what the intended use for this was. (Or even, was this put here by mistake?)

#8

The line $form['#submit'][] = 'dragndrop_uploads_node_type_form_submit'; does look like a hook, but is a call-back.
I'd use an underscore, to indicate the 'private' nature.
You can use it as an extra hook to be called at submitting the data.
I can Imagine the date collected at drag&dropping still must be saved at the proper variable before saving the data.

BTW, ITMT i have switched to http://drupal.org/project/multiupload_imagefield_widget

#9

Status:needs review» fixed

Fixed in 7.x-1.x

#10

Status:fixed» closed (fixed)

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

nobody click here