- Issue created by @David Urban
I have just migrated the website from using Private File system to AWS S3FS (private) using 8.x-3.7 of https://www.drupal.org/project/s3fs → . After the migration, all already created archives disappeared and new ones are not created. Images are behaving normally and the archives are present is S3 bucket.
1. Install File Compressor Field and S3FS, activate and configure. S3FS should have following configs enabled "Use S3 for private:// files" and "Upload all files as private in S3".
2. Try uploading files/image to a field, which should get compressed.
3. Nothing happens, file is not created nor gets displayed on frontend.
I have no idea what is going on. No errors in Drupal log after editing image field. No errors in Apache log.
When I try "/admin/config/media/file_compressor_field/rebuild", I get:
TypeError: Cannot access offset of type Drupal\Core\Entity\ContentEntityType in isset or empty v Drupal\Core\Entity\EntityTypeManager->getHandler() (řádek 259 souboru /web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).
#0 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(195): Drupal\Core\Entity\EntityTypeManager->getHandler()
#1 /home/globalauto/apps-data/ga-is-komise-beta/web/modules/contrib/file_compressor_field/src/Form/FileCompressorRebuildForm.php(145): Drupal\Core\Entity\EntityTypeManager->getStorage()
#2 [internal function]: Drupal\file_compressor_field\Form\FileCompressorRebuildForm->submitForm()
#3 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/Form/FormSubmitter.php(129): call_user_func_array()
#4 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/Form/FormSubmitter.php(67): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers()
#5 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm()
#6 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/Form/FormBuilder.php(326): Drupal\Core\Form\FormBuilder->processForm()
#7 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#8 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#9 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#10 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#11 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#12 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#13 /home/globalauto/apps-data/ga-is-komise-beta/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /home/globalauto/apps-data/ga-is-komise-beta/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#15 /home/globalauto/apps-data/ga-is-komise-beta/web/modules/contrib/redirect_after_login/src/RedirectMiddleware.php(44): Symfony\Component\HttpKernel\HttpKernel->handle()
#16 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Drupal\redirect_after_login\RedirectMiddleware->handle()
#17 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#18 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#19 /home/globalauto/apps-data/ga-is-komise-beta/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\Core\StackMiddleware\ContentLength->handle()
#20 /home/globalauto/apps-data/ga-is-komise-beta/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#21 /home/globalauto/apps-data/ga-is-komise-beta/vendor/asm89/stack-cors/src/Cors.php(53): Drupal\page_cache\StackMiddleware\PageCache->handle()
#22 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Asm89\Stack\Cors->handle()
#23 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#24 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#25 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#26 /home/globalauto/apps-data/ga-is-komise-beta/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#27 /home/globalauto/apps-data/ga-is-komise-beta/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#28 {main}
Active
2.2
Code