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

"php bin/console" command (with no arguments) throws an exception #8359

Closed
anton-vlasenko opened this issue Jan 28, 2020 · 3 comments
Closed
Assignees
Labels
bug Issues or PR's relating to bugs regression A bug that broke something in the last release
Projects
Milestone

Comments

@anton-vlasenko
Copy link
Contributor

anton-vlasenko commented Jan 28, 2020

Bug Description

If you try to run php bin/console you will get the following error in the console:

PHP Warning:  include(): Failed opening '
/vendor/composer/../../app/bundles/LeadBundle/Tests/DataFixtures/ORM/LoadPageHitData.php' for inclusion (include_path='.:/usr/local/Cellar/php@7.2/7.2.25/share/php@7.2/pear') in /vendor/composer/ClassLoader.php on line 444

It's happening because LoadPageHitData.php file is not included into the M3 distribution package.
We don't include all the Test/ folders into our distribution packages.
We need to find a way to fix that.

Q A
Mautic version 3.0.0-alpha
PHP version 7.2.25
Browser N/A

Steps to reproduce

  1. Checkout 3.x branch.
  2. Create a distribution package using build/package_release.php script (make sure you've updated the 3.0.0-alpha tag to point to the latest commit in your branch).
  3. Install Mautic from the package that you've just generated.
  4. Run php bin/console.
  5. Observe errors in the console.

Log errors

PHP Warning:  include(): Failed opening '
/vendor/composer/../../app/bundles/LeadBundle/Tests/DataFixtures/ORM/LoadPageHitData.php' for inclusion (include_path='.:/usr/local/Cellar/php@7.2/7.2.25/share/php@7.2/pear') in /vendor/composer/ClassLoader.php on line 444
@anton-vlasenko anton-vlasenko added this to the 3.0.0 milestone Jan 28, 2020
@anton-vlasenko anton-vlasenko added bug Issues or PR's relating to bugs regression A bug that broke something in the last release labels Jan 28, 2020
@escopecz escopecz added this to To do in Mautic 3 via automation Jan 28, 2020
@anton-vlasenko anton-vlasenko moved this from To do to In progress in Mautic 3 Jan 28, 2020
@anton-vlasenko anton-vlasenko moved this from In progress to To do in Mautic 3 Jan 28, 2020
@dongilbert
Copy link
Member

PR was merged

Mautic 3 automation moved this from To do to Done Jan 30, 2020
@lukassykora
Copy link
Contributor

PR is here: #8377. It is not merged to mautic/mautic yet.

@lukassykora lukassykora reopened this Jan 30, 2020
@escopecz escopecz moved this from Done to Needs code review and/or test in Mautic 3 Feb 3, 2020
@anton-vlasenko anton-vlasenko moved this from Needs code review and/or test to In progress in Mautic 3 Feb 3, 2020
@escopecz escopecz moved this from In progress to Needs code review and/or test in Mautic 3 Feb 3, 2020
@anton-vlasenko anton-vlasenko moved this from Needs code review and/or test to In progress in Mautic 3 Feb 3, 2020
@anton-vlasenko
Copy link
Contributor Author

#8377 (review)

@anton-vlasenko anton-vlasenko moved this from In progress to Needs code review and/or test in Mautic 3 Feb 4, 2020
@anton-vlasenko anton-vlasenko moved this from Needs code review and/or test to Done in Mautic 3 Feb 4, 2020
@escopecz escopecz closed this as completed Feb 4, 2020
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 regression A bug that broke something in the last release
Projects
No open projects
Mautic 3
  
Done
Development

No branches or pull requests

4 participants