0

I am getting the following error and I am hosting the a local server using WAMP and using version 5.6.19 of PHP

Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

Ravi Janjwadia
  • 115
  • 1
  • 3
  • 12
  • 2
    What is unclear in the error message? – Jens Jun 05 '16 at 07:54
  • 3
    Possible duplicate of [Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?](http://stackoverflow.com/questions/5444249/unable-to-find-the-wrapper-https-did-you-forget-to-enable-it-when-you-config) – Alex Shesterov Jun 05 '16 at 07:55

2 Answers2

5

You need to enable php-openssl in your WAMP.

For this, click on the WAMP icon in your systemtray. Click on PHP. Then hover the PHP Extensions. Then click on the php_openssl

Akhilesh B Chandran
  • 6,523
  • 7
  • 28
  • 55
2

I think what you can try is to:

Install php5-openssl Restart Apache afterwards.

It will likely to solve that problem.

And there's also another possible solution: You can find the "php.ini" file, and open it, you will find the line: extension=php_openssl.dll And is there a semicolon at beginning? If yes, simply delete it and it will work.

If that doesn't work or you have further issues, comment me and I will help you! :)

  • Sorry but I am using PHP server and not Apache – Ravi Janjwadia Jun 05 '16 at 08:01
  • So you are using WAMP on Windows Right? –  Jun 05 '16 at 08:04
  • What you can try is to delete the ; mark before extension=php_openssl.dll in PHP.INI if you are under Windows Environment –  Jun 05 '16 at 08:08
  • Yes Wamp on Windows – Ravi Janjwadia Jun 05 '16 at 08:09
  • What you can try is to delete the ; mark before extension=php_openssl.dll in PHP.INI if you are under Windows Environment –  Jun 05 '16 at 08:10
  • 1
    Here's one possible solution: So you can find the "php.ini" file, and open it, you will find the line: extension=php_openssl.dll And is there a semicolon at beginning? If yes, simply delete it and it will work. –  Jun 05 '16 at 08:21
  • If it helps, you can mark my answer as "Accepted" Thanks for doing that! –  Jun 05 '16 at 08:27