When I add links to external websites (such as www.wikipedia.org) to mailings and check 'track click through' the links go to a page on my website that says 'page doesn't exist'. The url is something like this: mysite/wp-content/plugins/civicrm/civicrm/extern/url.php?u=30&qid=44.
This is obviously a key reason for wanting to use civiCRM so it'd be great to have link tracking working.
I see people have had this problem in the past (see here and here) but I can't seem to find a solution for it.
I have looked at extern/url.php and TrackableURLOpen.php and there don't seem to be any problems. (gists: trackableURLOpen.php url.php)
I'm using wordpress and civicrm 4.6.
My civicrm files are here: http://mysite/wp-content/plugins/civicrm/civicrm/
My temp files are here: http://mysite/wp-content/plugins/files/civicrm/
My civicrm.settings.php file says:
global $civicrm_root;
$civicrm_root = __DIR__ . '/civicrm/';
if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) {
define( 'CIVICRM_TEMPLATE_COMPILEDIR', __DIR__ . '/files/civicrm/templates_c/' );
}
Should the root be DIR . '/civicrm/civicrm/'? because that doesn't work.