Answers.Body: <p>In my case the issue was the K2 component (version 2.6.9), Joomla 3.4.1 and CiviCRM 4.6.2, specifically its system plugin, which is required for K2 to function correctly. This plugin monkeys with the HTML  code and inserts Opengraph tags, but these are not escaped by CiviCRM, or they are inserted by K2 after CiviCRM has done its thing. </p>
  
  <p>See plugins/system/k2.php - specifically this code section:</p>
  
  <pre><code>if (JString::strpos($response, 'prefix="og: http://ogp.me/ns#"') === false) 
                      { 
                              $searches[] = '&lt;html '; 
                                      $searches[] = '&lt;html&gt;'; 
                              $replacements[] = '&lt;html prefix="og: http://ogp.me/ns#" '; 
                              $replacements[] = '&lt;html prefix="og: http://ogp.me/ns#"&gt;'; 
                      }
  </code></pre>
  
  <p>Change this to:</p>
  
  <pre><code>$app =&amp; JFactory::getApplication(); 
              if ($app-&gt;isSite()){ 
  
                      if (JString::strpos($response, 'prefix="og: http://ogp.me/ns#"') === false) 
                      { 
                              $searches[] = '&lt;html '; 
                                      $searches[] = '&lt;html&gt;'; 
                              $replacements[] = '&lt;html prefix="og: http://ogp.me/ns#" '; 
                              $replacements[] = '&lt;html prefix="og: http://ogp.me/ns#"&gt;'; 
                      } 
              } 
  </code></pre>
  
  <p><a href="https://issues.civicrm.org/jira/browse/CRM-16416" rel="nofollow">CiviRM bug tracker</a>
  <a href="http://www.joomlaworks.net/forum/k2-en/41292-system-plugin-shouldn-t-modify-html-tag-on-adminstrator" rel="nofollow">JoomlaWorks / K2 issue report (and patch)</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T04:03:41.897Z
Answers.Text: Don't use K2 ...
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-04T22:18:07.193Z
Answers.LastActivityDate: 2015-05-04T22:18:07.193Z
Answers.UserDisplayName: plethoradesign
Answers.Body: <p>The best place to start would be to go through the steps for <a href="http://forum.civicrm.org/index.php/topic,35850" rel="nofollow">troubleshooting javascript in CiviCRM</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-26T03:36:42.293Z
Answers.Text: Still having this issue in 4.6.3, and do not see any comments on 4.6.4 that this was even on the radar.   Am I the only one having this issue?   I do not see any specific cause during the 'steps for troubleshooting Javascript' ...
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-03T18:03:37.823Z
Answers.LastActivityDate: 2015-05-03T18:03:37.823Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>Still getting same problem with civi 4.6.32, Drupal 7.56, php 5.4.45</p>
  
  <p>Fixed by the workaround above of adding 
  define('CIVICRM_CIVIMAIL_UI_LEGACY', 1);
  to settings.civicrm.php</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-09T02:13:02.003Z
Answers.LastActivityDate: 2017-10-09T02:13:02.003Z
Answers.UserDisplayName: Louis Delacretaz
Answers.Body: <p>UPDATE:   with the install of  v4.6.6, the problem has been resolved.   The new mail interface works fine.</p>
  
  <p>Don't know if this is due to a change in teh CiviCRM coding, or something upgraded by the hosting company on their servers.    </p>
  
  <p>That said, I really don't care as long as its now working :)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-11T03:43:36.633Z
