Visualizzazione risultati 1 fino 2 di 2

Discussione: problema con gutentor plugin

  1. #1
    cashthatback non è connesso Utente AlterBlog
    Data registrazione
    17-10-2019
    Messaggi
    1

    Unhappy 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

  2. #2
    L'avatar di alemoppo
    alemoppo è connesso ora Staff AV
    Data registrazione
    24-08-2008
    Residenza
    PU / BO
    Messaggi
    22,064

    Predefinito

    Il problema rilevato dovrebbe essere risolvibile attivando le connessione server to server: Impostazioni -> Server To Server.

    Ciao!

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •