Details
Description
All external urls in Civimail mailings cause a 500 error when clicked.
I have traced the source of the error to line 441 in CRM/Utils/System.php.
This is my suggested patch, simply replacing the problem line with the previous version, but I don't know whether this affects anything else:
– self::setHttpHeader('Location', $url);
++ header('Location: ' . $url);
I've not tried to replicate on the demo site, as I don't think that allows for mailings to be sent out
Attachments
Issue Links
- is supplemented by
-
CRM-17965 Contribution page widget broken on Drupal installations
-
- Done/Fixed
-
- links to
I receive this fatal error on localhost:
Fatal error: Call to undefined function drupal_add_http_header() in C:\xampp\htdocs\civi\sites\all\modules\civicrm\CRM\Utils\System\Drupal.php on line 789
Confirmed this on dmaster, so I'm escalating it.
It doesn't just affect external URLs, it's all URLs.
This will be because Drupal is not bootstrapped when we hit the scripts in extern/ and it's trying to use a Drupal function. So the proposed fix does do the job - but where else is this going to be broken?