How to Fix: WordPress database error Duplicate entry ‘0’ for key ‘PRIMARY’ for query INSERT INTO `wp_usermeta`

Recently, when I was playing with the multisite feature of WordPress I came across this error WordPress database error Duplicate entry ‘0’ for key ‘PRIMARY’ for query INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES (1, ‘primary_blog’, ‘1’) made by require_once(‘wp-admin/network/admin.php’), require_once(‘wp-admin/admin.php’), do_action(‘admin_init’), WP_Hook->do_action, WP_Hook->apply_filters, _wp_admin_bar_init, WP_Admin_Bar->initialize, get_active_blog_for_user, update_user_meta, update_metadata, add_metadata I understand that there is […]

Learn More »

Creating separate database table for Multisite WordPress

Recently, I have been struggling to get this right. Creating a separate database tables for Multisite. Multisite has option for “Network Activate”. When enabling the plugin, it should create a separate database table for each of the site. At the same time we also need to consider that it should be deleted when we “uninstall” […]

Learn More »

WordPress 4.6 “Pepper”

Version 4.6 of WordPress, named “Pepper” in honor of jazz baritone saxophonist Park Frederick “Pepper” Adams III, is available for download or update in your WordPress dashboard. New features in 4.6 help you to focus on the important things while feeling more at home.   Streamlined Updates Don’t lose your place: stay on the same […]

Learn More »

Why You Should Use WordPress?

Why You Should Use WordPress? Often beginners ask us: Why should I use WordPress? Isn’t my old site good enough? Why do I need to switch to WordPress? If you’re asking these questions, then you’re at the right place. In this article, we have compiled a few reasons why you should use WordPress, in what […]

Learn More »

WordPress 4.5.2 Security Release

WordPress 4.5.2 is now available. This is a security release for all previous versions and we strongly encourage you to update your sites immediately. WordPress versions 4.5.1 and earlier are affected by a SOME vulnerability through Plupload, the third-party library WordPress uses for uploading files. WordPress versions 4.2 through 4.5.1 are vulnerable to reflected XSS […]

Learn More »