Tolong Bantuannya (.../plugin-install.php)


Status
Not open for further replies.

marinanya

Beginner 2.0
Tolong dibantu kawan-kawanDWH:77:
Langsung pada perkara; tadi pagi pas update tema tidak ada kendala apa-apa, kemudian coba install plugin security (bad habbit saya sering tutup pasang plugin dan tema di wordpress:() tak lama kemudian ada peringatan
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 support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home2/jomblose/public_html/wp-admin/includes/translation-install.php on line 65

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 support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home2/jomblose/public_html/wp-admin/includes/plugin-install.php on line 168
sebelumnya penyakit ini muncul tapi pas lepas beberapa plugin dah sehat lagi, tapi sekarang beda sampai bersihin semua plugin yang ada tetap saja itu keluar dan tidak bisa check plugin otomatis bahkan untuk gmetrix tidak bisa. mohon bantuannya tuan-tuan sekalian:63::20: (maaf mungkin reaksinya berlebihan tapi ini pertama kali sy pakai website sama hosting yang berbayar dan belum sebulan, jadi rada takut klo uang melayang dngn cepatnya)
ini codenya tuan:
.../ranslation-install.php on line 65
PHP:
...
    $res = apply_filters( 'translations_api', false, $type, $args );

    if ( false === $res ) {
        $url = $http_url = 'http://api.wordpress.org/translations/' . $type . '/1.0/';
        if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) {
            $url = set_url_scheme( $url, 'https' );
        }

        $options = array(
            'timeout' => 3,
            'body' => array(
                'wp_version' => $wp_version,
                'locale'     => get_locale(),
                'version'    => $args['version'], // Version of plugin, theme or core
            ),
        );

        if ( 'core' !== $type ) {
            $options['body']['slug'] = $args['slug']; // Plugin or theme slug
        }

        $request = wp_remote_post( $url, $options );

        if ( $ssl && is_wp_error( $request ) ) {
            trigger_error(
                sprintf(
                    /* translators: %s: support forums URL */
                    __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
                    __( 'https://wordpress.org/support/' )
                ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ),
                headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE <---------- INI OM
            );

.../plugin-install.php on line 168
PHP:
...
<?php
 * Fires after the plugins list table in each tab of the Install Plugins screen.
 *
 * The dynamic portion of the action hook, `$tab`, allows for targeting
 * individual tabs, for instance 'install_plugins_plugin-information'.
 *
 * @since 2.7.0
 *
 * @param int $paged The current page number of the plugins list table.
 */
do_action( "install_plugins_{$tab}", $paged ); ?>

    <span class="spinner"></span>
</div>

<?php
wp_print_request_filesystem_credentials_modal();
wp_print_admin_notice_templates();

/**
 * WordPress Administration Template Footer.<------------- INI YANG BERMASALAH
 */
include(ABSPATH . 'wp-admin/admin-footer.php');
THANKS FOR YOU SUPPORT
 

CloudFastest

Apprentice 1.0
Mungkin sebelumnya plugin/themes yg dipakai tidak compatible sama versi wp yg om pakai.. Coba aktivkan themes wp bawaan twentyseventeen
 

marinanya

Beginner 2.0
Ini masalah konektifitas dari server hosting anda ke server WordPress atau server di hosting ada masalah dan tidak dapat loading extensi Curl. Bisa juga file yang dibutuhkan oleh Curl tidak ada/hilang.

Solusinya tambahkan script berikut di file cURL.php di direktori wp-includes/Requests/Transport/. Carinya pake File Manager aja.

Code:
curl_setopt($this->handle, CURLOPT_RESOLVE, array("api.wordpress.org:80:66.155.40.187", "api.wordpress.org:443:66.155.40.187"));

BTW, nama plugin security apa? Pluginnya ngeblok outcoming port tertentu kah?
saya coba dulu ya om, pluginnya klo ndk salah wordfence, Anti-Malware Security and Brute-Force Firewall, sama All In One WP Security & Firewall. haha memang kebangetan saya om, baru dapat mainan baru jadi gini. :43:
 

marinanya

Beginner 2.0
Ini masalah konektifitas dari server hosting anda ke server WordPress atau server di hosting ada masalah dan tidak dapat loading extensi Curl. Bisa juga file yang dibutuhkan oleh Curl tidak ada/hilang.

Solusinya tambahkan script berikut di file cURL.php di direktori wp-includes/Requests/Transport/. Carinya pake File Manager aja.

Code:
curl_setopt($this->handle, CURLOPT_RESOLVE, array("api.wordpress.org:80:66.155.40.187", "api.wordpress.org:443:66.155.40.187"));

BTW, nama plugin security apa? Pluginnya ngeblok outcoming port tertentu kah?
dibagian mana om simpannya ? banyak sekali code jadi bingung sama takut ngerusak scriptnya
PHP:
<?php
/**
 * cURL HTTP transport
 *
 * @package Requests
 * @subpackage Transport
 */

/**
 * cURL HTTP transport
 *
 * @package Requests
 * @subpackage Transport
 */
class Requests_Transport_cURL implements Requests_Transport {
    const CURL_7_10_5 = 0x070A05;
    const CURL_7_16_2 = 0x071002;

    /**
     * Raw HTTP data
     *
     * @var string
     */
    public $headers = '';

    /**
     * Raw body data
     *
     * @var string
     */
    public $response_data = '';

    /**
     * Information on the current request
     *
     * @var array cURL information array, see {@see https://secure.php.net/curl_getinfo}
     */
    public $info;

    /**
     * Version string
     *
     * @var long
     */
    public $version;

    /**
     * cURL handle
     *
     * @var resource
     */
    protected $handle;

    /**
     * Hook dispatcher instance
     *
     * @var Requests_Hooks
     */
    protected $hooks;

    /**
     * Have we finished the headers yet?
     *
     * @var boolean
     */
    protected $done_headers = false;

    /**
     * If streaming to a file, keep the file pointer
     *
     * @var resource
     */
    protected $stream_handle;

    /**
     * How many bytes are in the response body?
     *
     * @var int
     */
    protected $response_bytes;

    /**
     * What's the maximum number of bytes we should keep?
     *
     * @var int|bool Byte count, or false if no limit.
     */
    protected $response_byte_limit;

    /**
     * Constructor
     */
    public function __construct() {
        $curl = curl_version();
        $this->version = $curl['version_number'];
        $this->handle = curl_init();

        curl_setopt($this->handle, CURLOPT_HEADER, false);
        curl_setopt($this->handle, CURLOPT_RETURNTRANSFER, 1);
        if ($this->version >= self::CURL_7_10_5) {
            curl_setopt($this->handle, CURLOPT_ENCODING, '');
        }
        if (defined('CURLOPT_PROTOCOLS')) {
            curl_setopt($this->handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
        }
        if (defined('CURLOPT_REDIR_PROTOCOLS')) {
            curl_setopt($this->handle, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
        }
    }
.........
 

marinanya

Beginner 2.0
Di bagian paling bawah sekali.
disini om?
PHP:
    }

    /**
     * Whether this transport is valid
     *
     * @codeCoverageIgnore
     * @return boolean True if the transport is valid, false otherwise.
     */
    public static function test($capabilities = array()) {
        if (!function_exists('curl_init') || !function_exists('curl_exec')) {
            return false;
        }

        // If needed, check that our installed curl version supports SSL
        if (isset($capabilities['ssl']) && $capabilities['ssl']) {
            $curl_version = curl_version();
            if (!(CURL_VERSION_SSL & $curl_version['features'])) {
                return false;
            }
        }

        return true;
    }
} [ DISINI KAH?]
 

marinanya

Beginner 2.0
Di bagian paling bawah sekali.
disini om?
PHP:
    }

    /**
     * Whether this transport is valid
     *
     * @codeCoverageIgnore
     * @return boolean True if the transport is valid, false otherwise.
     */
    public static function test($capabilities = array()) {
        if (!function_exists('curl_init') || !function_exists('curl_exec')) {
            return false;
        }

        // If needed, check that our installed curl version supports SSL
        if (isset($capabilities['ssl']) && $capabilities['ssl']) {
            $curl_version = curl_version();
            if (!(CURL_VERSION_SSL & $curl_version['features'])) {
                return false;
            }
        }

        return true;
    }
} [ DISINI KAH?]
 
Status
Not open for further replies.

Top