PHP Fatal error: Uncaught Error: Call to undefined function get_plugin_data()
-
Testing PHPH 8.1 and we have OMGF Pro. We now see this error
[24-Mar-2022 06:32:26 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_plugin_data() in /home/wp_fjg2if/sitecom.stage.site/wp-content/plugins/host-google-fonts-pro/includes/class-omgf-pro.php:258Stack trace: #0 /home/wp_fjg2if/sitecom.stage.site/wp-includes/class-wp-hook.php(307): OmgfPro->check_dependencies('') #1 /home/wp_fjg2if/sitecom.stage.site/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #2 /home/wp_fjg2if/sitecom.stage.site/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #3 /home/wp_fjg2if/sitecom.stage.site/wp-settings.php(587): do_action('init') #4 /home/wp_fjg2if/sitecom.stage.site/wp-config.php(92): require_once('/home/wp_fjg2if...') #5 /home/wp_fjg2if/sitecom.stage.site/wp-load.php(50): require_once('/home/wp_fjg2if...') #6 /home/wp_fjg2if/sitecom.stage.site/wp-admin/admin.php(34): require_once('/home/wp_fjg2if...') #7 /home/wp_fjg2if/sitecom.stage.site/wp-admin/index.php(10): require_once('/home/wp_fjg2if...') #8 {main} thrown in /home/wp_fjg2if/sitecom.stage.site/wp-content/plugins/host-google-fonts-pro/includes/class-omgf-pro.php on line 258License manager directory ffwp-license-manager / plugin is there.. so not sure why
$inactive_plugin = array_search(false, $required_plugins); if ($inactive_plugin) { $plugin_name = get_plugin_data(OMGF_PRO_PLUGIN_FILE)['Name']; // Clear all previously set notices. delete_transient(OmgfPro_Admin_Notice::OMGF_PRO_ADMIN_NOTICE_TRANSIENT); OmgfPro_Admin_Notice::set_pro_notice(sprintf(__('<strong>%s</strong> needs to be installed and active for %s to function properly. Please make sure it\'s installed and activated, before activating %s.', $this->plugin_text_domain), $inactive_plugin, $plugin_name, $inactive_plugin), 'error', 'omgf_pro_license_manager_not_active'); deactivate_plugins(OMGF_PRO_PLUGIN_BASENAME); $this->init = false; return; }is causing issues
Not sure why it would be undefined all of the sudden here and if this could be related to PHP 8.1 but would love some feedback.
The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function get_plugin_data()’ is closed to new replies.