• Resolved felixcohen

    (@felixcohen)


    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

    (@felixcohen)

    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

    (@felixcohen)

    This appears to be resolved in the latest beta

    Hi @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

    (@felixcohen)

    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

    (@felixcohen)

    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

    (@felixcohen)

    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.

    @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

    (@felixcohen)

    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?

    @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

    (@felixcohen)

    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

    (@felixcohen)

    Sorry, I think our messages crossed over. That file does exist in our install.

    Thread Starter felixcohen

    (@felixcohen)

    Oh, wait, it’s visible locally but not on the server. Maybe something in our deploy set up

    Thread Starter felixcohen

    (@felixcohen)

    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.