-
Notifications
You must be signed in to change notification settings - Fork 21
PHP Fatal error: Cannot break/continue 1 level in Mandrill.php on line 349 #93
Comments
This is definitely giving a contributor to the HTTP 500 error. |
NOTE this is not a fix! It is a HACK to avoid the 500 errors. |
Reviewing this function, it seems clear that this is not just a hack but indeed the proper fix. |
No more 500 error but bounce did not process for contact - could be related to a different error. perhaps you can comment or refactor so it is clear why the function is returning here. I was never able to successfully get bounce processing to work. |
Please help test. #98 |
tested on CiviCRM 4.5.6 - WP 4.2.5 |
Can you please update the extension and check if still get error Here is the download link: |
Using PHP 5.5.27
I believe the 'continue' should be a 'return' (btw i only found this by looking at the php error_log in the drupal root - might want to do some kind of reporting)
public static function createActivity($value, $context = NULL, &$header = array()) {
$sourceContactId = self::retrieveEmailContactId($value['msg']['sender'], TRUE);
if (!CRM_Utils_Array::value('contact_id', $sourceContactId['email'])) {
continue;
}
The text was updated successfully, but these errors were encountered: