Hi,
Good day!
I’m Paul, a consultant at HTL Group, and we would like to report that your versions of Mautic 2.2.1 and 2.3 are having issues when calling the API base email send out. Currently, we are using a separate PHP script in which utilized the API base commands of Mautic and prior to 2.2.1 this script was working perfectly for us. We only notice this issue when we have adopted the new versions that you have released. And because we need the email API badly for the approach that we are using in our application is somewhat hard to reconstruct, we decided to give your team a message about the matter. But we have not yet received any response on our post on the forum so we decided to check the core files of Mautic. And upon checking, we discovered an error on EmailApiController.php under app/bundles/EmailBundle/Controller/Api, particularly on the class function sendLeadAction, where when the application calls this condition
if (MailHelper::applyFrequencyRules($lead)) {
…
}
an error occurs. When we try to force the contents of the error from the value returned by the API this is displayed:
Fatal_error:Cannot_access_protected_property_MauticEmailBundleControllerApiEmailApiController::$factory_in …/app/bundles/EmailBundle/Helper/MailHelper_phpon_line1843<br/>
We modified the template discussed on the error as the factory variable found under the MailHelper seems to be not defined on this function. However, after the modification, another variable seems to be lost as the frequencyRule is catching a Null value. And for this reason, we decided to skip the condition by commenting it in calling the class function applyFrequencyRules as we don’t have the exact knowledge about the purpose of this helper which may bring more issue if we tried to amend it. Also, this is the main reason why the email is not functioning on the API side. With this in mind, we would like to notify your team about this matter so that adjustments maybe made on this end of Mautic for the next release.
We hope for an urgent response on that matter as this is connected with our application. Thank you and have a great day a head.
Thanks,
HTL Group team
Hi,
Good day!
I’m Paul, a consultant at HTL Group, and we would like to report that your versions of Mautic 2.2.1 and 2.3 are having issues when calling the API base email send out. Currently, we are using a separate PHP script in which utilized the API base commands of Mautic and prior to 2.2.1 this script was working perfectly for us. We only notice this issue when we have adopted the new versions that you have released. And because we need the email API badly for the approach that we are using in our application is somewhat hard to reconstruct, we decided to give your team a message about the matter. But we have not yet received any response on our post on the forum so we decided to check the core files of Mautic. And upon checking, we discovered an error on EmailApiController.php under app/bundles/EmailBundle/Controller/Api, particularly on the class function sendLeadAction, where when the application calls this condition
if (MailHelper::applyFrequencyRules($lead)) {
…
}
an error occurs. When we try to force the contents of the error from the value returned by the API this is displayed:
Fatal_error:Cannot_access_protected_property_MauticEmailBundleControllerApiEmailApiController::$factory_in …/app/bundles/EmailBundle/Helper/MailHelper_phpon_line1843<br/>
We modified the template discussed on the error as the factory variable found under the MailHelper seems to be not defined on this function. However, after the modification, another variable seems to be lost as the frequencyRule is catching a Null value. And for this reason, we decided to skip the condition by commenting it in calling the class function applyFrequencyRules as we don’t have the exact knowledge about the purpose of this helper which may bring more issue if we tried to amend it. Also, this is the main reason why the email is not functioning on the API side. With this in mind, we would like to notify your team about this matter so that adjustments maybe made on this end of Mautic for the next release.
We hope for an urgent response on that matter as this is connected with our application. Thank you and have a great day a head.
Thanks,
HTL Group team