Answers.Body: <p>The code in question is checking whether CiviCRM has updates available that you haven't installed yet.  If you've reached line 522, that means that CiviCRM has that info - possibly from checking <a href="https://latest.civicrm.org/" rel="nofollow noreferrer">https://latest.civicrm.org/</a> but more likely because it saved the results in <code>version-msgs-cache.json</code>.  However, the error is suggesting the info isn't present.</p>
  
  <p>This could be a weird file permission issue, or perhaps a malformed <code>version-msgs-cache.json</code>.  If you know you're running the latest version of CiviCRM, I'd ignore this and see if it clears up when the cache expires (72 hours).  If you're not running the latest version, please edit your question with a) the CiviCRM version you're running, b) the contents of <code>version-msgs-cache.json</code>, which should be in your CiviCRM uploads folder.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-24T14:28:03.150Z
Answers.Text: Hi @jon - I have updated the CiviCRN version in my original post. Additionally i checke the file version-msgs-cache.json in the uplaod folder. The file exists, but is empty. I deleted the files in cache folder, but i still get the message. Do you have any idea?
Answers.UserDisplayName: Mark B.
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-24T15:33:00.313Z
Answers.Text: Hm. I'm hard-pressed to think of why that file might exist but would be empty.  I suspect you might have an outgoing firewall blocking update checks - is that possible?
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-27T20:43:40.763Z
Answers.Text: I have played around, removed the empty file and the cache folder again and logged in again. After that i received the following two message after login: 
  
  Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in CRM_Utils_VersionCheck->pingBack() ...
  
  Warning: file_get_contents(https://latest.civicrm.org/stable.php?format=summary): failed to open stream: No such file or directory in CRM_Utils_VersionCheck->pingBack() ...
  
  I think i need to update PHP first and install some additional modules.. Thanks for your help!
Answers.UserDisplayName: Mark B.
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-23T14:22:15.607Z
Answers.LastActivityDate: 2018-12-23T14:22:15.607Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>anyone an idea what this warning is about? I get this warning straight after fresh installation.</p>
  
  <p>Warning: Invalid argument supplied for foreach() in CRM_Utils_Check_Component_Env->checkVersion() (Zeile 522 von /www/myorg/sites/all/modules/civicrm/CRM/Utils/Check/Component/Env.php).</p>
  
  <p>My Environment:</p>
  
  <ul>
  <li>OS: OpenSUSE Leap 42.3 </li>
  <li>PHP Version: 5.5.14 </li>
  <li>CiviCRM Version: 5.7.0</li>
  </ul>
  
  <p>Would be great if someone can support!</p>
  
  <p>Regards,
  Said</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-20T14:54:33.967Z
Comments.Text: Can you please edit your question to tell us your PHP vrsion?
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-21T13:42:25.970Z
Comments.Text: Updated my post with PHP version
Comments.UserDisplayName: Mark B.
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-23T14:17:11.673Z
Comments.Text: One more question - please add your CiviCRM version?
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <installation>
Title: Warning after installation: Invalid argument supplied for foreach() in CRM_Utils_Check_Component_Env
ThreadText: # Warning after installation: Invalid argument supplied for foreach() in CRM_Utils_Check_Component_Env
  
  (Asked by: username_0 on 2018-12-19)
  
  anyone an idea what this warning is about? I get this warning straight after fresh installation.
  
  Warning: Invalid argument supplied for foreach() in CRM\_Utils\_Check\_Component\_Env->checkVersion() (Zeile 522 von /www/myorg/sites/all/modules/civicrm/CRM/Utils/Check/Component/Env.php).
  
  My Environment:
  
  * OS: OpenSUSE Leap 42.3
  * PHP Version: 5.5.14
  * CiviCRM Version: 5.7.0
  
  Would be great if someone can support!
  
  Regards,
  Said
  
  **Tags:** installation
  
  > **Comments:**
  > **username_1**: Can you please edit your question to tell us your PHP vrsion?  
  > **username_0**: Updated my post with PHP version  
  > **username_1**: One more question - please add your CiviCRM version?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-12-23. Score: 1 | Accepted answer
  
  The code in question is checking whether CiviCRM has updates available that you haven't installed yet. If you've reached line 522, that means that CiviCRM has that info - possibly from checking <https://latest.civicrm.org/> but more likely because it saved the results in `version-msgs-cache.json`. However, the error is suggesting the info isn't present.
  
  This could be a weird file permission issue, or perhaps a malformed `version-msgs-cache.json`. If you know you're running the latest version of CiviCRM, I'd ignore this and see if it clears up when the cache expires (72 hours). If you're not running the latest version, please edit your question with a) the CiviCRM version you're running, b) the contents of `version-msgs-cache.json`, which should be in your CiviCRM uploads folder.
  
  > **Comments:**
  > **username_0**: Hi @jon - I have updated the CiviCRN version in my original post. Additionally i checke the file version-msgs-cache.json in the uplaod folder. The file exists, but is empty. I deleted the files in cache folder, but i still get the message. Do you have any idea?  
  > **username_1**: Hm. I'm hard-pressed to think of why that file might exist but would be empty.  I suspect you might have an outgoing firewall blocking update checks - is that possible?  
  > **username_0**: I have played around, removed the empty file and the cache folder again and logged in again. After that i received the following two message after login:   Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in CRM_Utils_VersionCheck->pingBack() ...  Warning: file_get_contents(https://latest.civicrm.org/stable.php?format=summary): failed to open stream: No such file or directory in CRM_Utils_VersionCheck->pingBack() ...  I think i need to update PHP first and install some additional modules.. Thanks for your help!  
  
  ---
  
  