Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When adding a group node the form is rendered on the enabled theme (and not on the admin theme despite the proper configs).
If the content type has a file field, the user is unable to upload the file with the following 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/vhosts/drupal/includes/form.inc).
Comment | File | Size | Author |
---|---|---|---|
#2 | group-2492383-2.patch | 3.02 KB | kristiaanvandeneynde |
#1 | 2492383-gnode-broken-file-upload.patch | 946 bytes | ydahi |
Comments
Comment #1
ydahiSolution found here: http://drupal.stackexchange.com/questions/35165/file-upload-broken-on-no...
Comment #2
kristiaanvandeneyndeI've reworked the function to do what we need at the right level (form). No need to place the file include on the menu level. I've also fixed the menu items to properly be set as MENU_CALLBACK and changed the page title for node add forms when shown in a group context.
Please review.
Comment #3
ydahiWonderful, patch works as described.
Just a note: I'm not sure if your intention was to have the node edit forms show in the admin theme (if configured that way)? The edit forms are displaying in the front-end theme despite having the site configured to show them in the admin theme.
This isn't a problem for me, but just wanted to add that side note in case your patch above tried to address that as well.
Thanks again for the speedy patch!
Comment #5
kristiaanvandeneyndeFixed that one too just now. Check out dev.