Problem using ./console generate:theme

Was trying to create a new theme, but I’m getting this error:

Matomo encountered an error: Class 'Piwik\Plugins\ExamplePlugin\ExamplePlugin' not found (which lead to: Error: array (
  'type' => 1,
  'message' => 'Class \'Piwik\\Plugins\\ExamplePlugin\\ExamplePlugin\' not found',
  'file' => '/var/www/vhosts/webpage/matomodomian/plugins/CoreConsole/Commands/GeneratePlugin.php',
  'line' => 45,
  'backtrace' => ' on /var/www/vhosts/webpage/matomodomian/plugins/CoreConsole/Commands/GeneratePlugin.php(45)

ps. I’m running Matomo 3.13.3 on my own server, that is runnig CentOS 6

Hi, I had this issue also a while a go.
You have to install the version of Matomo from GitHub. In that version all Example plugins are available.

The versions on seems to be without the example plugins.

Hi, thank you for the information.

For more information on how to do this, see here:

1 Like

Turns out that the folder was created in the plugins folder.
I then used this github (GitHub - Findus23/matomo-ClassicTheme: You don't like bright colors? Then this theme brings back the old style of Matomo 3.6.0) to create the files manually, and set the styling as I wanted.

1 Like