problema con gutentor plugin
[FONT=Arial]Ciao!
Ho contattato gli sviluppatori del plugin Gutentor dal momento che non caricava i blocchi sul mio sito e volevo sapere perché. Gli sviluppatori hanno cercato di risolvere il problema in ogni modo possibile ma mi hanno scritto di contattare il supporto del sito scrivendo questo.
file_get_contents and curl both are not working on this server but work elsewhere localhost or other servers.
Here is my code:
function my_test_curl_get_contents($url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
$url = 'https://raw.githubusercontent.com/gutentor/template-library/master/blocks/about-block/about-1/gutentor_about-block.json';
$curl_response = my_test_curl_get_contents( $url);
echo "<pre>";
print_r($curl_response);
$file_get_contents_response = file_get_contents( $url );
print_r($file_get_contents_response);
echo "</pre>";
Here is error : Warning: file_get_contents(https://raw.githubusercontent.com/gu...t-block.json):
failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /membri/cashthatback/wp-content/themes/read-more/functions.php on line 25
Test Url : https://cashthatback.altervista.org/
Can you please make this work on this server ?
Non so cosa voglia dire ... idee su come risolvere ??
grazie