Welcome Guest, Not a member yet? Register   Sign In
Undefined method URI::siteUrl() after upgrading to 4.4.x
#5

(This post was last modified: 09-27-2023, 03:07 AM by DatDraggy.)

(09-26-2023, 07:45 PM)kenjis Wrote: Services::request()->getUri() should return SiteURI.
Find why it returns URI.
Did you customize CI4 or Config\Services?

I'm using composer and upgraded the version step by step just like it says in the upgrading docs. app/Config/Services does have two custom functions, the issue persists after removing them though. get_class($currentUri) returns URI for me.
system/HTTP/Request.php typehint also says it only returns URI

Well okay, I seemed to have missed something. I had to update tests/_support/Config/Services.php. All working again. Thanks for the assistance
Reply


Messages In This Thread
RE: Undefined method URI::siteUrl() after upgrading to 4.4.x - by DatDraggy - 09-27-2023, 02:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB