We are creating a mailing and trying to track click-throughs. When 'Track Click-Throughs' is enabled, clicking on any of the links results in a URL like this: https://mysite.org/sites/all/modules/contrib/civicrm/extern/url.php?u=55&qid=2261 and does not go to the link itself. This is what shows on screen:
Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /mysite.org/sites/all/modules/contrib/civicrm/CRM/Mailing/Event/BAO/TrackableURLOpen.php on line 92
Warning: Cannot modify header information - headers already sent by (output started at /mysite.org/sites/all/modules/contrib/civicrm/CRM/Mailing/Event/BAO/TrackableURLOpen.php:92) in /mysite.org/sites/all/modules/contrib/civicrm/CRM/Utils/System.php on line 423
If I do not enable Trackable Click Throughs, then the links work. It appears to be two different issues, but I'm not sure how to resolve either, and if fixing one will take care of the other.
I'm on Drupal 7.38 and Civi 4.5.8.
I've doubled checked civicrm.settings.php (per CiviMail Tracked URLs) and my BaseURL is
define( 'CIVICRM_UF_BASEURL' , 'https://mysite.org/' );
I've looked at the links in civicrm_mailing_trackable_url in my database and at the permissions of civicrm/extern/url.php (per Why do track click through). The links look correct and the permissions of url.php are 644.
Any help or direction on either of the warnings is greatly appreciated!