Answers.LastActivityDate: 2015-09-11T03:43:36.633Z
Answers.UserDisplayName: Neil Z
Answers.Body: <p>I was having the exact same issue.  The wasy solution for me was to convert everything over to the new Joomla articles system that is built in (which works really well) and dump (uninstall) K2.  That immediately solved it for me.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-30T02:52:24.413Z
Answers.Text: Not using K2 ..
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-26T20:41:24.617Z
Answers.LastActivityDate: 2015-05-26T20:41:24.617Z
Answers.UserDisplayName: John Shoff - Reality Bytes
Answers.Body: <p>I had something similar after an upgrade - if you have extensions - either disable them or update them to match the version of Civi you are running...</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-26T04:56:39.040Z
Answers.LastActivityDate: 2015-05-26T04:56:39.040Z
Answers.UserDisplayName: Josh Mailman
Answers.Body: <p>I turned on the debugging, and looked in the console, and found this:</p>
  
  <blockquote>
    <p>Empty string passed to getElementById().  jquery.min.js:2:0</p>
    
    <p>SyntaxError: missing } after property list administrator:185:28881</p>
    
    <p>TypeError: CRM.config is undefined               administrator:5:2</p>
    
    <p>TypeError: CRM.angular is undefined              crmApp.js:5:6
    mutating the [[Prototype]] of an object will cause your code to run
    very slowly; instead create the object with the correct initial
    [[Prototype]] value using Object.create d3.min.js:3:7336</p>
    
    <p>TypeError: CRM.config is undefined              administrator:110:28</p>
    
    <p>Error: [$injector:modulerr] Failed to instantiate module crmApp due
    to: [$injector:nomod] Module 'crmApp' is not available! You either
    misspelled the module name or forgot to load it. If registering a
    module ensure that you specify the dependencies as the second
    argument.</p>
    
    <p>//errors.angularjs.org/1.3.15/$injector/modulerr?p0=crmApp&amp;p1=%5B%24injector%3Anomod%5D%20Module%20'crmApp'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.3.15%2F%24injector%2Fnomod%3Fp0%3DcrmApp%0AminErr%2F%3C%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A63%3A12%0Amodule%2F%3C%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1774%3A1%0Aensure%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1698%3A38%0Amodule%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1772%3A1%0AloadModules%2F%3C%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A4115%3A22%0AforEach%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A323%3A11%0AloadModules%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A4099%3A5%0AcreateInjector%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A4025%3A11%0Abootstrap%2FdoBootstrap%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1452%3A20%0Abootstrap%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1473%3A1%0AangularInit%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1367%3A5%0A%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A26304%3A5%0AjQuery.Callbacks%2Ffire%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fjquery%2Fdist%2Fjquery.js%3Fr%3DIpysI%3A3143%3A10%0AjQuery.Callbacks%2Fself.fireWith%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fjquery%2Fdist%2Fjquery.js%3Fr%3DIpysI%3A3255%3A7%0A.ready%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fjquery%2Fdist%2Fjquery.js%3Fr%3DIpysI%3A3467%3A1%0Acompleted%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom_civicrm%2Fcivicrm%2Fbower_components%2Fjquery%2Fdist%2Fjquery.js%3Fr%3DIpysI%3A3498%3A3%0A
    angular.js:63:</p>
  </blockquote>
  
  <p>I had to remove a block of the response as it triggered a warning about more than 2 links in a post.</p>
  
  <p>So there's a bunch of errors there, and apparently a missing file, any advice ??</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-03T19:58:48.907Z
Answers.Text: Those error messages are interesting. For context, the expressions "CRM.config" and "CRM.angular" refer to data that is exported using code like ```<script>var CRM={config: {...values...}, angular: {...values...}};</script>````. If you visit http://d46.demo.civicrm.org/ and go to "New Mailing", you should see that as the first <script> tag. The error suggests that either the <script> tag is missing or misplaced. (a) You might post to the full page markup online (pastie.org/gist.github.com). (b) Do you have any settings/extensions to optimize markup or scripts? (c) What's the Joomla version?
Answers.UserDisplayName: Tim Otten
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-04T04:12:14.333Z
Answers.Text: Joomla 3.4.1 - I have no script optimization plugins on this site.
  
  Looked at that script on the demo site, then on the site I support.  The script includes a bunch of data from the previous mailings done from the site.
  
  Not sure what I'm looking for, but the script tags are there at the beginning and end.
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-04T04:29:07.663Z
Answers.Text: FWIW ... the Joomla demo site works fine, but it doesn't have the additional components that adds to the header (CSS lines), and apparently doesn't have any previously run mailings that add data to the original <script>var CRM= ... line.
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-04T18:28:18.383Z
Answers.Text: Given the error message, I'm less concerned about the specific content inside the "<script>var CRM=...</script>" line and more concerned about where/whether it appears in the document. For example, compare the snippets in https://gist.github.com/totten/6e6a84df8ef32be7e76b
Answers.UserDisplayName: Tim Otten
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-05T03:40:27.117Z
Answers.Text: Tim, in my first comment I did say that the script tags are there at the beginning and end. <script>.... </script> ... the system does put the closing tag on another line so its very easy to see.
  
  Also reading the note on that github page, yes there appears to be only one request, and it follows the CRM= line.
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T04:06:24.567Z
Answers.Text: Anyone have any other thoughts?   I need to get this email out, and am starting to realize I may have to do it via an extract to import into Thunderbird !!
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T05:36:37.203Z
Answers.Text: If all else fails, you can edit civicrm.settings.php and set ```define('CIVICRM_CIVIMAIL_UI_LEGACY', 1);``` . That option should be removed in 4.7, so we don't want to lean on it much, but it may help in a pinch.
Answers.UserDisplayName: Tim Otten
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T14:49:12.813Z
Answers.Text: Tim, that takes care of the issue for now.   However, it appears I'm not the only Joomla user having this issue.   I realize this forces the system to bypass the new user interface, but there has to be something that is causing this problem.
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T14:50:50.833Z
Answers.Text: FWIW ... the total removal of this option may need to be rethought, if a lot of Joomla users are having this issue.
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-30T02:55:28.473Z
Answers.Text: Well, installed 4.6.3, same issue, so I had to use the workaround.    I really don't know where to start in order to find the cause, as nothing is turning up in the usual error logs.
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-03T19:02:19.733Z
Answers.LastActivityDate: 2015-05-03T19:02:19.733Z
Answers.UserDisplayName: Neil Z
Answers.Body: <p>Evidently, I'm not the only Joomla user having this issue, as this thread:</p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/2042/civimail-incomplete-load?s=2|0.4530">CiviMail Incomplete Load</a></p>
  
  <p>was opened yesterday.    Unfortunately, it was closed saying that an answer could be found in THIS thread.   Wish that were true.</p>
  
  <p>I'm still waiting for someone to give me a hint at what to look at, other than Coleman's less than helpful "Check the troubleshooting hints".   </p>
  
  <p>Been there, done that, didn't help.     </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T14:49:50.147Z
Answers.Text: Tim Otten listed this workaround for now:
   
  "If all else fails, you can edit civicrm.settings.php and set define('CIVICRM_CIVIMAIL_UI_LEGACY', 1); . That option should be removed in 4.7, so we don't want to lean on it much, but it may help in a pinch."
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T04:12:28.310Z
Answers.LastActivityDate: 2015-05-06T04:12:28.310Z
Answers.LastEditDate: 2017-04-13T12:53:13.207Z
Answers.UserDisplayName: Neil Z
Body: <p>I upgraded to CiviCRM 4.6.2 on Joomla 3.4.1 last week.  Everything seemed to work fine, however, when I tried to send out a New Email today, the CiviMail page did not display, the CiviCRM menu did not properly display nor can it be used to navigate.  </p>
  
  <p>I tried to see if the same problem occurs on the Joomla Demo, but CiviCRM is only on Version 4.6.0 there.</p>
  
  <p>The following images reflect what I'm seeing:
  <img src="https://i.sstatic.net/OXliq.jpg" alt="CiviMail Menu -&gt; New Mailing"></p>
  
  <p>All other menu items under mailings display and work properly:
  <img src="https://i.sstatic.net/VulpI.jpg" alt="CiviMail Find Mails">
  Just one example.</p>
  
  <p>However, the new A/B test results in the same type of screen as in image 1:
  <img src="https://i.sstatic.net/NQ8rp.jpg" alt="CiviMail New A/B Test Screen result"></p>
  
  <p>I've cleaned out the Templates_C directly, along with the site &amp; browser caches, to no avail.</p>
  
  <p>I've got to get this mailing out to our members within the next few days.  Any assistance would be appreciated.</p>
  
Tags: <civimail><joomla>
Title: Problem with CiviMail Menu on Joomla 3.4.1 - CiviCRM 4.6.2
ThreadText: # Problem with CiviMail Menu on Joomla 3.4.1 - CiviCRM 4.6.2
  
  (Asked by: username_0 on 2015-05-03)
  
  I upgraded to CiviCRM 4.6.2 on Joomla 3.4.1 last week. Everything seemed to work fine, however, when I tried to send out a New Email today, the CiviMail page did not display, the CiviCRM menu did not properly display nor can it be used to navigate.
  
  I tried to see if the same problem occurs on the Joomla Demo, but CiviCRM is only on Version 4.6.0 there.
  
  The following images reflect what I'm seeing:
  ![CiviMail Menu -> New Mailing](https://i.sstatic.net/OXliq.jpg)
  
  All other menu items under mailings display and work properly:
  ![CiviMail Find Mails](https://i.sstatic.net/VulpI.jpg)
  Just one example.
  
  However, the new A/B test results in the same type of screen as in image 1:
  ![CiviMail New A/B Test Screen result](https://i.sstatic.net/NQ8rp.jpg)
  
  I've cleaned out the Templates\_C directly, along with the site & browser caches, to no avail.
  
  I've got to get this mailing out to our members within the next few days. Any assistance would be appreciated.
  
  **Tags:** civimail, joomla
  
  
  ---
  
  ## 8 answers
  
  ### Answer by username_1 on 2015-05-04. Score: 3
  
  In my case the issue was the K2 component (version 2.6.9), Joomla 3.4.1 and CiviCRM 4.6.2, specifically its system plugin, which is required for K2 to function correctly. This plugin monkeys with the HTML code and inserts Opengraph tags, but these are not escaped by CiviCRM, or they are inserted by K2 after CiviCRM has done its thing.
  
  See plugins/system/k2.php - specifically this code section:
  
  ```
  if (JString::strpos($response, 'prefix="og: http://ogp.me/ns#"') === false) 
                      { 
                              $searches[] = '<html '; 
                                      $searches[] = '<html>'; 
                              $replacements[] = '<html prefix="og: http://ogp.me/ns#" '; 
                              $replacements[] = '<html prefix="og: http://ogp.me/ns#">'; 
                      }
  
  ```
  
  Change this to:
  
  ```
  $app =& JFactory::getApplication(); 
              if ($app->isSite()){ 
  
                      if (JString::strpos($response, 'prefix="og: http://ogp.me/ns#"') === false) 
                      { 
                              $searches[] = '<html '; 
                                      $searches[] = '<html>'; 
                              $replacements[] = '<html prefix="og: http://ogp.me/ns#" '; 
                              $replacements[] = '<html prefix="og: http://ogp.me/ns#">'; 
                      } 
              } 
  
  ```
  
  [CiviRM bug tracker](https://issues.civicrm.org/jira/browse/CRM-16416)
  [JoomlaWorks / K2 issue report (and patch)](http://www.joomlaworks.net/forum/k2-en/41292-system-plugin-shouldn-t-modify-html-tag-on-adminstrator)
  
  > **Comments:**
  > **username_0**: Don't use K2 ...  
  
  ---
  
  ### Answer by username_2 on 2015-05-03. Score: 2
  
  The best place to start would be to go through the steps for [troubleshooting javascript in CiviCRM](http://forum.civicrm.org/index.php/topic,35850).
  
  > **Comments:**
  > **username_0**: Still having this issue in 4.6.3, and do not see any comments on 4.6.4 that this was even on the radar.   Am I the only one having this issue?   I do not see any specific cause during the 'steps for troubleshooting Javascript' ...  
  
  ---
  
  ### Answer by username_3 on 2017-10-09. Score: 1
  
  Still getting same problem with civi 4.6.32, Drupal 7.56, php 5.4.45
  
  Fixed by the workaround above of adding
  define('CIVICRM\_CIVIMAIL\_UI\_LEGACY', 1);
  to settings.civicrm.php
  
  
  ---
  
  ### Answer by username_0 on 2015-09-11. Score: 1
  
  UPDATE: with the install of v4.6.6, the problem has been resolved. The new mail interface works fine.
  
  Don't know if this is due to a change in teh CiviCRM coding, or something upgraded by the hosting company on their servers.
  
  That said, I really don't care as long as its now working :)
  
  
  ---
  
  ### Answer by username_4 on 2015-05-26. Score: 1
  
  I was having the exact same issue. The wasy solution for me was to convert everything over to the new Joomla articles system that is built in (which works really well) and dump (uninstall) K2. That immediately solved it for me.
  
  > **Comments:**
  > **username_0**: Not using K2 ..  
  
  ---
  
  ### Answer by username_5 on 2015-05-26. Score: 1
  
  I had something similar after an upgrade - if you have extensions - either disable them or update them to match the version of Civi you are running...
  
  
  ---
  
  ### Answer by username_0 on 2015-05-03. Score: 0
  
  I turned on the debugging, and looked in the console, and found this:
  
  > Empty string passed to getElementById(). jquery.min.js:2:0
  >
  > SyntaxError: missing } after property list administrator:185:28881
  >
  > TypeError: CRM.config is undefined administrator:5:2
  >
  > TypeError: CRM.angular is undefined crmApp.js:5:6
  > mutating the [[Prototype]] of an object will cause your code to run
  > very slowly; instead create the object with the correct initial
  > [[Prototype]] value using Object.create d3.min.js:3:7336
  >
  > TypeError: CRM.config is undefined administrator:110:28
  >
  > Error: [$injector:modulerr] Failed to instantiate module crmApp due
  > to: [$injector:nomod] Module 'crmApp' is not available! You either
  > misspelled the module name or forgot to load it. If registering a
  > module ensure that you specify the dependencies as the second
  > argument.
  >
  > //errors.angularjs.org/1.3.15/$injector/modulerr?p0=crmApp&p1=%5B%24injector%3Anomod%5D%20Module%20'crmApp'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.3.15%2F%24injector%2Fnomod%3Fp0%3DcrmApp%0AminErr%2F%3C%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A63%3A12%0Amodule%2F%3C%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1774%3A1%0Aensure%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1698%3A38%0Amodule%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1772%3A1%0AloadModules%2F%3C%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A4115%3A22%0AforEach%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A323%3A11%0AloadModules%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A4099%3A5%0AcreateInjector%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A4025%3A11%0Abootstrap%2FdoBootstrap%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1452%3A20%0Abootstrap%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1473%3A1%0AangularInit%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A1367%3A5%0A%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fangular%2Fangular.js%3Fr%3DIpysI%3A26304%3A5%0AjQuery.Callbacks%2Ffire%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fjquery%2Fdist%2Fjquery.js%3Fr%3DIpysI%3A3143%3A10%0AjQuery.Callbacks%2Fself.fireWith%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fjquery%2Fdist%2Fjquery.js%3Fr%3DIpysI%3A3255%3A7%0A.ready%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fjquery%2Fdist%2Fjquery.js%3Fr%3DIpysI%3A3467%3A1%0Acompleted%40http%3A%2F%2Fmysite.com%2Fadministrator%2Fcomponents%2Fcom\_civicrm%2Fcivicrm%2Fbower\_components%2Fjquery%2Fdist%2Fjquery.js%3Fr%3DIpysI%3A3498%3A3%0A
  > angular.js:63:
  
  I had to remove a block of the response as it triggered a warning about more than 2 links in a post.
  
  So there's a bunch of errors there, and apparently a missing file, any advice ??
  
  > **Comments:**
  > **username_6**: Those error messages are interesting. For context, the expressions "CRM.config" and "CRM.angular" refer to data that is exported using code like ```<script>var CRM={config: {...values...}, angular: {...values...}};</script>````. If you visit http://d46.demo.civicrm.org/ and go to "New Mailing", you should see that as the first <script> tag. The error suggests that either the <script> tag is missing or misplaced. (a) You might post to the full page markup online (pastie.org/gist.github.com). (b) Do you have any settings/extensions to optimize markup or scripts? (c) What's the Joomla version?  
  > **username_0**: Joomla 3.4.1 - I have no script optimization plugins on this site.  Looked at that script on the demo site, then on the site I support.  The script includes a bunch of data from the previous mailings done from the site.  Not sure what I'm looking for, but the script tags are there at the beginning and end.  
  > **username_0**: FWIW ... the Joomla demo site works fine, but it doesn't have the additional components that adds to the header (CSS lines), and apparently doesn't have any previously run mailings that add data to the original <script>var CRM= ... line.  
  > **username_6**: Given the error message, I'm less concerned about the specific content inside the "<script>var CRM=...</script>" line and more concerned about where/whether it appears in the document. For example, compare the snippets in https://gist.github.com/totten/6e6a84df8ef32be7e76b  
  > **username_0**: Tim, in my first comment I did say that the script tags are there at the beginning and end. <script>.... </script> ... the system does put the closing tag on another line so its very easy to see.  Also reading the note on that github page, yes there appears to be only one request, and it follows the CRM= line.  
  > **username_0**: Anyone have any other thoughts?   I need to get this email out, and am starting to realize I may have to do it via an extract to import into Thunderbird !!  
  > **username_6**: If all else fails, you can edit civicrm.settings.php and set ```define('CIVICRM_CIVIMAIL_UI_LEGACY', 1);``` . That option should be removed in 4.7, so we don't want to lean on it much, but it may help in a pinch.  
  > **username_0**: Tim, that takes care of the issue for now.   However, it appears I'm not the only Joomla user having this issue.   I realize this forces the system to bypass the new user interface, but there has to be something that is causing this problem.  
  > **username_0**: FWIW ... the total removal of this option may need to be rethought, if a lot of Joomla users are having this issue.  
  > **username_0**: Well, installed 4.6.3, same issue, so I had to use the workaround.    I really don't know where to start in order to find the cause, as nothing is turning up in the usual error logs.  
  
  ---
  
  ### Answer by username_0 on 2015-05-06. Score: 0
  
  Evidently, I'm not the only Joomla user having this issue, as this thread:
  
  [CiviMail Incomplete Load](https://civicrm.stackexchange.com/questions/2042/civimail-incomplete-load?s=2|0.4530)
  
  was opened yesterday. Unfortunately, it was closed saying that an answer could be found in THIS thread. Wish that were true.
  
  I'm still waiting for someone to give me a hint at what to look at, other than username_2's less than helpful "Check the troubleshooting hints".
  
  Been there, done that, didn't help.
  
  > **Comments:**
  > **username_0**: username_6 listed this workaround for now:   "If all else fails, you can edit civicrm.settings.php and set define('CIVICRM_CIVIMAIL_UI_LEGACY', 1); . That option should be removed in 4.7, so we don't want to lean on it much, but it may help in a pinch."  
  
  ---
  
  