I'm receiving this error: [27-Jun-2012 18:22:39 UTC] PHP Fatal error: Call to undefined function plugin_basename() in /XXXX/public_html/wp-content/plugins/price-update/price-update.php on line 68:
//We set the plugin basename here, could manually set it, but this is for demonstration purposes
$this->plugin_basename = plugin_basename(__FILE__);
in this block of code:
class PriceUpdate extends mtekk_admin
{
protected $version = '0.0.1';
protected $full_name = 'Price Update';
protected $short_name = 'Price Update';
protected $access_level = 'manage_options';
protected $identifier = 'pr_upate';
protected $unique_prefix = 'prud';
protected $plugin_basename = 'price-update/price-update.php';
protected $opt = array();
/**
* __construct()
*
* Class default constructor
*/
function __construct()
{
//We set the plugin basename here, could manually set it, but this is for demonstration purposes
$this->plugin_basename = plugin_basename(__FILE__);
register_deactivation_hook(__FILE__, array($this, 'deactivate'));
add_action($this->unique_prefix . '_cron_hook', array($this,'cron_handle'));
//Register some of our custom taxonomies
add_action('init', array($this, 'wp_init'), 0);
add_action('wp_footer', array($this, 'footer'));
//We're going to make sure we load the parent's constructor
parent::__construct();
}
However, its defined above:
protected $plugin_basename = 'price-update/price-update.php';
any ideas?