• Cześć

    System: Debian Buster.

    wp --info
    OS:	Linux 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64
    Shell:	/bin/bash
    PHP binary:	/usr/bin/php7.3
    PHP version:	7.3.4-2
    php.ini used:	
    WP-CLI root dir:	phar://wp-cli.phar/vendor/wp-cli/wp-cli
    WP-CLI vendor dir:	phar://wp-cli.phar/vendor
    WP_CLI phar path:	/home/www/blog
    WP-CLI packages dir:	
    WP-CLI global config:	
    WP-CLI project config:	
    WP-CLI version:	2.2.0

    Świeża instalacja WordPressa 5.2.2
    Od razu mam komunikaty w kokpicie, o zablokowaniu połączeń http z wordpress.org

    Ten sam problem występuje też przy wp-cli:

    # wp plugin install contact-form
    Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home/www/blog/wp-admin/includes/plugin-install.php on line 180
    Warning: contact-form: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.
    Warning: The 'contact-form' plugin could not be found.
    Error: No plugins installed.

    PHP-curl zainstalowany i działa zarówno przy http jak i cli, sprawdzone małym skryptem:

    <?php
            $ch = curl_init("https://wordpress.org");
            curl_setopt($ch, CURLOPT_HEADER, 0);
            curl_setopt($ch, CURLOPT_POST, 1);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            $output = curl_exec($ch);      
            curl_close($ch);
            echo $output;
    ?>

    Czy działa?

    php testcurlwp.php | egrep -B2 -A2 emo
    <link rel=”alternate” href=”https://ar.wordpress.org/&#8221; hreflang=”ar” />
    <link rel=”alternate” href=”https://arq.wordpress.org/&#8221; hreflang=”arq” />
    <link rel=”alternate” href=”https://emoji.wordpress.org/&#8221; hreflang=”art-xemoji” />
    <link rel=”alternate” href=”https://ary.wordpress.org/&#8221; hreflang=”ary” />
    <link rel=”alternate” href=”https://as.wordpress.org/&#8221; hreflang=”as” />

    Reasumując, coś nie funguje w implementacji curla w Wordpresie.

    Wszelkie sugestie mile widziane.

    Pozdro

    • This topic was modified 5 years, 4 months temu by Jacekalex.
    • This topic was modified 5 years, 4 months temu by Jacekalex.
    • This topic was modified 5 years, 4 months temu by Jacekalex.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • Temat ‘WordPress could not establish a secure connection to WordPress.org’ jest zamknięty na nowe odpowiedzi.