Answers.Body: <p>While I'm not sure what exactly cause an "Undefined offset" PHP notice (need to go deeper), yet temporary fast emergency fix for "New Mailing" screen to appear would be PHP Notices disable via Joomla configuration </p>
  
  <pre><code> /administrator/index.php?option=com_config 
   Server &gt; Error Reporting &gt; put it None (or Simple)
  </code></pre>
  
  <p>It seems printed notices interfere to Angular2 which tries to read page content but fails at first <br> tag of the Notice text. </p>
  
  <p>Would be nice to tell Angular to pass PHP Notices texts somehow and try to figure out what happens at <strong>Mailing/Info.php on line 82</strong> though. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-22T20:08:07.873Z
Answers.Text: "Instant" fix for "Undefined offset": seems it fires when there is no reports in a system, so let us perform a simple empty check:      if(!empty($result['values'])) {
         $reportIds[$report] = $result['values'][0]['id'];
        }
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-23T09:39:21.007Z
Answers.Text: well, it works both ways, it would be nice to get this fix accepted to the core of Civicrm (disabling php notices is not very elegant nor future proof), is there a way to accelerate the process?
Answers.UserDisplayName: Fresco
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-23T17:00:47.670Z
Answers.Text: You may want to follow this pull request https://github.com/civicrm/civicrm-core/pull/11181
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-22T19:54:39.313Z
Answers.LastActivityDate: 2017-10-22T19:54:39.313Z
Answers.UserDisplayName: yurg
Answers.Body: <p>This 'sounds' like the angular issue hitting your site and you are likely to find similar tickets if you search <a href="https://civicrm.stackexchange.com/questions/tagged/angular">Tags = Angular</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-20T13:07:25.060Z
Answers.Text: Hi, I've delved into all the angular tagged posts, doing checks and tests, and I discovered that my Administer > System Settings > Directories page is blank (or similar), looks like:
  http://awesomescreenshot.com/0016dzgced
Answers.UserDisplayName: Fresco
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-20T13:15:08.803Z
Answers.Text: Then I went directly into civicrm_settings to test new paths, but they didn't change the situation.
  Now I suspect it could be something left of the first migration from the test site, I made a search and found some records, corrected them, but the situation is the same, even after clearing all caches. Now I don't know what to do, have you got any hint (or links) for such a situation?
Answers.UserDisplayName: Fresco
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-18T17:55:56.240Z
Answers.LastActivityDate: 2017-10-18T17:55:56.240Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I'm using locally Civicrm 4.7.25 on Joomla 3.8.1 and starting from 4.7.22 (although I am not sure it's a consequence of an update) whenever I try to access a "New mailing" menu I get a blank page: <a href="http://awesomescreenshot.com/0706dy7a64" rel="nofollow noreferrer">http://awesomescreenshot.com/0706dy7a64</a>
  and this notice:
  Notice: Undefined offset: 0 in /share/CACHEDEV1_DATA/Web/civi917/administrator/components/com_civicrm/civicrm/CRM/Mailing/Info.php on line 82
  Now I don't know how to solve this issue, anyone can help me please?</p>
  
  <p>Other useful info:
  phpversion: 5.6.31
  dbversion: 5.5.57-MariaDB
  server: Apache on linux</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-18T16:24:39.483Z
Comments.Text: I should add I also migrated to another linux platform, and tried switching php version (5.5, 7.0.7...), but the best I can get is a "Initializing..." on the page, under title, nothing better.
Comments.UserDisplayName: Fresco
Tags: <joomla><mailing>
Title: Blank page in mailings with notice
ThreadText: # Blank page in mailings with notice
  
  (Asked by: username_0 on 2017-10-18)
  
  I'm using locally Civicrm 4.7.25 on Joomla 3.8.1 and starting from 4.7.22 (although I am not sure it's a consequence of an update) whenever I try to access a "New mailing" menu I get a blank page: <http://awesomescreenshot.com/0706dy7a64>
  and this notice:
  Notice: Undefined offset: 0 in /share/CACHEDEV1\_DATA/Web/civi917/administrator/components/com\_civicrm/civicrm/CRM/Mailing/Info.php on line 82
  Now I don't know how to solve this issue, anyone can help me please?
  
  Other useful info:
  phpversion: 5.6.31
  dbversion: 5.5.57-MariaDB
  server: Apache on linux
  
  **Tags:** joomla, mailing
  
  > **Comments:**
  > **username_0**: I should add I also migrated to another linux platform, and tried switching php version (5.5, 7.0.7...), but the best I can get is a "Initializing..." on the page, under title, nothing better.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-10-22. Score: 0 | Accepted answer
  
  While I'm not sure what exactly cause an "Undefined offset" PHP notice (need to go deeper), yet temporary fast emergency fix for "New Mailing" screen to appear would be PHP Notices disable via Joomla configuration 
   /administrator/index.php?option=com_config 
   Server > Error Reporting > put it None (or Simple)
  
  It seems printed notices interfere to Angular2 which tries to read page content but fails at first  tag of the Notice text. 
  Would be nice to tell Angular to pass PHP Notices texts somehow and try to figure out what happens at Mailing/Info.php on line 82 though.
  
  > **Comments:**
  > **username_1**: "Instant" fix for "Undefined offset": seems it fires when there is no reports in a system, so let us perform a simple empty check:      if(!empty($result['values'])) {        $reportIds[$report] = $result['values'][0]['id'];       }  
  > **username_0**: well, it works both ways, it would be nice to get this fix accepted to the core of Civicrm (disabling php notices is not very elegant nor future proof), is there a way to accelerate the process?  
  > **username_1**: You may want to follow this pull request https://github.com/civicrm/civicrm-core/pull/11181  
  
  ---
  
  ### Answer by username_2 on 2017-10-18. Score: 0
  
  This 'sounds' like the angular issue hitting your site and you are likely to find similar tickets if you search [Tags = Angular](https://civicrm.stackexchange.com/questions/tagged/angular)
  
  > **Comments:**
  > **username_0**: Hi, I've delved into all the angular tagged posts, doing checks and tests, and I discovered that my Administer > System Settings > Directories page is blank (or similar), looks like: http://awesomescreenshot.com/0016dzgced  
  > **username_0**: Then I went directly into civicrm_settings to test new paths, but they didn't change the situation. Now I suspect it could be something left of the first migration from the test site, I made a search and found some records, corrected them, but the situation is the same, even after clearing all caches. Now I don't know what to do, have you got any hint (or links) for such a situation?  
  
  ---
  
  