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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Civi4.5.3. errors after upgrade (Drupal 6)
Pages: [1] 2

Author Topic: Civi4.5.3. errors after upgrade (Drupal 6)  (Read 1556 times)

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
Civi4.5.3. errors after upgrade (Drupal 6)
November 09, 2014, 11:09:50 pm
I've upgraded my Drupal 6 site to Civi 4.5.3 and am finding some errors.

1. In New Mailing windows the Subject Token field is blank (no dropdown) (This error was also present on 4.5.2)
2.  Concertina tabs don't open in Advanced Search
3.  Also, Pop up windows are blank for a range of actions and return error "Uncaught TypeError: undefined is not a function" ). Copying and pasting the link in a separate window works.
  • Clicking on any tab in a Contact window
  • Edit Field links for custom fields or profiles
  • In Profiles the buttons for Add Field, Edit settings, Preview and Use all result in a bank popup window.

Any guidance would be much appreciated.
There are times I love technology...and then there are times I *love* technology :-)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi4.5.3. errors after upgrade (Drupal 6)
November 10, 2014, 03:36:41 am
Can you look in Firebug for Firefox for any JS errors?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Civi4.5.3. errors after upgrade (Drupal 6)
November 10, 2014, 03:55:56 am
Hi Hershel - I sent you a mail.
There are times I love technology...and then there are times I *love* technology :-)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi4.5.3. errors after upgrade (Drupal 6)
November 10, 2014, 09:05:38 am
Would be good to get the error messages posted here so we can get other eyes on it.
Try asking your question on the new CiviCRM help site.

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: Civi4.5.3. errors after upgrade (Drupal 6)
November 10, 2014, 10:30:47 am
Hi Coleman - Hershel has agreed to help and we'll report back once we've found down the solution/s. Unfortunately I could probably read braille as well as track down JS errors :-)

That said Google is a great resource so here is a stab at reporting the errors :-/

1. Firebug doesn't reflect any error on the Mailing page (blank Token field)
2. For the errors on Contact tabs, Advanced Search concertina tabs etc I see

Code: [Select]
TypeError: Drupal.detachBehaviors is not a function
http://mydomain/sites/all/modules/civicrm/js/crm.drupal.js?r=WwsvR
Line 9



There are times I love technology...and then there are times I *love* technology :-)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi4.5.3. errors after upgrade (Drupal 6)
November 10, 2014, 11:52:00 am
Ooh, yea, your console is telling the truth, that function doesn't exist in D6.
Here's a fix: https://github.com/civicrm/civicrm-core/pull/4532
Try asking your question on the new CiviCRM help site.

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: Civi4.5.3. errors after upgrade (Drupal 6)
November 10, 2014, 12:10:47 pm
Coleman you are a star. Works like a charm. Thanks!

Now about that blank mailing token field......?

 ;D ;D
There are times I love technology...and then there are times I *love* technology :-)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi4.5.3. errors after upgrade (Drupal 6)
November 10, 2014, 12:21:12 pm
I assume Hershel is working on that one.
Try asking your question on the new CiviCRM help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi4.5.3. errors after upgrade (Drupal 6)
November 11, 2014, 07:46:11 am
Quote from: davyivins on November 09, 2014, 11:09:50 pm
1. In New Mailing windows the Subject Token field is blank (no dropdown) (This error was also present on 4.5.2)

This site is Drupal 6.33 using the Garland theme, so that's OK. The file js/crm.drupal.js was actually wrong (still had an error) which I fixed (seems you just applied the patch wrong) but it didn't fix this problem.

I do see:

Code: [Select]
Relative positioning of table rows and row groups is now supported. This site may need to be updated because it may depend on this feature having no effect.
 sites/all/modules/civicrm/packages/tinymce/jscripts/tiny_mce/tiny_mce.js (line1)

but that is not the issue.

What I see on the D7 demo on line 376 of the Mailing Content (step 3 of 5) page is:

Code: [Select]
<script type="text/javascript" src="/sites/all/modules/civicrm/packages/jquery/plugins/jquery-fieldselection.js"></script>

