Logicify / mautic-advanced-templates-bundle

Plugin extends default email template capabilities with TWIG block so you can use advanced scripting techniques like conditions, loops etc
https://logicify.com/?utm_source=github&utm_campaign=mautic-templates&utm_medium=opensource
MIT License
90 stars 57 forks source link

Cannot declare class MauticPlugin\MauticAdvancedTemplatesBundle\MauticAdvancedTemplatesBundle, because the name is already in use #37

Open putzwasser opened 1 year ago

putzwasser commented 1 year ago

Tried to install the plugin on a fairly fresh Mautic instance:

cd www/mautic/docroot/plugins/
wget https://github.com/Logicify/mautic-advanced-templates-bundle/archive/refs/tags/1.2.zip
unzip 1.2.zip
mv mautic-advanced-templates-bundle-1.2/ LogicifyMauticAdvancedTemplatesBundle
php /var/www/mautic/bin/console cache:clear

 // Clearing the cache for the prod environment with debug false                                                        

[22-Aug-2023 13:50:29 Europe/Berlin] PHP Fatal error:  Cannot declare class MauticPlugin\MauticAdvancedTemplatesBundle\MauticAdvancedTemplatesBundle, because the name is already in use in /var/www/mautic/docroot/plugins/LogicifyMauticAdvancedTemplatesBundle/MauticAdvancedTemplatesBundle.php on line 0

In MauticAdvancedTemplatesBundle.php line n/a:

  Compile Error: Cannot declare class MauticPlugin\MauticAdvancedTemplatesBundle\MauticAdvancedTemplatesBundle, because the name is already in use

cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

I installed only one additional plugin before: Jotaworks Mautic DOI-Plugin

ls -al
total 56
drwxrwxr-x. 17 startygn startygn  4096 Aug 22 13:49 .
drwxrwxr-x.  8 startygn startygn   240 Aug 18 15:47 ..
-rw-rw-r--.  1 startygn startygn 26110 Aug 22 13:49 1.2.zip
drwxrwxr-x. 15 startygn startygn  4096 Jan 17  2023 GrapesJsBuilderBundle
drwxrwxr-x. 14 startygn startygn  4096 Jul 18 11:51 JotaworksDoiBundle
drwxrwxr-x.  7 startygn startygn   193 Mar 14 19:00 LogicifyMauticAdvancedTemplatesBundle
drwxrwxr-x. 18 startygn startygn  4096 May 24 20:40 MauticCitrixBundle
drwxrwxr-x. 13 startygn startygn   252 May 13  2022 MauticClearbitBundle
drwxrwxr-x. 10 startygn startygn   212 May 13  2022 MauticCloudStorageBundle
drwxrwxr-x. 16 startygn startygn  4096 May 19 11:37 MauticCrmBundle
drwxrwxr-x. 10 startygn startygn   200 May 13  2022 MauticEmailMarketingBundle
drwxrwxr-x. 17 startygn startygn  4096 Nov 14  2022 MauticFocusBundle
drwxrwxr-x. 14 startygn startygn   272 May 13  2022 MauticFullContactBundle
drwxrwxr-x.  7 startygn startygn   155 May 13  2022 MauticGmailBundle
drwxrwxr-x.  8 startygn startygn   170 May 13  2022 MauticOutlookBundle
drwxrwxr-x. 18 startygn startygn  4096 May 13  2022 MauticSocialBundle
drwxrwxr-x. 14 startygn startygn   259 May 13  2022 MauticTagManagerBundle
drwxrwxr-x.  5 startygn startygn   117 May 13  2022 MauticZapierBundle

What is wrong here? Is this a bug or user error?