White screen of death only in wp-admin

As a rule of thumb, always remove the ending ?> of your .php files, especially if it’s a functions or config file that gets parsed before headers are sent to the page. If after that ?> you accidentally add a space, a tab character or a new line, there’s your invisible error.

The famous WordPress white screen of death

To get WordPress to display errors, edit the wp-config.php file to say define( ‘WP_DEBUG’, true ); By default, this is set to false and should be towards the bottom of the file. That will allow you to see which errors are being produced. Also, whitespace at the end of files almost never causes the WSOD; … Read more

WordPress database error with latest WP – “WP_termmeta doesn’t exist”

You are missing a table. You can add it using this sql CREATE TABLE `wp_termmeta` ( `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `term_id` bigint(20) unsigned NOT NULL DEFAULT ‘0’, `meta_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `meta_value` longtext COLLATE utf8mb4_unicode_ci, PRIMARY KEY (`meta_id`), KEY `term_id` (`term_id`), KEY `meta_key` (`meta_key`(191)) ) ENGINE=InnoDB AUTO_INCREMENT=3255 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067

You have found a bug in Genesis. Your Xdebug stack trace fingers the culprit as the genesis_save_custom_fields() function which calls current_user_can() with a singular capability (edit_post and edit_page) which also requires an additional argument, in this case the post ID which is missing. current_user_can() calls has_cap() which calls map_meta_cap() which does a switch statement on … Read more

Activate a plugin through PHPMyAdmin or FTP?

I fixed this by going through PHPMyAdmin to the table “Options” and then the row active_plugins. I had the following stored there (formatted for readability): a:10:{ i:0;s:49:”1and1-wordpress-wizard/1and1-wordpress-wizard.php”; i:1;s:29:”acf-repeater/acf-repeater.php”; i:2;s:30:”advanced-custom-fields/acf.php”; i:3;s:45:”limit-login-attempts/limit-login-attempts.php”; i:4;s:27:”redirection/redirection.php”; i:6;s:33:”w3-total-cache/w3-total-cache.php”; i:7;s:41:”wordpress-importer/wordpress-importer.php”; i:8;s:24:”wordpress-seo/wp-seo.php”; i:9;s:34:”wpml-string-translation/plugin.php”; i:10;s:38:”wpml-translation-management/plugin.php”; } I added a new line (for the missing plugin) and incremented the a:10 to a:11 to indicate that … Read more

How to fix empty dashboard issue in WordPress?

There is a bug in WordPress 3.3.1 causing the issue. It may affect other versions as well. To solve the issue you can update WordPress to the current stable release and do integration testing afterwards. Or you can do a quick bug fix. To fix the bug: Open file blog/wp-admin/includes/screen.php in your favorite text editor. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)