Fatal Error Call To Undefined Function Plugin_basename In
Contents |
tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
Plugin_dir_path()
of this site About Us Learn more about Stack Overflow the company Business load_plugin_textdomain Learn more about hiring developers or posting ads with us WordPress Development Questions Tags Users Badges Unanswered Ask Question dirname _ WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can
__file__
ask a question Anybody can answer The best answers are voted up and rise to the top PHP Fatal error: Call to undefined function plugin_basename up vote 1 down vote favorite 1 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? plugins functions share|improve this question asked Jun 27 '12 at 18:37 whatsthebigidea 1314 1 The plugin_basename function does exist, and it is in wp-includes/plugin.php, and has been around since version 1.5 or so. If you're getting an undefined error, then you have a broken or incomplete copy of WordPress somehow, or you're calling your plugin incorrectly in some ma
tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us WordPress Development Questions Tags Users Badges Unanswered Ask Question _ WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute: Sign http://wordpress.stackexchange.com/questions/56730/php-fatal-error-call-to-undefined-function-plugin-basename up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Fatal error: Call to undefined function wp_cache_get() in /home/thes7314/public_html/wp-includes/option.php on line 1117 [closed] up vote 2 down vote favorite I updated a cache plugin and later the error below appeared: Fatal error: Call to undefined function http://wordpress.stackexchange.com/questions/240571/fatal-error-call-to-undefined-function-wp-cache-get-in-home-thes7314-public wp_cache_get() in /home/thes7314/public_html/wp-includes/option.php on line 1117 Any help? plugins wp-admin cache share|improve this question asked Sep 26 at 12:39 J. Okwy 162 closed as off-topic by TheDeadMedic, cjbj, toscho♦ Sep 27 at 11:31 This question appears to be off-topic. The users who voted to close gave this specific reason:"Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?" – TheDeadMedic, cjbj, toschoIf this question can be reworded to fit the rules in the help center, please edit the question. What's the cache plugin? Also check it's compatibility with your wordpress version. Try upgrading wordpress to the latest version. But please have a proper backup first. –Chittaranjan Sep 26 at 13:17 Updated "W3 Total Cache Plugin". I'm using latest version of Wordpress already. –J. Okwy Sep 26 at 15:20 If you disable the plug-in (rename its folder over FTP), does the issue go away? –inspirednz Sep 26 at 17:33