• Resolved herculesdesign

    (@herculesdesign)


    Hi,
    I have another problem.
    Here are the details of the error:

    wp_remote_post() failed. Many advanced features may not function. Contact your hosting provider. Error: cURL error 7: Failed to connect to api.redux.io port 443 after 2041 ms: Connection refused

    Please note that the cURL library works on the server.
    What could be the cause of this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kev Provance

    (@kprovance)

    Most user who report this have experiences an issue on their server, usually a setting in PHP module when post/get calls fail because of CURL. Between this and you sever acting as if a version below PHP 7.x in installed, I suspect something else is going on that is manifesting itself here. I would highly recommend contacting whomever does support for your website and tell them PHP 7 specific code is kicking back errors and that API with cURL calls are also failing, I, personally, am unable to debug your server.

    If you check https://api.redux.io/gfonts and see a JSON string of Google fonts, then the server is working

    Thread Starter herculesdesign

    (@herculesdesign)

    The site took 3-5 minutes to load. I fixed it by adding this filter:

    if ( !function_exists( ‘google_field_path’ ) ):
    function google_field_path() {
    return ‘https://raw.githubusercontent.com/reduxframework/google-fonts/master/google_fonts.json’;
    }
    endif;

    add_filter( “redux/typography/google_fonts/url”, “google_field_path” );

    This means that the server has a problem connecting to your API address:

    https://api.redux.io/gfonts

    Is my solution optimal or can it be done better?

    Plugin Author Kev Provance

    (@kprovance)

    I’m not seeing that kind of lag here. You are free to add that filter in your project if you like. If I tie the core to GitHub and something happen in the future where GitHub isn’t available, then it means mass breakage. The redirect from the server saves that issue.

    It may also be an internet traffic issue somewhere.

    Thread Starter herculesdesign

    (@herculesdesign)

    Okay thank you. If there is any problem, I will contact you, and in the meantime I am closing this thread.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wp_remote_post() failed’ is closed to new replies.