WordPress.org

Support

Support » Plugins and Hacks » Hacks » You do not have sufficient permissions to access this page

You do not have sufficient permissions to access this page

  • Hello,

    I see there are such questions with this error, but I cannot find the answer which fits me, I think it would be faster if you would check the code:

    <?php
        /*
        Plugin Name: Table prefix renamer
        Description: Plugin, which renames database table prefixes
    	Plugin URI: http://www.orangecreative.net
        Author: Darius
        Version: 1.0
    	Author URI: http://www.orangecreative.net
        */  
    
    function tabren_admin() {
    	die('test');
    	//include('tabren_import_admin.php');
    	echo 'test';
    }
    
    function tab_pre_renamer_admin_actions() {
        add_options_page("Table prefix renamer ", "Table prefix renamer", 1, "Table prefix renamer", "tabren_admin");
    	//die('te4st');
    }  
    
    add_action('admin_menu', 'tab_pre_renamer_admin_actions');
    
    ?>

    Here is the plugin file. The menu in the admin section renders well, but when I click on that menu item, I don’t even get message ‘test’. I get: ‘You do not have sufficient permissions to access this page.’

    Could hyou tell what is wrong?

    I am using win7 and xampp. Can this be something with file permissions? I think on localhost on windows, file permissions always are ok, at least I don’t remember that I need to change them for other projects.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘You do not have sufficient permissions to access this page’ is closed to new replies.
Skip to toolbar