thephpleague / oauth2-server

A spec compliant, secure by default PHP OAuth 2.0 Server
https://oauth2.thephpleague.com
MIT License
6.49k stars 1.12k forks source link

Class "League\Uri\UriString" not found #1371

Closed jmpecx closed 9 months ago

jmpecx commented 10 months ago
Class "League\Uri\UriString" not found

image

8.5.3 works find.

Anyone else had this problem?

parallels999 commented 10 months ago

@jmpecx seems like a composer problem, or a bug on League/Uri, not from here

jmpecx commented 10 months ago

@parallels999 Emmmm, But if I downgrade it to 8.5.3 , It works.

oauth2-server depends League/Uri, and this pr https://github.com/thephpleague/oauth2-server/pull/1367 update League/Uri version to a new big version, from 6 to 7 can make so BREAK CHANGES

Sephster commented 9 months ago

The URI String class is in the uri interfaces package which is a dependency of v7 of league/uri.

I'm assuming you don't have this package in your vendor directory. Is this the case?

jmpecx commented 9 months ago

@Sephster No detailed inspection, but I clearly didn't delete it manually. Composer should automatically download it based on the instructions.

I just rolled back to '8.5.3', and the reason this version works is that it does not rely on League/uri v7.

jmpecx commented 9 months ago

If there is no feedback from others, it may be due to issues with my environment.

parallels999 commented 9 months ago

If there is no feedback from others, it may be due to issues with my environment.

That has happened to me, sometimes, I have not known how to solve it, what I have done is delete the entire vendor manually and composer update

If you find the solution, let me know, so I can have that knowledge. 👀👀

Sephster commented 9 months ago

Sorry @jmpecx, just to confirm, was v7 in your vendor dir or did it stay on an earlier version?

You can run composer why-not league/uri 7.0 to find out why it didn't install if this is the case.

Let me know how you get on

Sephster commented 9 months ago

Closing due to lack of activity