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 »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Unsubscribe Url in CiviMail
Pages: [1]

Author Topic: Unsubscribe Url in CiviMail  (Read 1326 times)

Joris

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
Unsubscribe Url in CiviMail
May 10, 2012, 12:36:48 pm
Hi,

We recently installed civicrm in a wordpress environment ( civi 4.1.2  and wp 3.3.2 ) and today we noticed a problem with the unsubscribeUrl token.
The token doesn’t seem to get replaced properly.

After some googleling I was able to find this issue: https://fisheye2.atlassian.com/viewrep/CiviCRM/branches/v4.1/CRM/Utils/System/WordPress.php?r1=39799&r2=40189 and
 http://issues.civicrm.org/jira/browse/CRM-10172
I’ve change the $script variable into $base.
At first glance I thought it solved the issue, but it generated an URL like this:
https://<ourwebsite>/?page=CiviCRM&q=civicrm/mailing/unsubscribe&reset=1&jid=25&qid=33&h=973623d90ba0a6fd

If I manually add “wp-admin/admin.php” ( and I’m logged in ), I get the unsubscribe question.
Is there a way to correct the url that is generated?

Thanks,
Joris

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: Unsubscribe Url in CiviMail
May 10, 2012, 01:42:31 pm

that url is correct, check:

http://wordpress.demo.civicrm.org/?page=CiviCRM&q=civicrm/mailing/unsubscribe&reset=1&jid=25&qid=33&h=973623d90ba0a6fd

(the error is because we dont have a mailing job etc that matches the params)

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

Joris

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
Re: Unsubscribe Url in CiviMail
May 11, 2012, 02:16:21 am
Thanks for your reply,

We tracked the issue down to the wordpress template/theme. :-[

Because there were no messages on our site, I've delete the notification saying "no messages ..." and replaced it with a login module. But this caused the civi unsubscribe question not to appear.
When I added a blog post / message and activated the template code that hadn't been altered, the civi unsubscribe question appears just fine.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Unsubscribe Url in CiviMail

This forum was archived on 2017-11-26.