The error message started to appear when the hosting service upgraded to PHP 5.4 with the default strict error setting.
Normally come when you are going to change any backup & migrate profile or to changes in advance setting.

The attached patch gets rid of this annoying error message in the most simpleminded way.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rohit.wadhwa’s picture

YesCT’s picture

Issue tags: -php 5.4 issues +PHP 5.4

using the more common tag (so I can delete the less commonly used one)

couturier’s picture

Version: 6.x-2.8 » 8.x-4.x-dev

Drupal 6 core and Backup and Migrate 6.x are no longer supported. I am moving this to the 8.x branch in case it may still be an issue.

couturier’s picture

Status: Needs review » Closed (outdated)

I'm actually going to close this issue since Drupal 8 requires a much newer version of PHP, so I think this issue is outdated.

DamienMcKenna’s picture

Status: Closed (outdated) » Fixed

Committed. Thanks.

joelpittet’s picture

The spacing formatting on the patch is a bit wonky and it's only the second argument that needs to be a variable before passed by reference. Mind if I add a quick fix patch?

DamienMcKenna’s picture

Sure.

joelpittet’s picture

Version: 8.x-4.x-dev » 6.x-1.x-dev

I just realized this is only for Drupal 6, the version confused me. I do have this change on a D6 site but I'm not concerned enough to write a patch.

Status: Fixed » Closed (fixed)

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

izmeez’s picture

The patch in comment #1 also applies to backup_migrate-6.x-2.x however, the patch includes tab characters.

couturier’s picture

@izmeez the Drupal 6 version of this module is no longer supported.

izmeez’s picture

Just thought with the D6LTS continuing to make efforts including php 7.2 compatibility it might be useful to some people if they find this thread and backup_migrate has been a staple for a long time. Thank you.

izmeez’s picture

It's interesting that the usage statistics for backup_migrate-6.x-2.8 show for week starting December 8, 2018 there are 4,629 sites using it. See https://www.drupal.org/project/usage/2128473

izmeez’s picture

@couturier I respect your comment in #11.

Nonetheless, attached is what may be a better patch for both backup_migrate-6.x-2.x and 6.x-3.x where the previous patch has been committed to dev. This patch follows up on the comment in #6 and is in fact exactly what is in backup_migrate-7.x-3.x

I also noticed that the LICENSE.txt file has the wrong permissions, it should be 644 not 755. I am adding a patch for that here in case anyone needs to update an older D6 site.

Thank you all for your efforts over the years. It is appreciated.

DamienMcKenna’s picture

Thanks for your continued work on this.

Please note, files should have the 644 permission, not 755.

izmeez’s picture

@DamienMcKenna Thanks for your comment. Yes, files should be 644. In my initial writing of comment #14 I made a mistake which I later edited to correct the comment. The patch for file permissions itself is correct, the LICENSE.txt file default is 755 and needs to be changed to 644. I just added that as a quick fix patch while trying to resolve the main issue.

izmeez’s picture

The D6LTS project includes backup_migrate 6.x-2.x therefore I have added the patch from comment #14 to #3022206: [backup_migrate] php warning only pass variables by reference and can leave this issue to lie in peace. The LICENSE.txt file is no longer a part of the project and references to it no longer apply.