Forum

Thread tagged as: Problem, Backup

Backup App PHP 7 Compatibility

Hi

Is there a compatibility issue with the Backup App and php 7? Once I switched back to PHP 5.6 the app was able to function correctly.

Using PHP 7, I receive the following error:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PclZip has a deprecated constructor in /Users/Toby/Sites/akehurst/admin/addons/apps/perch_backup/pclzip.lib.php on line 190

Warning: Cannot modify header information - headers already sent by (output started at /Users/Toby/Sites/akehurst/admin/addons/apps/perch_backup/pclzip.lib.php:190) in /Users/Toby/Sites/akehurst/admin/addons/apps/perch_backup/PerchBackup.class.php on line 104

Warning: Cannot modify header information - headers already sent by (output started at /Users/Toby/Sites/akehurst/admin/addons/apps/perch_backup/pclzip.lib.php:190) in /Users/Toby/Sites/akehurst/admin/addons/apps/perch_backup/PerchBackup.class.php on line 105
Toby Martin

Toby Martin 1 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

If you don't output the warning to your screen then it will run fine - as you can see the warning is telling us that one of the dependencies will be deprecated in a future version of PHP.

You are getting header warnings because you are outputting that to the screen rather than an error log.

Of course! Sorted.