Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
putzwasser opened this issue Aug 22, 2023 · 0 comments

Comments

@putzwasser
Copy link

putzwasser commented Aug 22, 2023

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?

  • Mautic 4.4.9 - app/prod (env: prod, debug: false)
  • PHP Version 8.0.30
  • Red Hat Enterprise Linux Server release 7.9 (Maipo)
  • x86_64
  • FPM/FastCGI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant