When using the new "Download as a zip with all assets" function added in
https://www.drupal.org/project/single_content_sync/issues/3346367
β¨
3346367-embed-media
Fixed
, this error occurs:
Deprecated function: ZipArchive::open(): Using empty file as ZipArchive is deprecated in Drupal\Core\Archiver\Zip->__construct() (line 31 of core/lib/Drupal/Core/Archiver/Zip.php).
Drupal\Core\Archiver\Zip->__construct('/var/www/html/docroot/sites/default/files/export/zip/node-content_page-ed6a8f07-bba5-41e8-a774-12574861edaf.zip') (Line: 57)
Drupal\Core\Archiver\ArchiverManager->createInstance('Zip', Array) (Line: 73)
Drupal\Core\Archiver\ArchiverManager->getInstance(Array) (Line: 158)
Drupal\single_content_sync\ContentSyncHelper->createZipInstance('/var/www/html/docroot/sites/default/files/export/zip/node-content_page-ed6a8f07-bba5-41e8-a774-12574861edaf.zip', 8) (Line: 87)
Drupal\single_content_sync\ContentFileGenerator->generateZipFile(Object, ) (Line: 217)
Drupal\single_content_sync\Form\ContentExportForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 607)
Drupal\Core\Form\FormBuilder->processForm('single_content_sync_export_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
The zip file is created and downloads without issue.