Jump to content

Topic on Extension talk:GoogleAnalyticsMetrics/Flow

Problems in istallation

7
Summary by X-Savitar

per @Tosfos's last comment!

Kghbln (talkcontribs)

While trying to install the extension on our machine (Ubuntu 16, MW 1.29) both with branch 1.29 and master. Looks like it does not find the Api client Library (Composer installed inside extensions' directory). This is the exception when using the master:

Error from line 203 of /path/to/wiki/w/extensions/GoogleAnalyticsMetrics/GoogleAnalyticsMetrics.hooks.php: Class 'Google_Service_Analytics' not found

Note that this is talk by @Wess: originally posted to the extension's page.

Wess (talkcontribs)

Thanks

Tosfos (talkcontribs)

@Wess The best way to include the dependencies is to modify (or create) a composer.local.json file in the wiki root. Then run composer update --no-dev from the wiki root. Your composer.local.json file should look something like this:

{
   "extra": {
       "merge-plugin": {
           "include": [
               "extensions/GoogleAnalyticsMetrics/composer.json"
           ]
       }
   }
}

You can also try something like this. Please confirm if this works for you. Please use the master branch.

Anysite (talkcontribs)
Tosfos (talkcontribs)

You are correct. The documentation is now out of date. We will update it shortly. Thanks!

X-Savitar (talkcontribs)

@Tosfos, do the docs still need updates?

Tosfos (talkcontribs)

This is resolved.