No Code Attached Yet Information Required bug
avatar conathan
conathan
20 Oct 2023

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

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar conathan conathan - open - 20 Oct 2023
avatar conathan conathan - change - 20 Oct 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 20 Oct 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Oct 2023
avatar richard67 richard67 - change - 20 Oct 2023
Labels Added: bug
avatar richard67 richard67 - labeled - 20 Oct 2023
avatar conathan
conathan - comment - 22 Oct 2023

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.

avatar conathan
conathan - comment - 23 Oct 2023

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.

avatar conathan
conathan - comment - 20 Nov 2023

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.

avatar Fedik
Fedik - comment - 20 Nov 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.

avatar Quy Quy - change - 22 Nov 2023
Labels Added: Information Required
avatar Quy Quy - labeled - 22 Nov 2023
avatar conathan
conathan - comment - 27 Nov 2023

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.

avatar alikon alikon - close - 27 Nov 2023
avatar alikon alikon - change - 27 Nov 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-11-27 17:46:11
Closed_By alikon
avatar alikon
alikon - comment - 27 Nov 2023

thanks for reporting

Add a Comment

Login with GitHub to post a comment