• Resolved Dewdan

    (@dewdan)


    Hi Narinder,

    Thank you for the latest upgrade
    After the latest upgrade i get the following error X4:

    Warning: file_get_contents(https://ipinfo.io): failed to open stream: no suitable wrapper could be found in ……/wp-content/plugins/country-phone-field-contact-form-7/includes/include-js-css.php on line 6
    PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in ……/wp-content/plugins/country-phone-field-contact-form-7/includes/include-js-css.php on line 6

    The line in question is: $json = file_get_contents(“https://ipinfo.io”);

    Do I need to configure the server somehow?
    Please advice

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Dewdan

    (@dewdan)

    Hi again, i found the solution for this.

    php.ini must have those two belloow set to ON!
    allow_url_fopen – On
    allow_url_include – On

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hi @dewdan,

    Thank you for letting me know about this bug. Yes, it’s related to PHP server settings. I applied a code check. Is PHP allow_url_fopen is ON or not.

    I hope plugin is working fine for you.
    I mark resolved this issue.

    Regards
    Narinder.

    Thread Starter Dewdan

    (@dewdan)

    Yes Narinder, all issues are resolved, thank you for this simple yet very useful plugin!

    You could mention that before upgrades the list of the favourite countries should be saved as the upgrade will reset all of those custom edits!

    Thank you for your work Narinder.
    Cheers
    Daniel

    Also Getting Same Error. editing Php.ini not working. Any Other Solution ?

    Thread Starter Dewdan

    (@dewdan)

    You probably need to contact you service provider so they can edit your root php.ini file. I had to do that as well as editing my php.ini didn’t work either because the server apache settings didn’t allow for that…

    • This reply was modified 5 years, 10 months ago by Dewdan.

    Hi Thanks for Helpful Post & Reply.
    I having issue like following:

    Warning: file_get_contents(https://ipinfo.io/): failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests in /home/zoetal5/public_html/wp-content/plugins/country-phone-field-contact-form-7/includes/include-js-css.php on line 8

    Warning: file_get_contents(https://ipinfo.io/): failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests in /home/zoetal5/public_html/wp-content/plugins/country-phone-field-contact-form-7/includes/include-js-css.php on line 8

    Site Link: https://zoetalentsolutions.com

    Any help will be much appreciated.
    Thanks in advance

    Thread Starter Dewdan

    (@dewdan)

    Just make sure you have a php.ini file in /home/zoetal5/public_html/
    allow_url_fopen = On
    allow_url_include = On

    and if your WP instalation is further up like /home/user/public_html/wordpress
    make sure you have a php.ini in there too!

    I moved my ready wp to show on the main domain name even if the instalation files are under a subdirectory and I was getting the error again, so I just copied the php.ini to the subdirectory and all is good again.

    I hope this helps

    Cheers
    Daniel

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error warning after latest upgrade’ is closed to new replies.