mautic-recommender-bundle icon indicating copy to clipboard operation
mautic-recommender-bundle copied to clipboard

recommender plugin install error

Open nkwindforce opened this issue 3 years ago • 0 comments

Hi, I am new to mautic, when I install recommender plugin following the instructions in the online documents,

Installation manual for developers

  1. update composer.json with private repository and access token
  2. composer require kuzmany/mautic-recommender-bundle
  3. php app/console mautic:plugins:reload
  4. php app/console doctrine:schema:update --force

I got following error "Fatal error: Uncaught Error: Class 'Mautic\ApiBundle\MauticApiBundle' not found in D:\phpstudy_pro\WWW\mautic\app\AppKernel.php:169" in the third step;

How can I solve this problem? My Mautic version is 2.16.2. Recommer bundle version is 1.3.0 .

Thank you!

nkwindforce

D:\phpstudy_pro\WWW>cd mautic

D:\phpstudy_pro\WWW\mautic>composer require kuzmany/mautic-recommender-bundle Warning from https://mirrors.aliyun.com/composer: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2 Using version ^1.3 for kuzmany/mautic-recommender-bundle ./composer.json has been updated Loading composer repositories with package information Warning from https://mirrors.aliyun.com/composer: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2 Updating dependencies (including require-dev) Package operations: 3 installs, 0 updates, 0 removals

  • Installing mautic/composer-plugin (1.0.1): Downloading (100%)
  • Installing halaxa/json-machine (0.3.3): Downloading (100%)
  • Installing kuzmany/mautic-recommender-bundle (1.3.0): Downloading (100%) Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead. Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead. Package piwik/device-detector is abandoned, you should avoid using it. Use matomo/device-detector instead. Package sensio/distribution-bundle is abandoned, you should avoid using it. No replacement was suggested. Writing lock file Generating autoload files

D:\phpstudy_pro\WWW\mautic>php app/console mautic:plugins:reload

Fatal error: Uncaught Error: Class 'Mautic\ApiBundle\MauticApiBundle' not found in D:\phpstudy_pro\WWW\mautic\app\AppKernel.php:169 Stack trace: #0 D:\phpstudy_pro\WWW\mautic\vendor\symfony\http-kernel\Kernel.php(431): AppKernel->registerBundles() #1 D:\phpstudy_pro\WWW\mautic\app\AppKernel.php(273): Symfony\Component\HttpKernel\Kernel->initializeBundles() #2 D:\phpstudy_pro\WWW\mautic\vendor\symfony\framework-bundle\Console\Application.php(62): AppKernel->boot() #3 D:\phpstudy_pro\WWW\mautic\vendor\symfony\console\Application.php(117): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 D:\phpstudy_pro\WWW\mautic\app\console(43): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 {main} thrown in D:\phpstudy_pro\WWW\mautic\app\AppKernel.php on line 169

nkwindforce avatar Nov 13 '20 15:11 nkwindforce