• Plugin Version 5.5

    Whenever trying to access the dashboard I get an Error 500 (Internal Server Error) with the following added to the error log:

    [Thu Jun 02 10:54:53.346733 2016] [fcgid:warn] [pid 11304] [client **.**.**.**:49307] mod_fcgid: stderr: PHP Fatal error:  Class 'Yoast_Google_WPCache' not found in /home/linweb43/e/mydomain.co.uk-1087951545/user/htdocs/wp-content/plugins/google-analytics-for-wordpress/vendor/yoast/api-libs/google/Google_Client.php on line 90, referer: http://www.mydomain.co.uk/wp-admin/plugins.php?plugin_status=all&paged=1&s

    Line 87 – 93 in the Google_Client.php file is as follows:

    public function __construct($config = array()) {
        global $apiConfig;
        $apiConfig = array_merge($apiConfig, $config);
        self::$cache = new $apiConfig['cacheClass']();
        self::$auth = new $apiConfig['authClass']();
        self::$io = new $apiConfig['ioClass']();
      }

    Line 90 being self::$cache = new $apiConfig[‘cacheClass’]();

    Any help? I guess it’s something to do with our server, but I’m not sure what

    https://wordpress.org/plugins/google-analytics-for-wordpress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author chriscct7

    (@chriscct7)

    I’d recommend removing and installing a new copy. It’s possible you’re missing the file that holds Yoast_Google_WPCache class.

    -Chris

    `diff –git a/wp-content/plugins/wordpress-seo-premium/vendor/yoast/api-libs/google/Google_Client.php b/wp-content/plugins/wordpress-seo-premium/vendor/yoast/api-libs/google/Google_Client.php
    index 95adba8..5b650fd 100644
    — a/wp-content/plugins/wordpress-seo-premium/vendor/yoast/api-libs/google/Google_Client.php
    +++ b/wp-content/plugins/wordpress-seo-premium/vendor/yoast/api-libs/google/Google_Client.php
    @@ -87,7 +87,7 @@ class Yoast_Google_Client {
    public function __construct($config = array()) {
    global $apiConfig;
    $apiConfig = array_merge($apiConfig, $config);
    – self::$cache = new $apiConfig[‘cacheClass’]();
    + // self::$cache = new $apiConfig[‘cacheClass’]();
    self::$auth = new $apiConfig[‘authClass’]();
    self::$io = new $apiConfig[‘ioClass’]();
    }

    a fix

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error 500’ is closed to new replies.