Closed powelles closed 2 years ago
Hi @powelles, I have just released version 3.11.0 and this should fix this issue.
If you're using local integration mode, this should be picked up from your wp-config.php automatically as it will check for either of the following:
define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL);
define('DB_SSL', true);
If using external integration mode, a new 'SSL' field has been added to the database config options in the Magento Admin (Stores > FishPig > WordPress).
I will close this issue but if it's not resolved, please feel free to re-open.
@bentideswell Still getting the error.
The current issue is \PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT = false
is not enough.
\PDO::MYSQL_ATTR_SSL_CA
cannot be blank for some reason and any value like 1
or true
will make it work.
I tried adding the line $config['driver_options'][\PDO::MYSQL_ATTR_SSL_CA] = true;
after vendor/fishpig/magento2-wordpress-integration/App/ResourceConnection.php:95
and everything works.
Thanks for the clarification. I've added this modification and released v3.11.1 and this should resolve the issue.
Currently using magento version 2.4.3-p1 and 3.8.0 of the magento2-wordpress-integration module.
When connecting to MySQL via a connection that requires SSL; Magento will work fine and wordpress will work fine but the wordpress integration breaks. I get the following error:
The Magento env.php has the following lines added to the mysql configuration:
... and my wp-config.php has the following line:
I also have the magento2-wordpress-integration-yoastseo and magento2-wordpress-integration-pluginshortcodewidget modules installed if that makes a difference.