To reproduce:

Include a file field on your secure notes content type.
Create an invitation to make a secure note.
Follow the invitation link.
Upload a file (choose a file and press Upload).

You'll get an error:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'node_form' not found or invalid function name in drupal_retrieve_form() (line 841 of /var/www/zivtechnotes/code/includes/form.inc).

and the file upload widget is gone.

The attached patch fixes this by using form_load_include and drupal_build_form rather than module_load_include and the node_add function.

CommentFileSizeAuthor
secure_notes.patch1011 bytesjody lynn

Comments

tizzo’s picture

Status: Active » Reviewed & tested by the community

I reviewed and tested, LGTM.

  • lliss committed f9660c9 on 7.x-1.x authored by Jody Lynn
    Fixes issue #2458043 -- Unable to add files on...
lliss’s picture

Thanks. Committed.

lliss’s picture

Status: Reviewed & tested by the community » Closed (fixed)