backdrop-contrib / backup_migrate

Port of the Drupal backup_migrate module to Backdrop
GNU General Public License v2.0
7 stars 14 forks source link

Possible Problem with Backup and Migrate Restore DB #64

Closed stpaultim closed 3 years ago

stpaultim commented 3 years ago

Just creating this ticket based upon this issue reported in the forum. I assume that this user also updated core to 1.19.0.

I updated the backup_migrate module and it was able to successfully create a backup. However when I try to restore the backup. I get the following error:

Call to unidentified method DatabaseConnection_mysql::prepare()

I am testing on some local development sites. The backup seems correct when I manually restore the database.

https://forum.backdropcms.org/comment/2867#comment-2867

I have not recreated or confirmed this issue. Has anyone else had this problem?

quackers8me commented 3 years ago

I can confirm the issue and found that it's due to removing the 'exends PDO' from the DatabaseConnection class to accommodate PHP8. I am looking for a solution and have reached out to the Drupal module maintainer.

stpaultim commented 3 years ago

@quackers8me - Thanks for the follow-up.

The user who reported this problem added the following information to the forum discussion.

I was using a fresh install of backdrop 1.19.0. No other modules; just backup_migrate.

quackers8me commented 3 years ago

In discussion with the D7 maintainer, the fix may require a change to backdrop core.

quicksketch commented 3 years ago

The core issue for tracking this is https://github.com/backdrop/backdrop-issues/issues/5094. Though we don't have any suggestion yet as to what the right fix would be on the core side either.

quackers8me commented 3 years ago

@quicksketch I wasn't sure if it should go there so I created a new one. I will update that issue instead.

stpaultim commented 3 years ago

I experienced this problem on one of my own sites yesterday.