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

Upgrade to 4.4.9 via Composer fails with undefined constant #12501

Closed
1 task done
stevedrobinson opened this issue Jun 19, 2023 · 3 comments
Closed
1 task done

Upgrade to 4.4.9 via Composer fails with undefined constant #12501

stevedrobinson opened this issue Jun 19, 2023 · 3 comments
Assignees
Labels
bug Issues or PR's relating to bugs plugin Anything related to plugins

Comments

@stevedrobinson
Copy link
Contributor

Mautic Version

4.4.x series

PHP version

8.0.29

What browsers are you seeing the problem on?

Not relevant

What happened?

After upgrading to version 4.4.9 via composer, migrations fail to run, producing an error:

Migration 20230522115137 failed during Execution. Error Undefined constant MauticPlugin\MauticCitrixBundle\Integration\CitrixAbstractIntegration::DEPRECATION_MESSAGE

In Version20230522115137.php line 38:
                                                                                                                 
  Undefined constant MauticPlugin\MauticCitrixBundle\Integration\CitrixAbstractIntegration::DEPRECATION_MESSAGE  

This occurred across all our instances and it's worth noting that none of the GoTo extensions were active on any of the instances.

Referenced via this forum post: https://forum.mautic.org/t/upgarde-to-4-4-9-via-composer-fails-with-unefined-constant/28365

How can we reproduce this issue?

Step 1: upgrade Mautic via Composer to 4.4.9
Step 2: Run migrations via the command bin/console doctrine:migration:migrate

Relevant log output

++ migrating 20230522115137

Migration 20230522115137 failed during Execution. Error Undefined constant MauticPlugin\MauticCitrixBundle\Integration\CitrixAbstractIntegration::DEPRECATION_MESSAGE

In Version20230522115137.php line 38:
                                                                                                                 
  Undefined constant MauticPlugin\MauticCitrixBundle\Integration\CitrixAbstractIntegration::DEPRECATION_MESSAGE  
                                                                                                                 

doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--configuration [CONFIGURATION]] [--db-configuration [DB-CONFIGURATION]] [--db DB] [--em EM] [--shard SHARD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<version>]

Code of Conduct

  • I confirm that I have read and agree to follow this project's Code of Conduct
@stevedrobinson stevedrobinson added bug Issues or PR's relating to bugs needs-triage For new issues/PRs that need to be triaged labels Jun 19, 2023
@mautibot
Copy link

This issue has been mentioned on Mautic Community Forums. There might be relevant details there:

https://forum.mautic.org/t/upgarde-to-4-4-9-via-composer-fails-with-unefined-constant/28365/5

@mabumusa1 mabumusa1 added plugin Anything related to plugins and removed needs-triage For new issues/PRs that need to be triaged labels Jun 19, 2023
@mabumusa1 mabumusa1 self-assigned this Jun 19, 2023
@mabumusa1
Copy link
Member

@stevedrobinson Can you check if you have the latest code base of the plugin? You should not get this error if you have the latest version. I wrote this PR and the message is referenced in this file https://github.com/mautic/mautic/blob/4.4/plugins/MauticCitrixBundle/Integration/CitrixAbstractIntegration.php#L16

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If this issue is continuing with the lastest stable version of Mautic, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs plugin Anything related to plugins
Projects
None yet
Development

No branches or pull requests

3 participants