Fatal error: Class “Google_ServiceResource” not found
-
We recently upgraded to PHP 8.1 and are discovering some bugs in code that was just fine under 7.4. One that surfaced today when I tried to customize the appearance of the theme. It originated from the Analyticator plugin (version 6.5.7). Here’s the stack trace:
[27-Feb-2023 15:28:16 UTC] PHP Fatal error: Uncaught Error: Class "Google_ServiceResource" not found in /dom25963/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php:25 Stack trace: #0 /dom25963/wp-content/plugins/google-analyticator/class.analytics.stats.php(34): require_once() #1 /dom25963/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php(100): GoogleAnalyticsStats->__construct() #2 /wordpress-versions/6.1.1/wp-includes/class-wp-widget.php(535): GoogleStatsWidget->form(Array) #3 /wordpress-versions/6.1.1/wp-admin/includes/widgets.php(274): WP_Widget->form_callback(Array) #4 /wordpress-versions/6.1.1/wp-includes/class-wp-customize-widgets.php(1128): wp_widget_control(Array, Array) #5 /wordpress-versions/6.1.1/wp-includes/class-wp-customize-widgets.php(1076): WP_Customize_Widgets->get_widget_control(Array) #6 /wordpress-versions/6.1.1/wp-includes/class-wp-customize-widgets.php(714): WP_Customize_Widgets->get_available_widgets() #7 /wordpress-versions/6.1.1/wp-includes/class-wp-hook.php(308): WP_Customize_Widgets->enqueue_scripts('') #8 /wordpress-versions/6.1.1/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #9 /wordpress-versions/6.1.1/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /wordpress-versions/6.1.1/wp-admin/customize.php(123): do_action('customize_contr...')
- The topic ‘Fatal error: Class “Google_ServiceResource” not found’ is closed to new replies.