- Issue created by @idesigntocode
- πΊπΈUnited States briantschu
I think this is a duplicate of π PHP 8.1.x. compaitibility Fixed , which was merged into version 1.3.x-dev. Does using the dev version of the module, or applying the patches mentioned in comment #4 on that issue ( #3324392-4: PHP 8.1.x. compaitibility β ) fix the error for you?
- Status changed to Postponed: needs info
over 1 year ago 7:09am 16 February 2023 - πΊπ¦Ukraine nginex
I could not reproduce this issue, it's kind of weird that method createZipInstance accepts correct file path to your zip, but afterwards it gets lost in Drupal core methods.
Please let me know what Drupal core version do you use?
I also had the same problem on PHP 8.0 and 8.1.
Works without a problem on 7.4
Drupal version: 9.5.3Hi @briantschu which core patch are you referring to?
Hi @nginex I'm using 9.5.2 need to bump it to 9.5.3.
I'm on PHP 8.0
- Status changed to Active
over 1 year ago 6:26pm 28 February 2023 - Status changed to Closed: cannot reproduce
over 1 year ago 12:18pm 1 March 2023 - πΊπ¦Ukraine nginex
I could not reproduce the issue. I used clean drupal core 9.5.3 installation with php 8.1
I recommend you to debug getInstance method of ArchiverManager.php class.
I assume that the code below returns empty value, there might be some issue with handling temporary files on your system.
$this->fileSystem->realpath($configuration['filepath'])
- π¦π·Argentina drupal-son
Hi @nginex,
I have the same problem.
I'm using Single Content Sync 1.4.3, Drupal Core 9.5.11 and PHP 8.1.24
I'm using Acquia hosting.
I'm not using any Drupal Core patch for this purpose though.The weird thing is that the import works fine on dev, qa and uat environments but fails on prod environment.
All the environments have the same configuration deployed.I can export on uat and import into dev or qa but I get the error when importing into prod.
ValueError: ZipArchive::open(): Argument #1 ($filename) cannot be empty in ZipArchive->open() (line 31 of /mnt/www/html/MYCONTAINER/app/MYAPP/docroot/core/lib/Drupal/Core/Archiver/Zip.php) #0 /mnt/www/html/MYCONTAINER/app/MYAPP/docroot/core/lib/Drupal/Core/Archiver/Zip.php(31): ZipArchive->open('')
I can see on the imported environment (dev, qa, and even prod) at `/admin/content/files` that my file has been uploaded as a temporary status.
Thanks.
- π¦π·Argentina drupal-son
I can add more info, I guess this might be something related with how and where the temporary files are stored.
Each Acquia environment have a different Drupal temporary folder configured, it works for all envs except for prod.
Might be something at the folder level, permissions, symlink or something on how Acquia is handling that temporary folder at `mnt/tmp/MYCONTAINERENV` directory.Does this ring any bell?
Thanks