MWI – Pertama menggunakan WordPress 5.6 ternyata saya menemukan error yang berbunyi Publishing failed. Error message: The response is not a valid JSON response. Kejadian tersebut muncul ketika membuat artikel baik post maupun page, dan klik publish. Hal tersebut terjadi karena ada informasi yang berbeda yang otomatis tersimpan di file .htaccess.
Contoh ketika install wordpress yang diambil dari video berikut ini
Ternyata salah folder dan diedit foldernya, maka artikel yang dibuat tidak dapat di publish. Solusinya edit file .htaccess dan ubah baris ke-9 dan 13, sesuaikan dengan folder yang digunakan
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /wp24/wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp24/wordpress/index.php [L]
</IfModule>
# END WordPress
sesuaikan menjadi
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /wp24/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp24/index.php [L]
</IfModule>
# END WordPress
kalau tidak ada folder, misal langsung menggunakan domain seperti muhidin.web.id maka cukup ganti dengan / di baris 9 dan 13 menjadi
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Semoga bermanfaat and stay healthy. (ms)
Link:
Youtube MS