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) »
  • Tokens broken in CiviMail
Pages: [1]

Author Topic: Tokens broken in CiviMail  (Read 920 times)

John Richardson

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
    • Life Challenge of Southeastern Michigan
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Tokens broken in CiviMail
March 15, 2013, 05:33:16 pm
Hey, got a huge problem: I get the drop down menu for the tokens in CiviMail, but they won't insert. When I select, nothing happens and no code is inserted. They seem to work perfectly in the "Subject" field, but not in the content. Any thoughts?
John Richardson

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Tokens broken in CiviMail
March 15, 2013, 09:19:26 pm
It would help if you can confirm
- if it works correctly on demo
- if behaviour changes in different browsers

I have hit this before but can't recall what the circumstances were - but haven't had the problem recently
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

John Richardson

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
    • Life Challenge of Southeastern Michigan
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Tokens broken in CiviMail
March 16, 2013, 07:02:46 am
Thanks for the reply. I use Chrome, Firefox and Safari. Broken in all. I also share this installation of CiviCRM with several colleagues, users, who report same issue (IE users). I went to demo site, but the new mailing feature seems to require configuration. I get a "your default mailbox has not been configured" message when I attempt to create a new mailing. I am running D7 and 4.2. I am not sure if the token insert has ever worked. Civicrm has been installed for about 6 months and we are working through implementation. My other issue seems to be new (In my other post regarding content going "poof!", not being saved). I am using the wysiwyg api, fyi. I've tried differnet editors. In any case, the behavior does not change in different browsers.

Should we just consolidate the two issues here? Issue 1) content is not automatically saved and cannot be saved in content editor in CiviMail and 2) insert tokens feature is broken (works in subject line but not in content).
« Last Edit: March 16, 2013, 07:41:15 am by ideaman »
John Richardson

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: Tokens broken in CiviMail
March 16, 2013, 08:03:37 am

two recommendations:

1. For now, you can enter some default values for the default mailing. The demo servers do not send out any mail, so entering any random values will work there

2. The wysiwyg integration was community contributed. Would be great if you can do the foll:

a. Switch to the editors that ship with CiviCRM and see if both issues work there. Pretty sure they do, but you should confirm it.

b. Once a is confirmed, we'll have a better idea if its the wysiwyg integration code. If it is, would be great if you and/or your colleagues can investigate the code and contribute a patch

thanx

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

John Richardson

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
    • Life Challenge of Southeastern Michigan
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Tokens broken in CiviMail
March 16, 2013, 08:14:15 am
Shipped editor is CKEditor, right? Which version and where, what directory, is it located in? Just want to be sure I restore to proper defaults for html editing. Sorry, I should know this, but I've mucked around with so many editors, modules and versions lately I've lost track. Thanks, Lobo, for giving a hand!

P.S. just went to demo site and everything works like a charm. Wish I could do that on my installation!
« Last Edit: March 16, 2013, 08:22:49 am by ideaman »
John Richardson

John Richardson

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
    • Life Challenge of Southeastern Michigan
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Tokens broken in CiviMail
March 16, 2013, 12:28:27 pm
I diabled wysiwyg api and all is forgiven. Tokens insert and content gets saved. All is well...must have something to do with wysiwyg api. If no one else is reporting such errors it may be that I mis-configured the api somehow. Anyway, will stick with the defaults for awhile...thx for all the help!

Woops! Spoke too soon. The problems are back. I can't use tokens in html and content will not save. Any ideas anyone?
« Last Edit: March 19, 2013, 08:34:05 pm by ideaman »
John Richardson

davyivins

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 2
    • PURCO SA
  • CiviCRM version: 4.5
  • CMS version: Drupal 6.33
  • MySQL version: 5.5.34
  • PHP version: 5.4.33
Re: Tokens broken in CiviMail
March 19, 2013, 08:42:20 am
I have the same problem but I found a way around so have never tried to fix it.
Workaround: in my case tokens insert fine in the Plain Text format field so I insert them there and copy them into the html format field.

Running Drupal 6, Civi 4.2.7.
Using Drupal default Editor (CKEditor), Wysiwig
There are times I love technology...and then there are times I *love* technology :-)

John Richardson

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
    • Life Challenge of Southeastern Michigan
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Tokens broken in CiviMail
March 19, 2013, 08:40:58 pm
I wish your workaround worked for me. I'm on D7 with 4.2, CKEditor and Devloper Wysiwyg. Can't figure it out. BTW: tried getting rid of Wysiwyg to go with default CKEditor and I get fatal errors all over the place, like this:

Code: [Select]
Fatal error: Call to undefined function wysiwyg_get_profile() in mysite/sites/all/modules/civicrm/drupal/civicrm.module on line 365


Fatal error:  Call to a member function getTXTBody() on a non-object in mysite/sites/all/modules/civicrm/CRM/Mailing/Page/Preview.php on line 100


Fatal error: Call to a member function getHTMLBody() on a non-object in mysite/sites/all/modules/civicrm/CRM/Mailing/Page/Preview.php on line 96
John Richardson

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

This forum was archived on 2017-11-26.