PHP 8.1.x. compaitibility

Created on 29 November 2022, about 2 years ago
Updated 29 January 2023, almost 2 years ago

Once upgraded to PHP 8.1x, the zip functionality seems to break. This is from a download.

It does, however, produce a zip archive, so possibly it's a non-issue.

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('/Users/jjohnson/Sites/clafh/sites/default/files/export/zip/node-page-d1bf4989-f5cc-4f7c-a681-4a2f009b4a31.zip') (Line: 57)
Drupal\Core\Archiver\ArchiverManager->createInstance('Zip', Array) (Line: 73)
Drupal\Core\Archiver\ArchiverManager->getInstance(Array) (Line: 143)
Drupal\single_content_sync\ContentSyncHelper->createZipInstance('/Users/jjohnson/Sites/clafh/sites/default/files/export/zip/node-page-d1bf4989-f5cc-4f7c-a681-4a2f009b4a31.zip') (Line: 84)
Drupal\single_content_sync\ContentFileGenerator->generateZipFile(Object, 1) (Line: 219)
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: 592)
Drupal\Core\Form\FormBuilder->processForm('single_content_sync_export_form', Array, Object) (Line: 320)
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: 564)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->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: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ› Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States codeelegance

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024