How to properly create table in plugin

I see two problems- $this->table_name = $wpdb->prefix . “b99_pf”; $sql = “CREATE TABLE ” . $table_name . ” ( $table_name will be undefined, should be $this->table_name and in your query: cat tinytext default NOT NULL I don’t think it’ll like that default in there. EDIT – to answer your debug question- xdebug, xdebug and netbeans

can’t access some WordPress function from my plugin

First, since the if (!function_exists(‘check_admin_referer’)) echo “<h1>check_admin_referer not found</h1>”; code is working, then you’ve eliminated the issue being proper including of your Plugin sub-file. Second, all four of those functions are core WordPress functions, so you should never get a call to undefined function error for any of them. Can you post your relevant Plugin … Read more

I cannot include a file in my plugin settings page

Most likely the file cannot be found, I’m assuming the file you’re trying to include is located in your theme folder, in that case you should use: require_once( TEMPLATEPATH . ‘/file.php’); TEMPLATEPATH will return something like this: /home/user/httdocs/wp-content/themes/twentyeleven. Worst case scenario you’ll find a Fatal Error, but that’ll help to find the problem.