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 CiviMember (Moderator: Deepak Srivastava) »
  • Can't view Member tabs
Pages: [1]

Author Topic: Can't view Member tabs  (Read 2502 times)

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Can't view Member tabs
August 24, 2010, 06:57:18 am
We had the database working for months, and recently something has changed to create this issue.

I can pull up a member contact, but I am able to see only the summary tab. The tabs (such as Relationships, Groups, etc) that are populated (as indicated by the number next to the tab title - once clicked the spinning wheel shows up and then no data displays.

Looking at the HTML code, I get the crm-actions-ribbon, then the crm-block crm-content-block crm-contact-page div, followed by the footer div.

Within the crm-block crm-content-block crm-contact-page div, I get the right links to the tabs, such as #Relationships. I am speculating that the other tabs are activated via JavaScript? I have this JavaScript code at the end of contact-summary

Code: [Select]
                    cj('.columnheader').click( function( ) {
                        var aTagObj = cj(this).find('a');
                        if ( aTagObj.hasClass( "expanded" ) ) {
                            cj(this).parent().find('tr:not(".columnheader")').hide( );
                        } else {
                                cj(this).parent().find('tr:not(".columnheader")').show( );
                        }
                        aTagObj.toggleClass("expanded");
                        return false;
                    });

Where should I be looking for a problem?

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: Can't view Member tabs
August 24, 2010, 07:37:25 am

use firebug to see what is happening. seems like some javascript related issue

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

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Can't view Member tabs
August 24, 2010, 08:29:26 am
Any additional direction? What am I hunting for? Seems that the JavaScript performs the tab change of screen, but doesn't set the correct data so instead it displays blank section.

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: Can't view Member tabs
August 24, 2010, 09:49:48 am

the tab contents are retrieved via an AJAX call and i suspect that call is failing. so please use firebug to see what is failing and why

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

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Can't view Member tabs
August 24, 2010, 02:23:24 pm
I've tried disabling all other AJAX/jquery modules (views slideshow and jQuery UI), so that the only ones loading are the ones from CiviCRM.

There is a long function (trimmed due to forum space limitations) that gets called on mouseover which runs number of time setting variety of properties.

Code: [Select]
19(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));
All is good so far, even when I click on the tab. The spinning wheel shows, the screen refreshes, and no data pulls up.

I am looking for any hints at this point - what function is called on the click? I can't seem to get to it by setting Break on Next, as that's activated by the mouseover. So without knowing which of the many functions are called by the tab click, I am not sure where to set the break point in the script.

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Can't view Member tabs
August 29, 2010, 08:20:03 am
Got one step further in my investigation - according to Firebug, the jQuery pulls in the data. However, there is no block in the page to insert the data into. When I look at a contact, I am only getting divs for Contributions, Memberships, and Activities - and those tabs work fine. None of the other tabs are in the HTML, so while the data is pulled in, it can't be displayed. Could this be a corrupt template issue? I haven't modified any of the default templates. Any idea where I should look next?

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: Can't view Member tabs
August 29, 2010, 08:40:59 pm

1. can u make sure you dont have any custom templates

2. can u clear out templates_c before doing anotehr test

3. can u reproduce the same stuff on demo and try to figure out why you are getting different behavior

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

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Can't view Member tabs
August 29, 2010, 10:52:21 pm
Quote from: Donald Lobo on August 29, 2010, 08:40:59 pm

1. can u make sure you dont have any custom templates

None exist in files/civicrm/custom

Quote
2. can u clear out templates_c before doing anotehr test

Successfully deleted templates_c directory. Cleared Drupal caches, pulled up contact, same result.

Quote
3. can u reproduce the same stuff on demo and try to figure out why you are getting different behavior

I haven't been able to reproduce it in the demo.

I get the following HTML, missing the <div> for the other tabs.
Code: [Select]
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="contact-summary" title="Summary">data redacted</div>
<div id="Contributions" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"></div>
<div id="Memberships" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"></div>
<div id="Activities" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"></div>
<div class="clear"></div>

Are there any permissions that could be out of place? Normally, if a user doesn't have access to a tab, it won't show. I am logged in as Administrator, and this is happening for all users.

Now running latest version 3.2.2.

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: Can't view Member tabs
August 30, 2010, 07:32:23 am

sorry no idea. your best bet might be to get on IRC and ask one of us to take a look at the site. that might give us a few clues.

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

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Can't view Member tabs
August 30, 2010, 07:34:06 am
Quote from: Donald Lobo on August 30, 2010, 07:32:23 am

sorry no idea. your best bet might be to get on IRC and ask one of us to take a look at the site. that might give us a few clues.

lobo

Sounds good. I will do that later today. I appreciate your suggestions.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Can't view Member tabs

This forum was archived on 2017-11-26.