<script type="text/javascript">
cj('form.CRM_Mailing_Form_Upload').data('tokens', [{"text":"Action","children":[{"id":"{action.forward}","text":"Forward this email (link)"},{"id":"{action.optOut}","text":"Opt out via email"},{"id":"{action.optOutUrl}","text":"Opt out via web page"},{"id":"{action.reply}","text":"Reply to this email (link)"},{"id":"{action.resubscribe}","text":"Resubscribe via email"},{"id":"{action.resubscribeUrl}","text":"Resubscribe via web page"},{"id":"{action.subscribeUrl}","text":"Subscribe via web page"},{"id":"{action.unsubscribe}","text":"Unsubscribe via email"},{"id":"{action.unsubscribeUrl}","text":"Unsubscribe via web page"}]},{"text":"Address","children":[{"id":"{contact.address_name}","text":"Address Name"},{"id":"{contact.city}","text":"City"},{"id":"{contact.country}","text":"Country"},{"id":"{contact.county}","text":"County"},{"id":"{contact.geo_code_1}","text":"Latitude"},{"id":"{contact.geo_code_2}","text":"Longitude"},{"id":"{contact.master_id}","text":"Master Address Belongs To"},{"id":"{contact.postal_code}","text":"Postal Code"},{"id":"{contact.postal_code_suffix}","text":"Postal Code Suffix"},{"id":"{contact.state_province}","text":"State"},{"id":"{contact.street_address}","text":"Street Address"},{"id":"{contact.street_name}","text":"Street Name"},{"id":"{contact.street_number}","text":"Street Number"},{"id":"{contact.street_number_suffix}","text":"Street Number Suffix"},{"id":"{contact.street_unit}","text":"Street Unit"},{"id":"{contact.supplemental_address_1}","text":"Supplemental Address 1"},{"id":"{contact.supplemental_address_2}","text":"Supplemental Address 2"}]},{"text":"Constituent Information","children":[{"id":"{contact.custom_14}","text":"Gea"},{"id":"{contact.custom_2}","text":"Marital Status"},{"id":"{contact.custom_3}","text":"Marriage Date"},{"id":"{contact.custom_1}","text":"Most Important Issue"}]},{"text":"Contact","children":[{"id":"{contact.addressee}","text":"Addressee"},{"id":"{contact.birth_date}","text":"Birth Date"},{"id":"{contact.checksum}","text":"Checksum"},{"id":"{contact.communication_style}","text":"Communication Style"},{"id":"{contact.hash}","text":"Contact Hash"},{"id":"{contact.contact_is_deleted}","text":"Contact is in Trash"},{"id":"{contact.contact_type}","text":"Contact Type"},{"id":"{contact.created_date}","text":"Created Date"},{"id":"{contact.current_employer}","text":"Current Employer"},{"id":"{contact.current_employer_id}","text":"Current Employer ID"},{"id":"{contact.display_name}","text":"Display Name"},{"id":"{contact.do_not_email}","text":"Do Not Email"},{"id":"{contact.do_not_mail}","text":"Do Not Mail"},{"id":"{contact.do_not_phone}","text":"Do Not Phone"},{"id":"{contact.do_not_sms}","text":"Do Not Sms"},{"id":"{contact.do_not_trade}","text":"Do Not Trade"},{"id":"{contact.email}","text":"Email"},{"id":"{contact.email_greeting}","text":"Email Greeting"},{"id":"{contact.external_identifier}","text":"External Identifier"},{"id":"{contact.first_name}","text":"First Name"},{"id":"{contact.formal_title}","text":"Formal Title"},{"id":"{contact.gender}","text":"Gender"},{"id":"{contact.image_URL}","text":"Image Url"},{"id":"{contact.im_provider}","text":"IM Provider"},{"id":"{contact.im}","text":"IM Screen Name"},{"id":"{contact.individual_prefix}","text":"Individual Prefix"},{"id":"{contact.individual_suffix}","text":"Individual Suffix"},{"id":"{contact.contact_id}","text":"Internal Contact ID"},{"id":"{contact.job_title}","text":"Job Title"},{"id":"{contact.last_name}","text":"Last Name"},{"id":"{contact.location_type}","text":"Location Type"},{"id":"{contact.middle_name}","text":"Middle Name"},{"id":"{contact.modified_date}","text":"Modified Date"},{"id":"{contact.nick_name}","text":"Nickname"},{"id":"{contact.is_opt_out}","text":"No Bulk Emails (User Opt Out)"},{"id":"{contact.on_hold}","text":"On Hold"},{"id":"{contact.openid}","text":"OpenID"},{"id":"{contact.phone}","text":"Phone"},{"id":"{contact.phone_ext}","text":"Phone Extension"},{"id":"{contact.postal_greeting}","text":"Postal Greeting"},{"id":"{contact.preferred_communication_method}","text":"Preferred Communication Method"},{"id":"{contact.preferred_language}","text":"Preferred Language"},{"id":"{contact.preferred_mail_format}","text":"Preferred Mail Format"},{"id":"{contact.signature_html}","text":"Signature Html"},{"id":"{contact.signature_text}","text":"Signature Text"},{"id":"{contact.sort_name}","text":"Sort Name"},{"id":"{contact.contact_source}","text":"Source of Contact Data"},{"id":"{contact.url}","text":"Website"},{"id":"{contact.world_region}","text":"World Region"}]},{"text":"Domain","children":[{"id":"{domain.address}","text":"Domain (organization) address"},{"id":"{domain.email}","text":"Domain (organization) email"},{"id":"{domain.phone}","text":"Domain (organization) phone"},{"id":"{domain.name}","text":"Domain name"}]},{"text":"Mailing","children":[{"id":"{mailing.group}","text":"Mailing group"},{"id":"{mailing.name}","text":"Mailing name"},{"id":"{mailing.viewUrl}","text":"Mailing permalink"}]},{"text":"Student Course selection","children":[{"id":"{contact.custom_11}","text":"course one"},{"id":"{contact.custom_13}","text":"course three"},{"id":"{contact.custom_12}","text":"course two"}]}]);
var text_message = null;

