• Resolved areebsooyasir

    (@areebsooyasir)


    The main error seems to be that file_get_contents cannot properly use SSL

    file_get_contents(): Failed to enable crypto in /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/vendor/mgp25/instagram-php/src/http/HttpInterface.php on line 119

    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/vendor/mgp25/instagram-php/src/http/HttpInterface.php on line 119
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP Stack trace:
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 1. {main}() /www/vhosts/domain.com/httpdocs/wp-cron.php:0
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 2. do_action_ref_array() /www/vhosts/domain.com/httpdocs/wp-cron.php:117
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 3. call_user_func_array:{/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php:601}() /www/vhosts/domain.com/httpdocs/wp-includes/plugin.php:601
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 4. Woo_IGP->wigp_ig_post() /www/vhosts/domain.com/httpdocs/wp-includes/plugin.php:601
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 5. InstagramAPI\\Instagram->uploadPhoto() /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/classes/class-woo-igp.php:384
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 6. InstagramAPI\\HttpInterface->uploadPhoto() /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/vendor/mgp25/instagram-php/src/Instagram.php:476
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 7. file_get_contents() /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/vendor/mgp25/instagram-php/src/http/HttpInterface.php:119
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP Warning: file_get_contents(): Failed to enable crypto in /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/vendor/mgp25/instagram-php/src/http/HttpInterface.php on line 119
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP Stack trace:
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 1. {main}() /www/vhosts/domain.com/httpdocs/wp-cron.php:0
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 2. do_action_ref_array() /www/vhosts/domain.com/httpdocs/wp-cron.php:117
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 3. call_user_func_array:{/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php:601}() /www/vhosts/domain.com/httpdocs/wp-includes/plugin.php:601
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 4. Woo_IGP->wigp_ig_post() /www/vhosts/domain.com/httpdocs/wp-includes/plugin.php:601
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 5. InstagramAPI\\Instagram->uploadPhoto() /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/classes/class-woo-igp.php:384
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 6. InstagramAPI\\HttpInterface->uploadPhoto() /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/vendor/mgp25/instagram-php/src/Instagram.php:476
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP 7. file_get_contents() /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/vendor/mgp25/instagram-php/src/http/HttpInterface.php:119
    [Wed Oct 04 14:42:38 2017] [error] [client 192.168.5.8] PHP Warning: file_get_contents(https://domain.com/wp-content/uploads/2017/10/Redhat-Linux-Dot-NEt.jpg): failed to open stream: operation failed in /www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-instagram-post/vendor/mgp25/instagram-php/src/http/HttpInterface.php on line 119

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author qsheeraz

    (@qsheeraz)

    Hi,

    Are you trying this at localhost?
    You are trying to use OpenSSL which may not working properly.
    Please check it again.

    For further details, please contact [email protected]

    Regards

    Thread Starter areebsooyasir

    (@areebsooyasir)

    Not on localhost but it is using SSL for the image URL and there’s no way around this. Googling seems to show this is moreso an error of the SSL library/PHP. Is it possible to use another function to get the image?

    Thanks for a great plugin and any help!

    Thread Starter areebsooyasir

    (@areebsooyasir)

    Solution may be in the plugin “wp-posts-to-instagram-by-kolesyane” because it does work with SSL

    Plugin Author qsheeraz

    (@qsheeraz)

    Please keep in touch at [email protected]
    We will try to provide you alternate solution for your site.

    Regards

    Thread Starter areebsooyasir

    (@areebsooyasir)

    Just e-mailed you and for anyone having the same issue:

    I found a work around by editing line 119 and adding this:

    $photo=str_replace(“https”,”http”,$photo);

    Plugin Author qsheeraz

    (@qsheeraz)

    Thanks for the code ??
    Added in v1.1
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cannot POST SSL Bug in file_get_contents’ is closed to new replies.