Answers.Body: <p>Perhaps <code>allow_url_fopen=1</code> should be set in PHP.ini file on your web host. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-13T16:41:12.450Z
Answers.Text: Its enabled by default on the server - but I added to PHP,ini anyways. Issue still persists. Luckily error only shows up as Admin.
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-13T17:20:23.017Z
Answers.Text: Actually - my host stored the settings elsewhere - I was able to change the settings to allow_url_fopen=1 - Thank you!
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-13T13:21:54.753Z
Answers.LastActivityDate: 2018-02-13T13:21:54.753Z
Answers.UserDisplayName: yurg
Body: <p>After Upgrading to PHP 7.0 - I keep getting the following error on the Member Dashboard.  Do you know what causes this? This happened to be before - I changed the resource URLs to Absolute and that fixed it - now this error is back. </p>
  
  <p>`Warning: get_headers(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/sitename/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check/Component/Env.php on line 903</p>
  
  <p>Warning: get_headers(): This function may only be used against URLs in /home/sitename/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check/Component/Env.php on line 903`</p>
  
  <p>I should also note that the System Status Page mentions that the "The Resource URL is not set correctly."  even though it is. </p>
  
  <p><strong>Update:</strong> Thanks to Yurg's answer below - I contacted the webhost - they store PHP options elsewhere - I was able to change settings to allow_url_fopen=1 and that fixed everything!</p>
  
Tags: <dashboard><user-dashboard>
Title: Error on Member Dashboard after upgrading to PHP 7.0
ThreadText: # Error on Member Dashboard after upgrading to PHP 7.0
  
  (Asked by: username_0 on 2018-02-13)
  
  After Upgrading to PHP 7.0 - I keep getting the following error on the Member Dashboard. Do you know what causes this? This happened to be before - I changed the resource URLs to Absolute and that fixed it - now this error is back.
  
  `Warning: get\_headers(): https:// wrapper is disabled in the server configuration by allow\_url\_fopen=0 in /home/sitename/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check/Component/Env.php on line 903
  
  Warning: get\_headers(): This function may only be used against URLs in /home/sitename/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check/Component/Env.php on line 903`
  
  I should also note that the System Status Page mentions that the "The Resource URL is not set correctly." even though it is.
  
  **Update:** Thanks to Yurg's answer below - I contacted the webhost - they store PHP options elsewhere - I was able to change settings to allow\_url\_fopen=1 and that fixed everything!
  
  **Tags:** dashboard, user-dashboard
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-02-13. Score: 1 | Accepted answer
  
  Perhaps `allow_url_fopen=1` should be set in PHP.ini file on your web host.
  
  > **Comments:**
  > **username_0**: Its enabled by default on the server - but I added to PHP,ini anyways. Issue still persists. Luckily error only shows up as Admin.  
  > **username_0**: Actually - my host stored the settings elsewhere - I was able to change the settings to allow_url_fopen=1 - Thank you!  
  
  ---
  
  