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 CiviCase (Moderator: Dave Greenberg) »
  • Dropdown not showing for Add New Role
Pages: [1]

Author Topic: Dropdown not showing for Add New Role  (Read 570 times)

peoriadrupaluser

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.4/4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.28
Dropdown not showing for Add New Role
November 17, 2014, 02:37:39 pm
When a I go to add a new role in a case, the Add Role modal comes up and I can select the type of relationship but the search box does not come up for me to search for the person the relationship is with. It is only a text box. I have test this in the demo and it works like a charm there.

Thanks!

-Josh

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Dropdown not showing for Add New Role
November 17, 2014, 02:46:24 pm
Are you using the latest version of Civi?
What CMS+version are you using?
Can you open up your browser console and report any errors/messages you see when this bug happens?
Try asking your question on the new CiviCRM help site.

peoriadrupaluser

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.4/4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.28
Re: Dropdown not showing for Add New Role
November 17, 2014, 02:54:30 pm
I just upgraded to CiviCRM 4.5.3. We are in Drupal 7.32.

When I first open the case I see these console messages. 
Uncaught TypeError: undefined is not a function case?reset=1&id=85&cid=8722&action=view&context=dashboard&selectedChild=case:407
Uncaught Error: Syntax error, unrecognized expression: #

When I open the modal I see:

Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method '/civicrm/ajax/rest?className=CRM_Contact_Page_AJAX&fnName=getContactList&json=1&context=caseview' js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55m.extend.error js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55(anonymous function) js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:64m.extend.each js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55m.fn.m.each js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55e.fn.(anonymous function) js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:64cj.dialog.open case?reset=1&id=85&cid=8722&action=view&context=dashboard&selectedChild=case:699e.Widget._trigger js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:64e.widget.open js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:68(anonymous function) js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:64e.widget._init js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:68(anonymous function) js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:64e.Widget._createWidget js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:64e.(anonymous function).(anonymous function) js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:64(anonymous function) js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:64m.extend.each js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55m.fn.m.each js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55e.fn.(anonymous function) js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:64addRole case?reset=1&id=85&cid=8722&action=view&context=dashboard&selectedChild=case:681onclick case?reset=1&id=85&cid=8722&action=view&context=dashboard&selectedChild=case:353

Thanks!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Dropdown not showing for Add New Role
November 17, 2014, 02:59:38 pm
That's a good clue. Can you dig a little deeper - it seems that a syntax error is causing a general js crash. Can you click on that message and find out what exactly the offending code is? I think the key is "Uncaught Error: Syntax error, unrecognized expression: #" but I need to know exactly what that is referring to - clicking on it should reveal more context.
Try asking your question on the new CiviCRM help site.

peoriadrupaluser

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.4/4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.28
Re: Dropdown not showing for Add New Role
November 17, 2014, 03:06:08 pm
When I look for more info I get:

Uncaught TypeError: undefined is not a function case?reset=1&id=85&cid=8722&action=view&context=dashboard&selectedChild=case:407(anonymous function) case?reset=1&id=85&cid=8722&action=view&context=dashboard&selectedChild=case:407
Uncaught Error: Syntax error, unrecognized expression: # js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55fb.error js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55fb.tokenize js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55fb.compile js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55fb.select js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55fb js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55fb.matches js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55m.filter js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55m.fn.(anonymous function) js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55(anonymous function) case?reset=1&id=85&cid=8722&action=view&context=dashboard&selectedChild=case:904j js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55k.fireWith js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55m.extend.ready js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55J js_JhfnPKYCpZmpnx4AOVRj1GFpkkpoyp9n5_5apxULPPc.js:55

I do not know what any of this means to be of more help.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Dropdown not showing for Add New Role
November 17, 2014, 03:35:50 pm
That doesn't make a lot of sense to me. Can you send me a login to your site I may be able to find the cause. Now is a good time to do this because we've got a release coming up on wed, so let's try to fix this before then.
Try asking your question on the new CiviCRM help site.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Dropdown not showing for Add New Role
November 17, 2014, 05:31:50 pm
It looks suspiciously like you have implemented a tpl override on your site and neglected to update it when you upgraded. I'm seeing a lot of 4.4-style markup in the manage case ui which is not compatible with 4.5.
Try asking your question on the new CiviCRM help site.

peoriadrupaluser

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.4/4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.28
Re: Dropdown not showing for Add New Role
November 17, 2014, 06:13:12 pm
Yes, that is problem.

Thanks!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Dropdown not showing for Add New Role
November 17, 2014, 06:56:56 pm
I suggest you try to get rid of the tpl override if at all possible, or you'll just have this problem again next upgrade.
Some alternatives:
http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_caseSummary
https://wiki.civicrm.org/confluence/display/CRMDOC/Region+Reference
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 CiviCase (Moderator: Dave Greenberg) »
  • Dropdown not showing for Add New Role

This forum was archived on 2017-11-26.