You do not have sufficient permissions to enter this page

Fixing: You do not have sufficient permissions

This script will update permissions, clear cache and perform login actions:

function txfx_log($text) {
	echo $text . '
';
}

switch ($_GET['step']) :
	case "1":
		require('wp-config.php');
		txfx_log('WordPress loaded...');
		require('wp-admin/upgrade-functions.php');
		txfx_log('Upgrade functions loaded...');
		wp_cache_flush();
		txfx_log('Object cache flushed...');
		make_db_current();
		txfx_log('Database made current...');
		upgrade_160();
		txfx_log('Data upgraded...');
		$wp_rewrite->flush_rules();
		txfx_log('Rewrite rules flushed...');
		wp_cache_flush();
		txfx_log('Object cache flushed...');
		txfx_log('
');
		txfx_log('Hopefully that did it!  DELETE THIS FILE FROM YOUR SERVER NOW!');
		txfx_log('And then, try to access your /wp-admin/');
		break;
	default :
		txfx_log('This script will attempt to upgrade your database.  It is intended for users of WordPress 1.5 or later.');
		txfx_log('You should delete this script from your server after you are done using it!');
		txfx_log('Click here to attempt the upgrade');
		break;
endswitch;

5/5 - (3 votes)

Leave a Comment

Scroll to Top