Closed aleksandrosadchiy closed 6 years ago
@cdiacon Steps to reproduce
User able to save config without host etc. After extension is enabled plugins will always override email functionality.
@aleksandrosadchiy
Awesome, thanks for the details and for great replication steps, I'll get this replicated and fixed,
Spasibo.
ISSUE Invalid configs cause an issue when extension installed but not configured
[2018-03-09 16:03:17] report.CRITICAL: Invalid type given. String expected {"exception":"[object] (Zend_Mail_Protocol_Exception(code: 0): Invalid type given. String expected at /var/www/html/vendor/magento/zendframework1/library/Zend/Mail/Protocol/Abstract.php:147)"} []
Zend_Mail_Protocol_Abstract
STEPS
you will find "connector_transactional_emails" instead of "transactional_emails"
This will cause an issue like:
[2018-03-09 16:03:17] report.CRITICAL: Invalid type given. String expected {"exception":"[object] (Zend_Mail_Protocol_Exception(code: 0): Invalid type given. String expected at /var/www/html/vendor/magento/zendframework1/library/Zend/Mail/Protocol/Abstract.php:147)"} []
EXPECTED RESULT
Configs are correct and extension disabled after installation
ACTUAL RESULT
Configs are incorrect and extension affect email functionality dotmailer-magento2-extension/Helper/Transactional.php
Always return TRUE and check passed.
maybe one of possible ways is change config in config.xml from connector_transactional_emails to transactional_emails
to