Category: wordpress

WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM `wp_options` WHERE `option_name` = ‘element_pack_license_key’

Problem: I have this error in my wordpress debug.log WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = ‘element_pack_license_key’ made by require_once(‘wp-load.php’),...

Add New Role in WordPress Programmatically

Wanted: I want to make two role: student with only read capability teacher with read, delete_posts, edit_posts, publish_posts and upload_files capability Question: How to make that two role with php code inside plugin  …...

Database Update Required dalam WordPress

Contoh Kasus: Saya membuka website saya dan ternyata tampil peringatan “Database Update Required” seperti terlihat pada gambar dibawah ini: Pertanyaan: Bagaimana cara memperbaikinya … ? Jawaban: Bukalah file wp-includes/version.php dan cari kode berikut ini:...