Skip to content

Conversation

@pasxel
Copy link

@pasxel pasxel commented Sep 28, 2023

Fixing error on Mautic 5.0.0-alpha1 branch.

[Symfony\Component\ErrorHandler\Error\ClassNotFoundError]                                         
  Attempted to load class "Controller" from namespace "Symfony\Bundle\FrameworkBundle\Controller".  
  Did you forget a "use" statement for another namespace?

For reproducing just run php bin/console debug:route on branch 5.0.0-alpha1

@escopecz
Copy link
Member

escopecz commented Oct 2, 2023

I can replicate.

Do you have some steps to test? I tried this:

  1. Update the line in https://github.com/mautic/mautic/blob/5.x/app/composer.json#L122 to "url": "https://github.com/pasxel/SpBundle.git"
  2. Run composer update --lock in the Mautic root dir

But it didn't update the package.

@patrykgruszka
Copy link
Member

@pasxel please provide the steps how to test this PR

@pasxel
Copy link
Author

pasxel commented Nov 15, 2023

To test I used:

It should update vendors.

@mollux
Copy link

mollux commented Nov 17, 2023

@escopecz you need to update the repo override in the root composer.json, not in the app/composer.json.
That will correctly pull from the wanted source

Copy link
Member

@patrykgruszka patrykgruszka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pasxel I haven't been able to test this with your example. The composer probably pulled the changes from the master branch. I've replaced the code directly in the vendor and the command works after your changes:

ddev exec php bin/console debug:router                                                                                                                                                                                                                    
 -------------------------------------------- ---------------- -------- ------ ------------------------------------------------------------------------------------------------- 
  Name                                         Method           Scheme   Host   Path                                                                                             
 -------------------------------------------- ---------------- -------- ------ ------------------------------------------------------------------------------------------------- 
  _wdt                                         ANY              ANY      ANY    /_wdt/{token}                                                                                    
  _profiler_home                               ANY              ANY      ANY    /_profiler/     
...

Copy link

@mollux mollux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes and improvements make sense, and they solve the issue!

@escopecz
Copy link
Member

Thanks everyone! Is there anything blocking the merge?

@mollux
Copy link

mollux commented Nov 24, 2023

@escopecz somehow i have no write access, so please go ahead merging :)

@escopecz escopecz merged commit 91f36a5 into mautic:symfony5 Nov 24, 2023
@RCheesley RCheesley linked an issue Nov 24, 2023 that may be closed by this pull request
1 task
@mautibot
Copy link

This pull request has been mentioned on Mautic Forums. There might be relevant details there:

https://forum.mautic.org/t/mautic-5-beta-1-saml-not-working/29653/5

@petecodes123
Copy link

Hi all,

How can I resolve this issue with my current Mautic 5.0.3 installation ?

@escopecz
Copy link
Member

@petecodes123 this was fixed in Mautic 5.0.3 with mautic/mautic#13253. If you've installed Mautic with Composer, try to run composer install. It won't hurt to try that.

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

Successfully merging this pull request may close these issues.

Mautic 5 [beta 1] - SAML not working

6 participants