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 won't expand
Pages: [1]

Author Topic: Tabs won't expand  (Read 791 times)

palmquist

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 2
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.36-log
  • PHP version: 5.4.24
Tabs won't expand
February 17, 2014, 12:47:25 pm
After upgrading to 4.4.3, I am unable to edit any contact addresses.  Clicking "expand all tabs" does nothing and clicking to attempt to expand the address tab individually also does nothing.

I have searched through various threads here and have tried the various suggestions, such as:

- clear/delete files/civicrm/templates_c folder

- clear browser cache

- UPDATE `civicrm_domain` SET `config_backend`=NULL ;

- switched the editor under Administration >  Settings - Display Preferences to TinyMCE

- checked civicrm.settings.php

Nevertheless, the problem has stayed the same.  It is happening in Firefox, Chrome, and IE (the only browsers I have tried).

The Firebug console reports "uncaught exception: Invalid arguments" but I can't seem to identify which arguments are invalid and what I can do about it.

I have been trying to deal with this problem for a few weeks now, and it hasn't been a major issue because I didn't need to make a significant number of address entries.  Now, however, I need to enter many contact addresses.  Even if I could just learn a workaround without actually solving the problem today, that would be appreciated.

It seems to me that it would be appropriate to consider for future versions of CiviCRM having the edit contact page start with all tabs open and then have the script attempt to close the extra tabs after the page opens.  That way if the script doesn't work (for whatever reason) there is little harm done.  From the messages I have seen here it seems that many have had various forms of tab expansion problems.

Thanks in advance for any suggestions you can offer.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Tabs won't expand
February 17, 2014, 02:09:53 pm
Are you using Civi in a different language? Might be an issue with an unescaped string.
Try asking your question on the new CiviCRM help site.

palmquist

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 2
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.36-log
  • PHP version: 5.4.24
Re: Tabs won't expand
February 17, 2014, 02:18:12 pm
I'm using it in English, a standard installation.  Should I look in the contact edit source code for an unescaped string or where would I look?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Tabs won't expand
February 17, 2014, 02:19:33 pm
K scratch that theory.
Can you enable the "scripts" tab in firebug and then turn on "stack-trace" in the console tab. That should give you a lot more info about the error.
Try asking your question on the new CiviCRM help site.

palmquist

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 2
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.36-log
  • PHP version: 5.4.24
Re: Tabs won't expand
February 17, 2014, 08:35:03 pm
I did enable the Script tab and turned on Stack Trace on the Console tab, then went back to try to edit a contact and clicked on "Expand all tabs."  It didn't seem to show me anything different -- but I assume I'm probably not looking in the right place.

I did notice one thing that may or may not be relevant:  After I put a Watch on "expand," I noticed that the property __proto__ shows "[unsupported: no toString() function in type object] { ELEMENT_NODE=1, ATTRIBUTE_NODE=2, TEXT_NODE=3, more...}"

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Tabs won't expand
February 17, 2014, 08:38:08 pm
On the console tab it should show a red error message. With stacktrace enabled you can then click the
  • next to the message for details.
Try asking your question on the new CiviCRM help site.

palmquist

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 2
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.36-log
  • PHP version: 5.4.24
Re: Tabs won't expand
February 17, 2014, 09:11:19 pm
That's strange -- it had previously been showing the red error message "uncaught exception: Invalid arguments" on the console tab, but it was gone for a while.

Now it is back, but there is a red X in a circle to the left of the message.  When I click there, nothing happens.
« Last Edit: February 17, 2014, 09:13:39 pm by palmquist »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Tabs won't expand
February 17, 2014, 10:42:31 pm
What theme are you using?
I had a similar issue with a bootstrap theme. Try to switch to garland to see if this is the pb.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

palmquist

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 2
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.36-log
  • PHP version: 5.4.24
Re: Tabs won't expand
February 18, 2014, 01:35:55 am
I wondered if the theme could have been an issue earlier, and switched to Garland.  Same problem.  :(

palmquist

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 2
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.36-log
  • PHP version: 5.4.24
Re: Tabs won't expand
February 18, 2014, 04:52:29 pm
This is just a temporary fix, but in case anybody finds themselves in the situation I'm in and needs a temporary fix, I thought I would post it here.

I made a simple edit to this file: /sites/all/modules/civicrm/templates/CRM/Contact/Form/Edit/Address.tpl

All I needed to do was remove the word "collapsed" at the end of this tag: div id="addressBlockId"

(This is the only place that the word "collapsed" appears in this file.)

Obviously when I upgrade, my "fix" will go away, but until then my address fields will always start as expanded.

Again, I know I am just addressing the symptom here and that whatever caused this problem may have other side effects, but for now it enables me to accomplish what I need to do.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Tabs won't expand
February 19, 2014, 06:40:23 pm
I don't think this is necessarily a solution to your situation, given the facts as you've presented them - but for other folks who have this problem, I've seen this happen when the path to the CiviCRM module changes and the directory settings (in Administer -> System Settings -> Directories) aren't updated to reflect the change.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Tabs won't expand
February 19, 2014, 11:45:03 pm
Errors in inline JS prevent the rest of the JS in the page running. Some JS is broken in your page; you're observing the symptoms in CiviCRM because it uses inline scripts extensively, but the root cause may or may not actually be CiviCRM.

To solve this problem more permanently will mean debugging the origin of the error, and eliminating it.

CiviCRM could defend against this situation better by using less obtrusive JS, but that's a far bigger task, so you should focus on the error you're dealing with for now.

Next steps -
  • Review the error message in your console - as well as the error message, you'll see the line of the file in your HTML doc (or external script if relevant, but I'm guessing not here). That tells you where to look for the bug.
  • Can you reproduce this problem on the CiviCRM demo site(s)? If so it's a bug in CiviCRM, and you can contribute to improving the software by filing a bug @ issues.civicrm.org with details to replicate the issue.
  • Are you able to get someone who understands JS to debug the page for you?
  • Can you post the URL of the affected page here, for us to see the error "live"? (No guarantees, but that might help shed some light.)
« Last Edit: February 19, 2014, 11:47:23 pm by Chris Burgess »
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Tabs won't expand

This forum was archived on 2017-11-26.