Welcome Guest, Not a member yet? Register   Sign In
Setup error with Psr\\Log package

Downloaded the latest this morning, copied it over to the server and ran it, got the Whoops page, checked the logs, found this:
[Mon May 29 14:31:46.307201 2017] AH01215: PHP Fatal error:  Interface 'Psr\\Log\\LoggerInterface' not found in /***mypath***/system/Log/Logger.php on line 55: /usr/local/cpanel/cgi-sys/ea-php70

Best I can figure out searching online is that I don't have the Psr\Log package installed, which I believe is a PHP package (and not an Apache one). My "easyApache4" setup doesn't give me options to select anything remotely connected to the package name.

Pointers in the right direction to resolve this?

That was my fault. I commented out too many lines in system/Config/AutloadConfig.php, which removed the classmap items letting it know about the location of the Logger classes. Should work now.

I have the same error on 3 different configurations
[Mon May 29 19:06:50.732166 2017] [php7:error] [pid 11572:tid 1292] [client] PHP Fatal error:  
Interface 'Psr\\Log\\LoggerInterface' not found in C:\\**my_path**\\ci4app\\system\\Log\\Logger.php on line 55
I have a virtualhost but it probably does not matter ...
<VirtualHost ci4app:80>
 ServerName ci4app
# SetEnv CI_ENV development
  DocumentRoot "C:/**my_path**/ci4app/public"
<Directory "C:/**my_path**/ci4app/public">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
   ErrorLog "C:/**my_path**/ci4app/writable/logs/error.log"
   CustomLog "C:/**my_path**/ci4app/writable/logs/access.log" common
You may need to set something in /Config/Logger.php

Theme © iAndrew 2016 - Forum software by © MyBB