Skip to content
New issue

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

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

Already on GitHub? # to your account

Joomla 5.0.0 - Class "Psr\Log\LogLevel" not found in symfony error-handler #42186

Closed
conathan opened this issue Oct 20, 2023 · 6 comments
Closed

Comments

@conathan
Copy link

Steps to reproduce the issue

Extract the files from https://downloads.joomla.org/cms/joomla5/5-0-0/Joomla_5.0.0-Stable-Full_Package.tar.gz?format=gz , and setup database configuration.

Expected result

example.com/installation to give the normal joomla install

Actual result

Fatal error: Uncaught Error: Class "Psr\Log\LogLevel" not found in /misc/5/000/267/030/6/user/web/wordpress.ncoulson.com/joomla/libraries/vendor/symfony/error-handler/ErrorHandler.php:112

Stack trace:
#0 /misc/5/000/267/030/6/user/web/wordpress.ncoulson.com/joomla/libraries/bootstrap.php(57): Symfony\Component\ErrorHandler\ErrorHandler::register()
#1 /misc/5/000/267/030/6/user/web/wordpress.ncoulson.com/joomla/installation/includes/framework.php(27): require_once('/misc/5/000/267...')
#2 /misc/5/000/267/030/6/user/web/wordpress.ncoulson.com/joomla/installation/includes/app.php(26): require_once('/misc/5/000/267...')
#3 /misc/5/000/267/030/6/user/web/wordpress.ncoulson.com/joomla/installation/index.php(32): require_once('/misc/5/000/267...')
#4 {main} thrown in /misc/5/000/267/030/6/user/web/wordpress.ncoulson.com/joomla/libraries/vendor/symfony/error-handler/ErrorHandler.php on line 112

System information (as much as possible)

AlmaLinux 8.8 (Bravenet Web Hosting)
php 8.0, 8.1 and 8.2 - latest

Additional comments

Tested on 8.1/8.2 at bravenet.com (technically 8.0 as well, which gave the "you need 8.1 minimum"

Reran the same tests with Joomla 4.3.4, no issues

@conathan
Copy link
Author

Adding to this, our environment does have php-PsrLog installed, pulled in by composer. (Remi's PHP Repositories). Had someone reach out and advise this may be related.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42186.

@conathan
Copy link
Author

Further testing, with composer and php-PsrLog removed, no change.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42186.

@conathan
Copy link
Author

I was wondering how to take this further, This is affecting our entire hosting environment for customers.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42186.

@Fedik
Copy link
Member

Fedik commented Nov 20, 2023

Check whether file vendor/psr/log/src/LogLevel.php exist, and it is not corrupted.
Also may be something with filesystem read-access.
I cannot think many other resons why the class cannot be found.

@conathan
Copy link
Author

That turned out to be it. We have a git repository that imports this for use as a one click installer. .gitignore had log in it, (now changed to /log), that meant source/libraries/vendor/psr/log was not included. Resolved.

Thank you, (hrm, don't see a option to close the ticket from here, let's see)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42186.

@alikon
Copy link
Contributor

alikon commented Nov 27, 2023

thanks for reporting

@alikon alikon closed this as completed Nov 27, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

6 participants