CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Links not working in CiviMail?
Pages: [1]

Author Topic: Links not working in CiviMail?  (Read 1521 times)

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Links not working in CiviMail?
January 10, 2010, 06:09:42 pm
We're running the latest stable version of CiviCRM.

Whenever we send ourselves a test of an email, the links look like this:

https://www.ourdomain.com/sites/all/modules/civicrm/extern/url.php?u=46&qid=48

If we click on the link, we get a page cannot be found error.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Links not working in CiviMail?
January 10, 2010, 09:23:27 pm
Do you have clean url's for your site?

Kurund
Found this reply helpful? Support CiviCRM

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Links not working in CiviMail?
January 17, 2010, 06:56:35 pm
Also:
- try unchecking the tracking, which re-writes the links
- I had this problem and never did solve it, but it went away when I switched to a better host
Thanks to those who help create and enhance civiCRM!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Links not working in CiviMail?
January 26, 2010, 10:21:41 am
I had this problem the other day on a site that I had just moved & upgraded to 3.0.4

I got it working by changing:

line 75 of civicrm.config.php

to this

            $confdir = $currentDir . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR ;

ie. removing the " . sites"

            $confdir = $currentDir . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR  . "sites";

so the directory it looks for becomes

/home/www-home/drupal6/sites/sitename/

Not the non-exisitant

/home/www-home/drupal6/sites/sitename/sites

However, this is a quick fix to get a mail out & I need to review why I had to do it.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Links not working in CiviMail?
February 03, 2010, 02:21:28 am
Quote from: Eileen on January 26, 2010, 10:21:41 am
I got it working by changing:

line 75 of civicrm.config.php

to this

            $confdir = $currentDir . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR ;

ie. removing the " . sites"

            $confdir = $currentDir . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR  . "sites";

so the directory it looks for becomes

/home/www-home/drupal6/sites/sitename/

Not the non-exisitant

/home/www-home/drupal6/sites/sitename/sites

However, this is a quick fix to get a mail out & I need to review why I had to do it.

I have no idea whether this will make any sense, but do note that the former path contains two .. elements, so for $currentDir equal to /home/www-home/drupal6/sites/sitename the $confdir variable is expected to be /home/www-home/drupal6/sites/sitename/../../sites (which is /home/www-home/drupal6/sites after the .. get interpreted).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Links not working in CiviMail?
February 03, 2010, 10:20:00 am
Yes it starts in currentdir

/home/www-home/drupal6/sites/sitename/modules/civicrm

when it moves up two it is in

/home/www-home/drupal6/sites/sitename/

which is where civicrm_settings.php is located
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Alan.Guggenheim

  • Guest
Re: Links not working in CiviMail?
February 03, 2010, 11:25:09 am
Not sure if that is the case and if that will help, but it just happened to us, so here it is;
In Civimail, when we copy a link such as http://home/.... at email creation, it looks ok, but in fact the editor (ckeditor) in our case does not really remove the http:// (which it should as it has a separate field for link type, showing http://) and  then at mailing time, the link is not working.
I noticed also that if you actually move the cursor inside the link field on the editor popup, it does clean-up the link!

Good luck

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Links not working in CiviMail?

This forum was archived on 2017-11-26.