Home Blogging Cara Mengatasi The Uploaded File Exceeds the upload_max_filesize WP

Cara Mengatasi The Uploaded File Exceeds the upload_max_filesize WP

130

error upload file exceed limit wpSAAT upload gambar, tema, atau import file xml ketika memindahkan konten blog Blogger ke WordPress, biasanya muncul error “The Uploaded File Exceeds the upload_max_filesize…”

File maksimal 1MB, tapi ukuran file yang diupload lebih besar, sehingga terjadi error.

Berikut in cara mengatasi “The uploaded file exceeds the upload_max_filesize directive in php.ini”.

Cara Mengatasi Error The Uploaded File Exceeds

Cara 1: Edit file .htaccess

Cara cepat mengatasi error “the uploaded file exceeds the upload_max_filesize directive in php.ini” adalah dengan menaikkan batasan PHP resource limits menggunakan file .htaccess.

Akses the root directory WordPress menggunakan file manager atau FTP client. Buka dan edit file .htaccess

Tambahkan kode berikut ini di bagian bawah isi file .htaccess :

php_value upload_max_filesize 256M

Save!

Mestinya masalah sudah teratasi. Namun, jika masih error, tingkatkan lagi limit PHP dengan kode ini di file .htaccess:

php_value post_max_size 256M
php_value memory_limit 512M
php_value max_input_time 180
php_value max_execution_time 180

Save! Error WordPress soal melebihi batas maksimal harusnya sudah tidak ada.

Cara 2: Edit file twp-config.php 

Cara lain mengatasi error “the uploaded file exceeds the upload_max_filesize directive in php.ini” adalah dengan mengedit file wp-config.php.

Lokasinya di direktori utama WordPress. Buka dan wp-config.php dan tambahkan kode berikut ini sebelum kalimat yang ada kata-kata “Happy blogging”:

@ini_set(‘upload_max_size’ , ‘256M’ );

Save!

Cara 3: Buat Support Ticket!

Ini cara terakhir mengatasi error “the uploaded file exceeds the upload_max_filesize directive in php.ini” din WordPress.

Semoga dukungan teknis provider domain hosting Anda cepat tanggap (fast respons). Jika lambat, lama banget, pindah saja hostingnya ke Niagahoster.

Pengalaman admin, di sini layananannya OK banget, gak pake lama dan gak paka ribet! (Bloger Bandung).*

BONUS TIPS

Mengatasi Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ (this will throw an Error in a future version of PHP) in …

Line 73 had the following string in it:

$_SERVER[REQUEST_URI]

Just add tanda petik satu (‘) dua dua (“) sehingga menjadi:

$_SERVER[“REQUEST_URI”]

That got rid of the error message, so I’m good.

Sumber

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here