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

[Craft 4] Logger issue #221

Open
sanderpotjer opened this issue Jun 27, 2024 · 4 comments
Open

[Craft 4] Logger issue #221

sanderpotjer opened this issue Jun 27, 2024 · 4 comments

Comments

@sanderpotjer
Copy link

After updating to 4.2.0 on Craft 4 the SSO login no longer works due logger issue:

flipbox\saml\psr\log\Logger::log($level, Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerTrait::log($level, $message,array $context = []) at /vendor/flipboxfactory/saml-core-psr-log/src/Logger.php:76

"craftcms/cms": "4.10.2",
"flipboxfactory/saml-sp": "4.2.0",
@dsmrt
Copy link
Contributor

dsmrt commented Jun 27, 2024

This package flipboxfactory/saml-core-psr-log should have been installed to fix this exact issue. Are seeing it?
Can you run a couple commands to see what packages you're using? Try these two:

composer show psr/log
composer show flipboxfactory/saml-core-psr-log

@dsmrt
Copy link
Contributor

dsmrt commented Jun 27, 2024

Add one more check to the list:

composer show flipboxfactory/saml-core 

Core should be on 4.2.1

@sanderpotjer
Copy link
Author

psr/log version 1.1.4
flipboxfactory/saml-core-psr-log version 3.0.0
flipboxfactory/saml-core version 4.2.1
So that all looks as expected right?

@dsmrt
Copy link
Contributor

dsmrt commented Jul 3, 2024

flipboxfactory/saml-core-psr-log should be using version ^1.0.0 since psr/log is on ^1.0.0. Composer should pick up that those packages are incompatable.

Can you try something like this? composer require flipboxfactory/saml-core-psr-log "^1.0.0" and see what it does?

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

2 participants