
Untuk anda pengguna wordpress self-hosted kadang kala di hadapkan error ketika login ke wp-admin , silahkan cek gambar di atas ya. Hal tersebut biasanya terjadi ketika anda memindahkan wordpress dari provider yang sebelumnya ke provider hosting yang baru .
“ERROR: Cookies are blocked on login”
Error ini muncul karena wordpress anda menyimpan cache yang tidak dapat purge/flush secara otomatis secara default dari wordpress itu sendiri. Bisa juga di sebabkan ketika anda memindahkan web/blog wordpress anda, anda lupa flush cache dari plugin cache yang anda gunakan , semisal : w3 total cache, wp super cache , dsb .
Anda tidak perlu kuatir akan hal ini, kita cukup mengubah saja settingan dari file wp-config.php , silahkan anda login ke panel hosting anda dan cari file ini kemudian edit .
Umumnya wp-config.php memiliki kode sbb :
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
nah anda cek kode : <?php letakan kode sbb di bawahnya :
define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );
/* Recommended Setting from Blog.JaapNS.Com. */
sehingga menjadi seperti :
<?php
define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );
/* Recommended Setting from Blog.JaapNS.Com. */
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
=======================
Setelah itu tutup browser anda, dan buka kembali silahkan akses login wp-admin anda, selamat mencoba ya jangan lupa komen atau bagikan url blog ini ke teman-teman anda.
Leave a Reply
You must be logged in to post a comment.