Support » Plugin: PayPal Plus for WooCommerce » Warning: file_get_contents() alternative with curl

  • Resolved itdahdev

    (@itdahdev)


    Hi,

    we like ur plugin, but since some server security configurations, we have troubles, because

    “Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0”

    file_get_contents(http://paypalnotice.inpsyde.com/): failed to open stream: no suitable wrapper could be found

    Type: PHP Warning Line: 47
    File: /wp-content/plugins/woo-paypalplus/src/Notice/Admin.php

    Can you please provide a check for alternative _getter like curl, because more security as file_get_contents like below:

    if(function_exists(‘curl_init’)) { // prefer curl

    } elseif(ini_get(‘allow_url_fopen’)) { // alternative file_get_contents

    }

    With best regards,
    Alex

    • This topic was modified 2 years, 1 month ago by itdahdev. Reason: wrong url
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @itdahdev

    please tell your hoster PayPal Plus will be loaded as iframe so I think iframes are blocked. Right now there is no other way to show payment options without an iframe.

    Thank you

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Wegen Inaktivität geschlossen

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: file_get_contents() alternative with curl’ is closed to new replies.