500 Error only one one page in the WP admin

It means you have a PHP syntax error. You need to consult the logs or turn on debug mode. In wp-config.php in your root wordpress directory, find the line as follows: define( ‘WP_DEBUG’, false ); and change it to: define( ‘WP_DEBUG’, true ); Refresh your page that appears blank to find the error. If it … Read more

How to customize the critical error message?

You can use the wp_php_error_message filter to customise this message: add_filter( ‘wp_php_error_message’, function( $message, $error ) { return ‘My custom message.’; }, 10, 2 ); I haven’t tested to be sure, but I would assume that if the critical error that causes this message happens to be in the code of same theme or plugin … Read more

Memory issues – Fatal error: out of memory – plugins?

To diagnose a load-intensive (either CPU cycles or memory) Plugin, start by deactivating all Plugins. Ensure that, with no Plugins active, you do not observe the same issues. If you observe the same issues with all Plugins deactivated, then the problem is somewhere else, either with your Theme, your database, or your server configuration. If … Read more

WordPress White Page with Certain Database

When transferring wordpress site from one server to another First step is to udate wp-content foder on old site with new site’s wp-content Then, database ( drop old database, import new database ) finally update wordpress database table with following step. Login to your phpmyadmin dashboard, choose your database to update and click on sql … Read more

current_user_can on WordPress 3.1.1

You are calling the function too early. The functions.php is included before current_user_can() is defined. Never do anything before the hook ‘after_setup_theme’: Example for the functions.php add_action( ‘after_setup_theme’, array( ‘WPSE_14041_Base’, ‘setup’ ) ); class WPSE_14041_Base { public static function setup() { ! isset ( $GLOBALS[‘content_width’] ) and $GLOBALS[‘content_width’] = 480; add_theme_support( ‘post-thumbnails’, array( ‘post’, ‘page’ … Read more

Blank/White Screen on Frontend but Accessible backend?

In my case, nothing about debugging and disabling themes/plugins was useful… After some research, I’ve realized that my index.php was empty! The only content was a message saying Silence is golden. Using a backup I had, I could get back my original index.php and get the site working again.

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