Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after update to Backdrop 1.19.0 #63

Closed
opi opened this issue May 16, 2021 · 10 comments
Closed

Error after update to Backdrop 1.19.0 #63

opi opened this issue May 16, 2021 · 10 comments

Comments

@opi
Copy link
Contributor

opi commented May 16, 2021

Error : Cannot access protected property DatabaseConnection_mysql::$pdo dans backup_migrate_source_db_mysql->_get_db_connection() (ligne 425 dans /path/to/docroot/modules/backup_migrate/includes/sources.db.mysql.inc

Related Backdrop commit may be backdrop/backdrop@4102cd2#diff-a30038705d970e43b622562028439144c59afc2abc9fb53048aff64286fbcfc3

@MustafaDogan78
Copy link

Yes there is a problem. I also saw it. My friend also said.

@bacdropnb
Copy link

yes the same problem exists in my project

@quackers8me
Copy link
Collaborator

I've reviewed the code but cannot find why this error is occurring. I've posted this issue in the above noted issue to see what needs to change.
backdrop/backdrop@4102cd2

@indigoxela
Copy link
Member

As a quick workaround: comment out line 425 in file includes/sources.db.mysql.inc (in module backup_migrate).

That should bring your sites back.

@MustafaDogan78
Copy link

Very useful when moving site. I felt like my car broke down at the top of the mountain. I think backup migrate should have been in the box.

@robnacnamha
Copy link

Similar issue to opi I guess. I created a new vanilla site yesterday with backdrop 1.19.0 and installed backup_migrate using UI and when I came to enable module I got the following error and backup_migrate module not showing up configuration/system, despite appearing to be enabled in module list:

Error: Call to undefined method DatabaseConnection_mysql::exec() in backup_migrate_source_db_mysql->_get_db_connection()

@quackers8me
Copy link
Collaborator

It appears the error is because the sql statement has not been prepared first before executing. I will investigate further how to make the prepare on this particular object.
@indigoxela workaround for commenting out line 425
$this->connection->exec("SET sql_mode=''");

@indigoxela
Copy link
Member

indigoxela commented May 17, 2021

@quackers8me I had no time to dig deeper, but I suspect that old code (from D6 I guess), might be obsolete anyway:

$this->connection->exec("SET sql_mode=''");

At least, the comment above seems to be outdated.

Backups work fine even with that line commented out (did a quick test).

@quackers8me
Copy link
Collaborator

quackers8me commented May 17, 2021 via email

@quackers8me
Copy link
Collaborator

Fixed and release created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants