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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Civi Mail External links issue
Pages: [1]

Author Topic: Civi Mail External links issue  (Read 1488 times)

iKieran

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal
  • MySQL version: 5.5.28-0ubuntu0.12.04.3 (Ubuntu)
  • PHP version: 5.5.28
Civi Mail External links issue
May 20, 2013, 05:26:45 am
Hi,

I'm setting up a new mailing but the links i'm using are not working once I save it and send a test mailing to myself.
The url's are quite long - 400 characters approx, but when clicking the links from my email I get a url like this:

"example.com/sites/all/modules/civicrm/extern/url.php?u=73&qid=10"

which then redirects to the original url but now its now cut short and only 255 characters long giving me the error:

"Wrong Link   You have clicked on an invalid link. Please make sure that you have typed the link correctly. If are copying this link from a mail reader please ensure that you have copied all the lines in the link."

If I copy and paste the url directly from the mail compositon screen it works fine.

Is there something I need to change in the extern/url.php file or anything else I can do to get this to work??

Many Thanks,

Kieran

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Civi Mail External links issue
May 20, 2013, 06:49:12 am

the url column in the table:

civicrm_mailing_trackable_url

is only 255 chars long and hence u see the below.

For now the easiest option might be to write a patch to increase the value of that to 512 chars and apply the patch to your codebase. Might also want to file an issue and attach the patch

lobo
 
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

iKieran

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal
  • MySQL version: 5.5.28-0ubuntu0.12.04.3 (Ubuntu)
  • PHP version: 5.5.28
Re: Civi Mail External links issue
May 20, 2013, 07:10:05 am
Great Thanks alot, I will get started on the patch asap

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Civi Mail External links issue

This forum was archived on 2017-11-26.