The following output came from running the updates on a site that used to have v3.6:

Invalid argument supplied for foreach() crud.inc:545                                                         [warning]
Performed update: backup_migrate_update_7309                                                                 [ok]
CommentFileSizeAuthor
#6 backup_migrate-n3154484-6.patch8.14 KBdamienmckenna

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

Status: Active » Closed (cannot reproduce)

Not able to reproduce this currently.

damienmckenna’s picture

damienmckenna’s picture

Status: Closed (cannot reproduce) » Active
Parent issue: » #3158405: Plan for Backup and Migrate 7.x-3.9

Yes, this still happens on that one site.

damienmckenna’s picture

Title: Invalid argument supplied for foreach() crud.inc:545 » Invalid argument supplied for foreach() crud.inc:545 in update_7309
damienmckenna’s picture

StatusFileSize
new8.14 KB

The problem happens when the current schema cache is empty and drupal_get_schema('backup_migrate_schedules'); returns FALSE, which can happen during the update process as the entity system is unstable at that point, which is why you should only use direct database requests.

As such, update 7309 should be rewritten to use direct queries, and could use an update script.

This is a WIP, it needs further work.

damienmckenna’s picture

ivnish’s picture

Status: Active » Closed (outdated)

Drupal 7 is EOL. This issue will be closed.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.