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-&gt;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-&gt;plugin_basename = plugin_basename(__FILE__);
                register_deactivation_hook(__FILE__, array($this, 'deactivate'));
                add_action($this-&gt;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?


Question: How should I rewire a miswired 3-way switch?
Answer: Yes. You will need some basic testing equipment; a multimeter should do. There will be a live wire coming in one box, and two traveller wires also in that box (usually a black/white pair.) The traveler pair will go to the other box. 

Use your multimeter to figure out what is live whe nothing else is. This is the hot 'in' wire. The next two wires are the traveler. The third wire in the other box at the far end of the traveler is the wire that goes to the Fixture. It sounds like the traveler on the far side of the box might have gotten swapped with one of the wires to the fixture. Just take it apart, figure out which wire is supposed to be which, and put it back together right.