You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there 👋
When I try to use the plugin with my WordPress database I get this error in my logs:
Call to undefined method Doctrine\\DBAL\\Driver\\PDO\\MySQL\\Driver::getName() in file '~/apps/user_sql/lib/Platform/PlatformFactory.php' line 42
It seems that the getName() method does not exist for the Doctrine\DBAL\Driver\PDO\MySQL\Driver class. This is probably due to an update to the Doctrine DBAL library where this method was removed or renamed (I'm using NextCloud v.25).
A possible solution would be to replace the call to the getName() method with the use of the getDatabasePlatform() method.
Any information on this please?
Thank you for your help!
Warm regards,
Ludovic 🇷🇪
The text was updated successfully, but these errors were encountered:
Rewrote the function like below, error is gone. Most likely the call to this class should be rewritten and the class removed. But I have no clue about Doctrine and all this MVC stuff.
public static function getPlatform(Connection $connection)
{
return new $connection->getDriver()->getDatabasePlatform()($connection);
}
Hey there 👋
When I try to use the plugin with my WordPress database I get this error in my logs:
It seems that the
getName()
method does not exist for theDoctrine\DBAL\Driver\PDO\MySQL\Driver
class. This is probably due to an update to the Doctrine DBAL library where this method was removed or renamed (I'm using NextCloud v.25).A possible solution would be to replace the call to the getName() method with the use of the getDatabasePlatform() method.
Any information on this please?
Thank you for your help!
Warm regards,
Ludovic 🇷🇪
The text was updated successfully, but these errors were encountered: