Answers.Body: <p>OK, I found the problem. It was the same issue as reported <a href="https://issues.civicrm.org/jira/browse/CRM-16416" rel="nofollow">here</a>. It wasn't a CiviCRM problem at all. The JavaScript errors were caused by the K2 component, which alters the HTML output after CiviCRM does. K2 was passing text containing quotes (specifically 'prefix="og: <a href="http://ogp.me/ns#" rel="nofollow">http://ogp.me/ns#</a>"') to JavaScript, so these quotes ended up unescaped. More info <a href="http://www.joomlaworks.net/forum/k2-en/41292-system-plugin-shouldn-t-modify-html-tag-on-adminstrator" rel="nofollow">here</a>. The solution was to apply <a href="https://github.com/joomlaworks/k2/commit/f5cea21896647bf5be0cbe7ee9498272f298b27c" rel="nofollow">this patch</a> to K2 (or, in my case, to remove K2 altogether, since we decided not to use it).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-26T09:49:21.127Z
Answers.LastActivityDate: 2015-07-26T09:49:21.127Z
Answers.UserDisplayName: Jern
Body: <p>I'm getting the same effect as reported <a href="https://forum.civicrm.org/index.php?topic=36039.0" rel="nofollow">here</a>. I'm trying to set up CiviCase, and all seems fine except when I try to Administer->CiviCase->Case Types I just get blank screen.
  The JavaScript console shows a series of errors as shown below. I've been through all the standard trouble-shooting things, and am stumped now.</p>
  
  <p>Joomla 3.3.6, CiviCrm 4.6.5</p>
  
  <p>Any ideas much appreciated. Thanks.</p>
  
  <p>Javascript console output:</p>
  
  <p>option=com_civicrm&amp;task=civicrm/a/:109 Uncaught SyntaxError: Unexpected </p>
  
  <p>?option=com_civicrm&amp;task=civicrm/ajax/l10n-js/en_US&amp;r=0KJad:5 
  Uncaught TypeError: Cannot set property 'userFramework' of undefined
  (anonymous function)    @   ?option=com_civicrm&amp;task=civicrm/ajax/l10n-js/en_US&amp;r=0KJad:5
  (anonymous function)    @   ?option=com_civicrm&amp;task=civicrm/ajax/l10n-js/en_US&amp;r=0KJad:5</p>
  
  <p>?option=com_civicrm&amp;task=civicrm/ajax/angular-modules&amp;format=js&amp;r=0KJad:11 
  Uncaught TypeError: Cannot read property 'modules' of undefined(anonymous function) @ ?option=com_civicrm&amp;task=civicrm/ajax/angular-modules&amp;format=js&amp;r=0KJad:11(anonymous function) @ ?option=com_civicrm&amp;task=civicrm/ajax/angular-modules&amp;format=js&amp;r=0KJad:19</p>
  
  <p>?option=com_civicrm&amp;task=civicrm/ajax/menujs/2/en_US/1/oQmyf7Hm:110 
  Uncaught TypeError: Cannot read property 'resourceBase' of undefined(anonymous function) @ ?option=com_civicrm&amp;task=civicrm/ajax/menujs/2/en_US/1/oQmyf7Hm:110(anonymous function) @ ?option=com_civicrm&amp;task=civicrm/ajax/menujs/2/en_US/1/oQmyf7Hm:111</p>
  
  <p>angular.js:38
  Uncaught Error: [$injector:modulerr] <a href="http://errors.angularjs.org/1.3.17/" rel="nofollow">http://errors.angularjs.org/1.3.17/</a>$injector/modulerr?p0=crmApp&amp;p1=Error%3A…vicrm%2Fbower_components%2Fangular%2Fangular.min.js%3Fr%3D0KJad%3A17%3A381)(anonymous function) @ angular.js:38(anonymous function) @ angular.js:4154q @ angular.js:326g @ angular.js:4115bb @ angular.js:4041d @ angular.js:1455xc @ angular.js:1476Od @ angular.js:1370(anonymous function) @ angular.js:26438m.Callbacks.j @ jquery.js:3148m.Callbacks.k.fireWith @ jquery.js:3260m.extend.ready @ jquery.js:3472J @ jquery.js:3503</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-18T21:17:49.047Z
Comments.Text: Not strictly a duplicate, but others with a similar problem should check out https://civicrm.stackexchange.com/a/25781/12
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <civicase><ajax>
Title: AJAX problem in CiviCase - Administer Case Types
ThreadText: # AJAX problem in CiviCase - Administer Case Types
  
  (Asked by: username_0 on 2015-07-25)
  
  I'm getting the same effect as reported [here](https://forum.civicrm.org/index.php?topic=36039.0). I'm trying to set up CiviCase, and all seems fine except when I try to Administer->CiviCase->Case Types I just get blank screen.
  The JavaScript console shows a series of errors as shown below. I've been through all the standard trouble-shooting things, and am stumped now.
  
  Joomla 3.3.6, CiviCrm 4.6.5
  
  Any ideas much appreciated. Thanks.
  
  Javascript console output:
  
  option=com\_civicrm&task=civicrm/a/:109 Uncaught SyntaxError: Unexpected
  
  ?option=com\_civicrm&task=civicrm/ajax/l10n-js/en\_US&r=0KJad:5
  Uncaught TypeError: Cannot set property 'userFramework' of undefined
  (anonymous function) @ ?option=com\_civicrm&task=civicrm/ajax/l10n-js/en\_US&r=0KJad:5
  (anonymous function) @ ?option=com\_civicrm&task=civicrm/ajax/l10n-js/en\_US&r=0KJad:5
  
  ?option=com\_civicrm&task=civicrm/ajax/angular-modules&format=js&r=0KJad:11
  Uncaught TypeError: Cannot read property 'modules' of undefined(anonymous function) @ ?option=com\_civicrm&task=civicrm/ajax/angular-modules&format=js&r=0KJad:11(anonymous function) @ ?option=com\_civicrm&task=civicrm/ajax/angular-modules&format=js&r=0KJad:19
  
  ?option=com\_civicrm&task=civicrm/ajax/menujs/2/en\_US/1/oQmyf7Hm:110
  Uncaught TypeError: Cannot read property 'resourceBase' of undefined(anonymous function) @ ?option=com\_civicrm&task=civicrm/ajax/menujs/2/en\_US/1/oQmyf7Hm:110(anonymous function) @ ?option=com\_civicrm&task=civicrm/ajax/menujs/2/en\_US/1/oQmyf7Hm:111
  
  angular.js:38
  Uncaught Error: [$injector:modulerr] <http://errors.angularjs.org/1.3.17/>$injector/modulerr?p0=crmApp&p1=Error%3A…vicrm%2Fbower\_components%2Fangular%2Fangular.min.js%3Fr%3D0KJad%3A17%3A381)(anonymous function) @ angular.js:38(anonymous function) @ angular.js:4154q @ angular.js:326g @ angular.js:4115bb @ angular.js:4041d @ angular.js:1455xc @ angular.js:1476Od @ angular.js:1370(anonymous function) @ angular.js:26438m.Callbacks.j @ jquery.js:3148m.Callbacks.k.fireWith @ jquery.js:3260m.extend.ready @ jquery.js:3472J @ jquery.js:3503
  
  **Tags:** civicase, ajax
  
  > **Comments:**
  > **username_1**: Not strictly a duplicate, but others with a similar problem should check out https://civicrm.stackexchange.com/a/25781/12  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-07-26. Score: 0 | Accepted answer
  
  OK, I found the problem. It was the same issue as reported [here](https://issues.civicrm.org/jira/browse/CRM-16416). It wasn't a CiviCRM problem at all. The JavaScript errors were caused by the K2 component, which alters the HTML output after CiviCRM does. K2 was passing text containing quotes (specifically 'prefix="og: <http://ogp.me/ns#>"') to JavaScript, so these quotes ended up unescaped. More info [here](http://www.joomlaworks.net/forum/k2-en/41292-system-plugin-shouldn-t-modify-html-tag-on-adminstrator). The solution was to apply [this patch](https://github.com/joomlaworks/k2/commit/f5cea21896647bf5be0cbe7ee9498272f298b27c) to K2 (or, in my case, to remove K2 altogether, since we decided not to use it).
  
  
  ---
  
  