and on davyivins' site:

Code: [Select]
<script type="text/javascript" src="/sites/all/modules/civicrm/packages/jquery/plugins/jquery-fieldselection.js"></script>

<script type="text/javascript">
var text_message = null;

That is the problem. :(
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi4.5.3. errors after upgrade (Drupal 6)
November 11, 2014, 07:51:45 am
Hershel, that script is rendered by templates/CRM/Mailing/Form/InsertTokens.tpl - I'm guessing that they have overridden that template on their site and neglected to merge in the changes after upgrading?
Try asking your question on the new CiviCRM help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi4.5.3. errors after upgrade (Drupal 6)
November 11, 2014, 08:26:37 am
This site has no custom templates. But an investigation did reveal this file:

Code: [Select]
sites/default/files/civicrm/custom_extensions/com.pogstone.fancytokens-2.1/templates/CRM/Mailing/Form/InsertTokens.tpl
which was indeed the culprit, precisely as you said. I replaced that with the InsertTokens.tpl from CiviCRM and now the tokens work fine. Presumably this extension now does not work fine, but Mr. Ivins can decide now which functionality he prefers. :)

Until the fancytokens extension is updated, that is.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi4.5.3. errors after upgrade (Drupal 6)
November 11, 2014, 08:31:38 am
I have filed https://github.com/sgladstone/com.pogstone.fancytokens/issues/2
Try asking your question on the new CiviCRM help site.

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: Civi4.5.3. errors after upgrade (Drupal 6)
November 11, 2014, 08:35:51 am
Thanks for the teamwork Hershell and Coleman :-)
I'm not using fancy tokens at present so your solution is great.

There are times I love technology...and then there are times I *love* technology :-)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi4.5.3. errors after upgrade (Drupal 6)
November 11, 2014, 08:52:15 am
@davyivins have you added your vote yet to our new help site proposal?
https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help
Try asking your question on the new CiviCRM help site.

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: Civi4.5.3. errors after upgrade (Drupal 6)
November 11, 2014, 11:21:53 pm
Yip - 17 October  :)
There are times I love technology...and then there are times I *love* technology :-)

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Civi4.5.3. errors after upgrade (Drupal 6)

This forum was archived on 2017-11-26.