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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Tabs on View Contacts Page - Not Working
Pages: [1]

Author Topic: Tabs on View Contacts Page - Not Working  (Read 800 times)

sandfox

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.8.5
  • CMS version: Wordpress
  • MySQL version: 5.5
  • PHP version: 5.3.29
Tabs on View Contacts Page - Not Working
March 19, 2015, 08:58:14 pm
I have a fresh installation of Wordpress 4.1.1 with CiviCRM 4.8.5 installed.

The tabs on the "View Contacts" page are not functioning.

Specifically, the "class" values are changed, but the "aria-selected" and "aria-expanded" toggles stay "false" when a tab is clicked, instead of switching to "true".

I'm getting the following error when I click on a tab:

Uncaught TypeError: undefined is not a function TabHeader.js?r=NYecP:13

Any ideas on what is going on or how to fix this? Thanks!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Tabs on View Contacts Page - Not Working
March 19, 2015, 09:02:33 pm
A good place to start would be http://forum.civicrm.org/index.php/topic,35850.0.html
Try asking your question on the new CiviCRM help site.

sandfox

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.8.5
  • CMS version: Wordpress
  • MySQL version: 5.5
  • PHP version: 5.3.29
Re: Tabs on View Contacts Page - Not Working
March 19, 2015, 09:31:23 pm
Thanks. The CiviCRM Debugging and Error Handling doesn't show anything.

I am using no extensions or custom anything. This is a fresh, clean install of both Wordpress and CiviCRM with no other plugins installed. None of the other troubleshooting tips resolved this, and I cannot find any other threads addressing this issue.

I have repeated this error on multiple machines and multiple browsers.

Here is the complete console report:

Common.js?r=NYecP:196 Uncaught TypeError: Cannot read property 'defaults' of undefined
Common.js?r=NYecP:196 (anonymous function)
Common.js?r=NYecP:1077 (anonymous function)

admin.php?page=CiviCRM&q=civicrm/ajax/l10n-js/en_US&r=NYecP:14 Uncaught TypeError: undefined is not a function
admin.php?page=CiviCRM&q=civicrm/ajax/l10n-js/en_US&r=NYecP:14 (anonymous function)
admin.php?page=CiviCRM&q=civicrm/ajax/l10n-js/en_US&r=NYecP:73 (anonymous function)

TabHeader.js?r=NYecP:13 Uncaught TypeError: undefined is not a function      <<-----This error, including all below repeats when I click a tab multiple times
TabHeader.js?r=NYecP:13 (anonymous function)
jquery-1.11.1.js?r=NYecP:4641 jQuery.event.dispatch
jquery-1.11.1.js?r=NYecP:4309 jQuery.event.add.elemData.handle
jquery-1.11.1.js?r=NYecP:4550 jQuery.event.trigger
jquery-1.11.1.js?r=NYecP:5260 (anonymous function)
jquery-1.11.1.js?r=NYecP:383 jQuery.extend.each
jquery-1.11.1.js?r=NYecP:136 jQuery.fn.jQuery.each
jquery-1.11.1.js?r=NYecP:5259 jQuery.fn.extend.trigger
jquery-ui.js?r=NYecP:797 $.Widget._trigger
jquery-ui.js?r=NYecP:13015 $.widget._eventHandler
jquery-ui.js?r=NYecP:407 (anonymous function)
jquery-ui.js?r=NYecP:716 handlerProxy
jquery-1.11.1.js?r=NYecP:4641 jQuery.event.dispatch
jquery-1.11.1.js?r=NYecP:4309 jQuery.event.add.elemData.handle


sandfox

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.8.5
  • CMS version: Wordpress
  • MySQL version: 5.5
  • PHP version: 5.3.29
Re: Tabs on View Contacts Page - Not Working
March 19, 2015, 10:21:29 pm
Here's a pretty good resource about this error type:

http://www.datahaunting.com/jquery/uncaught-typeerror-undefined-is-not-a-function/

If anyone can help me applying this to CiviCRM + Wordpress, I would really appreciate it!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Tabs on View Contacts Page - Not Working
March 20, 2015, 07:07:23 am
I'm not able to reproduce that on e.g. http://wp45.demo.civicrm.org/
If you want to give me login access to your site I can take a peek.
Try asking your question on the new CiviCRM help site.

sandfox

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.8.5
  • CMS version: Wordpress
  • MySQL version: 5.5
  • PHP version: 5.3.29
Re: Tabs on View Contacts Page - Not Working
March 20, 2015, 03:44:21 pm
I sent you a PM with the login info. Thanks!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Tabs on View Contacts Page - Not Working
March 20, 2015, 05:41:32 pm
Got it. And found the problem. Filed as:
https://issues.civicrm.org/jira/browse/CRM-16154

For now, the workaround I would suggest would be to not use select2 on your website, or find a way to disable it on Civi pages.
Try asking your question on the new CiviCRM help site.

sandfox

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.8.5
  • CMS version: Wordpress
  • MySQL version: 5.5
  • PHP version: 5.3.29
Re: Tabs on View Contacts Page - Not Working
March 20, 2015, 06:56:53 pm
Great. Thanks so much for your help in identifying the issue!!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Tabs on View Contacts Page - Not Working
March 21, 2015, 06:44:37 pm
Ok, I've found a quicker solution, which we'll include in the next release of CiviCRM (4.6.0). If you don't want to wait for that, you can fix it now by going into your server and replacing the folder /wp-content/plugins/civicrm/civicrm/packages/jquery/plugins/select2 with this one.
Try asking your question on the new CiviCRM help site.

sandfox

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.8.5
  • CMS version: Wordpress
  • MySQL version: 5.5
  • PHP version: 5.3.29
Re: Tabs on View Contacts Page - Not Working
March 22, 2015, 08:56:47 pm
Brilliant! Works like a charm. Many, many thanks!!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Tabs on View Contacts Page - Not Working
March 23, 2015, 07:57:46 am
You're welcome.
We are currently doing a fundraising campaign to support development of the next version which will include improvements like this one (plus a lot more).
Here is the contribution page if you want to help out :)
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Tabs on View Contacts Page - Not Working

This forum was archived on 2017-11-26.