Hi,

I installed this module. Everything working fine. When I create a settings.local.php file for disable cache it showing error like this .

Warning: ZipArchive::getNameIndex(): Invalid or unitialized Zip object in BackupMigrate\Core\Filter\CompressionFilter->_ZipEncode() (line 301 of /home/cabox/workspace/modules/backup_migrate/vendor/backupmigrate/core/src/Filter/CompressionFilter.php) #0 /home/cabox/workspace/core/includes/bootstrap.inc(548): _drupal_error_handler_real(2, 'ZipArchive::get...', '/home/cabox/wor...', 301, Array) #1 [internal function]: _drupal_error_handler(2, 'ZipArchive::get...', '/home/cabox/wor...', 301, Array) #2 /home/cabox/workspace/modules/backup_migrate/vendor/backupmigrate/core/src/Filter/CompressionFilter.php(301): ZipArchive->getNameIndex(0) #3 /home/cabox/workspace/modules/backup_migrate/vendor/backupmigrate/core/src/Filter/CompressionFilter.php(142): BackupMigrate\Core\Filter\CompressionFilter->_ZipEncode(Object(BackupMigrate\Core\File\WritableStreamBackupFile), Object(BackupMigrate\Core\File\WritableStreamBackupFile)) #4 /home/cabox/workspace/modules/backup_migrate/vendor/backupmigrate/core/src/Plugin/PluginManager.php(120): BackupMigrate\Core\Filter\CompressionFilter->afterBackup(Object(BackupMigrate\Core\File\WritableStreamBackupFile), Array) #5 /home/cabox/workspace/modules/backup_migrate/vendor/backupmigrate/core/src/Main/BackupMigrate.php(96): BackupMigrate\Core\Plugin\PluginManager->call('afterBackup', Object(BackupMigrate\Core\File\WritableStreamBackupFile)) #6 /home/cabox/workspace/modules/backup_migrate/backup_migrate.module(26): BackupMigrate\Core\Main\BackupMigrate->backup('default_db', 'download') #7 /home/cabox/workspace/modules/backup_migrate/src/Form/BackupMigrateAdvancedBackupForm.php(94): backup_migrate_perform_backup('default_db', 'download', Array) #8 [internal function]: Drupal\backup_migrate\Form\BackupMigrateAdvancedBackupForm->submitForm(Array, Object(Drupal\Core\Form\FormState)) #9 /home/cabox/workspace/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) #10 /home/cabox/workspace/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #11 /home/cabox/workspace/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #12 /home/cabox/workspace/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('backup_migrate_...', Array, Object(Drupal\Core\Form\FormState)) #13 /home/cabox/workspace/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\backup_migrate\Form\BackupMigrateAdvancedBackupForm), Object(Drupal\Core\Form\FormState)) #14 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #15 /home/cabox/workspace/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #16 /home/cabox/workspace/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #17 /home/cabox/workspace/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #18 /home/cabox/workspace/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #19 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #20 /home/cabox/workspace/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array) #21 /home/cabox/workspace/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #22 /home/cabox/workspace/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /home/cabox/workspace/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /home/cabox/workspace/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /home/cabox/workspace/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /home/cabox/workspace/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /home/cabox/workspace/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /home/cabox/workspace/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /home/cabox/workspace/core/lib/Drupal/Core/DrupalKernel.php(652): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /home/cabox/workspace/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #31 {main}.

CommentFileSizeAuthor
#3 local-setting.txt3.77 KBpankajlogical
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pankajdrync created an issue. See original summary.

Alex Andrascu’s picture

Can you please post the relevant content of your local settings file ?

pankajlogical’s picture

FileSize
3.77 KB

Hi Alex Andrascu,

Please find local settings file.

couturier’s picture

@pankajxenix I want you to be aware that a new, stable D8 release of Backup and Migrate is expected very soon. Please be looking for it and try again once the new version is released. You might find that your problem has been resolved. Thanks.

couturier’s picture

Status: Active » Postponed (maintainer needs more info)
Alex Andrascu’s picture

Status: Postponed (maintainer needs more info) » Active

Confirmed, this is indeed happening while using the Zip Compression option. Looking into it.

Alex Andrascu’s picture

Version: 8.x-4.0-alpha2 » 8.x-4.x-dev
Alex Andrascu’s picture

Looked into it and found ZipEncode and ZipDecode mixed between each other. Meaning it's currently trying to perform an inflate when it should really deflate and the other way around. Almost fixed the ZipEncode but still working on fixing the reported filesize for the compressed file which currently wrong.

Compressed filesize also wrong for other compression filters but I don't have time to open another ticket.

Alex Andrascu’s picture

Priority: Normal » Major

I'm going to set this to major as it's currently the only one I'm aware of blocking a RC

  • Alex Andrascu committed 04c278a on 8.x-4.x
    Issue #2878538 by pankajxenix, Alex Andrascu, Eugen Andrasescu: Warning...
Alex Andrascu’s picture

Status: Active » Fixed

Pushed to 8.x-4.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.