Can't to read the plugin header for '%s'. The file does not exist.", $this->updateChecker->pluginFile ), E_USER_WARNING ); return array(); } if ( !function_exists('get_plugin_data') ) { require_once(ABSPATH . '/wp-admin/includes/plugin.php'); } return get_plugin_data($this->pluginAbsolutePath, false, false); } public function removeHooks() { remove_filter('upgrader_post_install', array($this, 'clearCachedVersion')); remove_action('delete_site_transient_update_plugins', array($this, 'clearCachedVersion')); } /** * Check if the plugin file is inside the mu-plugins directory. * * @return bool */ public function isMuPlugin() { static $cachedResult = null; if ( $cachedResult === null ) { if ( !defined('WPMU_PLUGIN_DIR') || !is_string(WPMU_PLUGIN_DIR) ) { $cachedResult = false; return $cachedResult; } //Convert both paths to the canonical form before comparison. $muPluginDir = realpath(WPMU_PLUGIN_DIR); $pluginPath = realpath($this->pluginAbsolutePath); //If realpath() fails, just normalize the syntax instead. if (($muPluginDir === false) || ($pluginPath === false)) { $muPluginDir = PucFactory::normalizePath(WPMU_PLUGIN_DIR); $pluginPath = PucFactory::normalizePath($this->pluginAbsolutePath); } $cachedResult = (strpos($pluginPath, $muPluginDir) === 0); } return $cachedResult; } } endif;
Fatal error: Uncaught Error: Class "YahnisElsts\PluginUpdateChecker\v5p1\Plugin\Package" not found in /htdocs/wp-content/plugins/admin-menu-editor-pro/plugin-updates/Puc/v5p1/Plugin/UpdateChecker.php:414 Stack trace: #0 /htdocs/wp-content/plugins/admin-menu-editor-pro/plugin-updates/Puc/v5p1/UpdateChecker.php(94): YahnisElsts\PluginUpdateChecker\v5p1\Plugin\UpdateChecker->createInstalledPackage() #1 /htdocs/wp-content/plugins/admin-menu-editor-pro/plugin-updates/Puc/v5p1/Plugin/UpdateChecker.php(66): YahnisElsts\PluginUpdateChecker\v5p1\UpdateChecker->__construct('https://adminme...', 'admin-menu-edit...', 'admin-menu-edit...', 12, 'ame_pro_externa...') #2 /htdocs/wp-content/plugins/admin-menu-editor-pro/plugin-updates/Puc/v5p1/PucFactory.php(122): YahnisElsts\PluginUpdateChecker\v5p1\Plugin\UpdateChecker->__construct('https://adminme...', '/htdocs/wp-cont...', 'admin-menu-edit...', 12, 'ame_pro_externa...', 'admin-menu-edit...') #3 /htdocs/wp-content/plugins/admin-menu-editor-pro/extras.php(2452): YahnisElsts\PluginUpdateChecker\v5p1\PucFactory::buildUpdateChecker('https://adminme...', '/htdocs/wp-cont...', 'admin-menu-edit...', 12, 'ame_pro_externa...', 'admin-menu-edit...') #4 /htdocs/wp-content/plugins/admin-menu-editor-pro/menu-editor.php(25): include('/htdocs/wp-cont...') #5 /htdocs/wp-settings.php(462): include_once('/htdocs/wp-cont...') #6 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #7 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #8 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #9 /htdocs/index.php(17): require('/htdocs/wp-blog...') #10 {main} thrown in /htdocs/wp-content/plugins/admin-menu-editor-pro/plugin-updates/Puc/v5p1/Plugin/UpdateChecker.php on line 414