You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Craft 2 bundles PclZip as a fallback zip library to use if ZipArchive isn't installed on the box. Unfortunately that PclZip class hasn't been updated since 2009 and is not PHP 7.1 compatible.
For Craft 2, the workaround is to install ZipArchive on your box if you want to use PHP 7.1 and Craft will use it automatically. For Craft 3, we've removed the PclZip fallback and just require ZipArchive.
Craft 2.6.2994 added a PHP 7.1 compatible version of PclZip, so it should happen for any subsequent release, but we'd still recommend just installing ZipArchive.
Description
Selecting 'Backup Database' under Settings appears to succeed but nothing is downloaded.
The server log shows an error zipping the SQL:
Presumably this is due to the PHP 7.1 feature: https://wiki.php.net/rfc/invalid_strings_in_arithmetic
Downgrading to PHP 7.0 works around the problem.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: