• Resolved mortommy

    (@mortommy)


    Hi,
    I’m using the pluging v4.2.3 set in automatic mode (manual mode fails to activate). I noticed that the website, installed on local server, doesn’t load the Google Fonts (open source) for pages different from the Home one. The devtools shows an error related to an url not available:

    https://website-addres-here/wp-json/omgf/v1/download/css?family=Roboto%3A100%2C100italic%2C300%2C300italic%2Cregular%2Citalic%2C500%2C500italic%2C700%2C700italic%2C900%2C900italic%7CMerriweather+Sans%3A300%2Cregular%2C500%2C600%2C700%2C800%2C300italic%2Citalic%2C500italic%2C600italic%2C700italic%2C800italic%7CChivo%3A300%2C300italic%2Cregular%2Citalic%2C700%2C700italic%2C900%2C900italic&handle=auxin-fonts-google&original_handle=auxin-fonts-google&ver=2

    the url is https but my site has not yet the ssl available. In the website setting values of wordpress and web site addresses are correct. Any idea of the why?

    Thank you.

    • This topic was modified 4 years, 1 month ago by mortommy.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    Since a recent WordPress update, sslverify is enabled by default in WordPress. Which makes sense, cause it’s good practice to verify the security of a connection. Since you don’t have an SSL certificate, you can do two things:

    – Disable sslverify, using a custom plugin (don’t do this in your public environment!)

    
    function disable_sslverify( $params, $url )
    {
    	$params['sslverify'] = false;
    	
    	return $params;
    }
    add_filter( 'http_request_args', 'disable_sslverify', 10, 2 );
    

    – Setup your local development environment to allow http connections.

    Hope it helps ??

    Thread Starter mortommy

    (@mortommy)

    Clear. Helped a lot. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin looking for fonts via SSL’ is closed to new replies.