Title: Error with psr/log
Last modified: August 20, 2018

---

# Error with psr/log

 *  Resolved [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/)
 * Hey,
 * Just installed this for the first time and had an error with a missing dependency.
 * Fatal error: Interface ‘Psr\Log\LoggerInterface’ not found in /…/wp-content/plugins/
   wp-stateless/lib/Google/vendor/monolog/monolog/src/Monolog/Logger.php on line
   27
 * Any ideas?
 * Thanks

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10607392)
 * This is during setup. I initially did a manual setup and got this error on saving,
   and now get it if I try the automatic install.
 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10607513)
 * This appears to be resolved in the latest beta
 *  [Alimuzzaman Alim](https://wordpress.org/support/users/alimuzzamanalim/)
 * (@alimuzzamanalim)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10607750)
 * Hi [@felixcohen](https://wordpress.org/support/users/felixcohen/),
    Good to know
   that your problem have been resolved.
 * Can you please tell us which beta version you used?
    And when you had the problem
   which version you are using?
 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10609684)
 * Hi there, I was using latest release (2.1.7) and issue was fixed with move to
   2.1.8 Beta 2.
 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10609730)
 * And the problem is back today. Must be one specific logger call in the code I
   imagine? I’ll try and look now.
 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10609761)
 * Can’t see anything on a quick inspection, though running composer update in the
   lib/Google directory gives a lot of new code, it doesn’t fix the issue.
 *  [Alimuzzaman Alim](https://wordpress.org/support/users/alimuzzamanalim/)
 * (@alimuzzamanalim)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10610538)
 * [@felixcohen](https://wordpress.org/support/users/felixcohen/)
    I am not sure
   why the LoggerInterface isn’t auto-loading.
 * We have removed some unnecessary code from the library and only kept the storage
   API.
    We removed them when wrapped the library with our namespace to avoid the
   conflict with other version of the library from other plugins.
 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10610567)
 * That is odd. I can’t see where in your code the logger is being invoked but it
   does appear to be something related to the google auth connection setup.
 * Weirdly, I was able to connect briefly last night but as soon as we changed the
   wordpress upload directory location the problem began again. Could it be related?
 *  [Alimuzzaman Alim](https://wordpress.org/support/users/alimuzzamanalim/)
 * (@alimuzzamanalim)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10610578)
 * [@felixcohen](https://wordpress.org/support/users/felixcohen/)
    I don’t think
   they are related.
 * Can you make sure this file exist in your install?
    This is where the interface
   exists. `https://github.com/wpCloud/wp-stateless/blob/develop-alim/lib/Google/
   vendor/psr/log/Psr/Log/LoggerInterface.php`
 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10610579)
 * Is there any chance you could hop on a quick chat in skype with me and I can 
   share more details of the set up etc?
 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10610585)
 * Sorry, I think our messages crossed over. That file does exist in our install.
 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10610591)
 * Oh, wait, it’s visible locally but not on the server. Maybe something in our 
   deploy set up
 *  Thread Starter [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * (@felixcohen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10610636)
 * Thanks for your quick responses; this was the solution. My front end developer
   had ‘logs’ in the gitignore which was matching when the code was checked into
   our repo. Have removed that and all working again!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Error with psr/log’ is closed to new replies.

 * ![](https://ps.w.org/wp-stateless/assets/icon.svg?rev=1715943)
 * [WP-Stateless - Google Cloud Storage](https://wordpress.org/plugins/wp-stateless/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-stateless/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stateless/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stateless/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stateless/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stateless/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [felixcohen](https://wordpress.org/support/users/felixcohen/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/error-with-psr-log/#post-10610636)
 * Status: resolved