Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Batch Upload Children can't upload any files #2129

Closed
alxp opened this issue Jul 5, 2022 · 7 comments
Closed

[BUG] Batch Upload Children can't upload any files #2129

alxp opened this issue Jul 5, 2022 · 7 comments
Labels
Type: bug identifies a problem in the software with clear steps to reproduce

Comments

@alxp
Copy link
Contributor

alxp commented Jul 5, 2022

What steps does it take to reproduce the issue?

Tested on ISLE and Virtualbox / Playbook with same errors:

  1. Go to a Repository Item, then click on the Children tab.
  2. Click the '+ Batch Upload Children' button.
  3. Click 'Choose file' and select a file or files to upload.
  • When does this issue occur?

Always

  • Which page does it occur on?

Batch Upload Children

  • What happens?

The error "The file could not be uploaded" is shown on the page.

In Watchdog:

Referrer http://localhost:8000/node/125/members/upload Message The upload directory for the file field could not be created or is not accessible. A newly uploaded file could not be saved in this directory as a consequence, and the upload was canceled.

Location http://localhost:8000/node/125/members/upload?_wrapper_format=drupal_ajax&ajax_form=1&element_parents=upload
Referrer http://localhost:8000/node/125/members/upload
Message Notice: Undefined index: #field_name in file_managed_file_save_upload() (line 1438 of /var/www/html/drupal/web/core/modules/file/file.module)
#0 /var/www/html/drupal/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real(8, 'Undefined index...', '/var/www/html/d...', 1438)
#1 /var/www/html/drupal/web/core/modules/file/file.module(1438): _drupal_error_handler(8, 'Undefined index...', '/var/www/html/d...', 1438, Array)
#2 /var/www/html/drupal/web/core/modules/file/src/Element/ManagedFile.php(76): file_managed_file_save_upload(Array, Object(Drupal\Core\Form\FormState))
#3 [internal function]: Drupal\file\Element\ManagedFile::valueCallback(Array, Array, Object(Drupal\Core\Form\FormState))
#4 /var/www/html/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(1258): call_user_func_array(Array, Array)
#5 /var/www/html/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(1000): Drupal\Core\Form\FormBuilder->handleInputElement('add_children_fo...', Array, Object(Drupal\Core\Form\FormState))
#6 /var/www/html/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(1070): Drupal\Core\Form\FormBuilder->doBuildForm('add_children_fo...', Array, Object(Drupal\Core\Form\FormState))
#7 /var/www/html/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(574): Drupal\Core\Form\FormBuilder->doBuildForm('add_children_fo...', Array, Object(Drupal\Core\Form\FormState))
#8 /var/www/html/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(320): Drupal\Core\Form\FormBuilder->processForm('add_children_fo...', Array, Object(Drupal\Core\Form\FormState))
#9 /var/www/html/drupal/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\islandora\Form\AddChildrenForm), Object(Drupal\Core\Form\FormState))
#10 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#11 /var/www/html/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#12 /var/www/html/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}()
#13 /var/www/html/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#14 /var/www/html/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#15 /var/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}()
#16 /var/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#17 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /var/www/html/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /var/www/html/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /var/www/html/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /var/www/html/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /var/www/html/drupal/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component

  • To whom does it occur (anonymous visitor, editor, administrator)?

Administrator

Which version of Islandora are you using?

2.4.0

Any related open or closed issues to this bug report?

No

Screenshots:
image

@alxp alxp added the Type: bug identifies a problem in the software with clear steps to reproduce label Jul 5, 2022
@alxp alxp moved this to Todo in Islandora Issues Queue Jul 5, 2022
@jordandukart
Copy link
Member

jordandukart commented Jul 8, 2022

We're tracking a similar issue with this internally with the Batch Upload Children functionality which runs into the similar issues to which you are seeing. Fixing both these forms is work we are willing to undertake and contribute back but it may make sense to align thoughts / direction on the next tech call to ensure everyone is on board for the proposed changes.

@rosiel
Copy link
Member

rosiel commented Jul 29, 2022

I'm guessing you mean Batch Upload Media because I'm finding the same on there, too. I'll put this on the agenda for the tech call following the Conference.

@marc1aj
Copy link

marc1aj commented Aug 18, 2022

It's happening with both Batch Upload Children and Media.

@rosiel
Copy link
Member

rosiel commented Nov 7, 2022

Closed with Islandora/islandora#896

@rosiel rosiel closed this as completed Nov 7, 2022
Repository owner moved this from Todo to Done in Islandora Issues Queue Nov 7, 2022
@rosiel
Copy link
Member

rosiel commented Nov 7, 2022

Docs PR: #2187

@szanati
Copy link

szanati commented Jan 27, 2023

@rosiel I just want to make sure that my systems person just needs to update composer to fix the batch children issue? Thanks.

@rosiel
Copy link
Member

rosiel commented Jan 27, 2023

Yes! They can use Composer to update the Islandora module to a release above 2.5.0. As long as you're already above Islandora 2.0.0, this should work.

composer show islandora/islandora should tell you what version (or commit) of Islandora you're on.
composer update -W islandora/islandora should update the islandora module as well as its dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug identifies a problem in the software with clear steps to reproduce
Development

No branches or pull requests

5 participants