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

(This post was last modified: 09-26-2023, 08:34 AM by DatDraggy.)

Hey there,
I've been busy upgrading my CI4 instance from 4.2.0 to 4.4.1. All went smooth until the step up to 4.4.0.

redirect()->route() returns $this->redirect(site_url()) 

Inside the site_url helper func, $currentURI is set from Services::request()->getUri();. However, getUri returns an instance of URI instead of the expected SiteURI.
$currentUri->siteUrl() is returned, but siteUrl is only present in the previously mentioned SiteURI.
I've researched this a bit and saw an issue regarding this exact thing, however it only concerned CLI and the fix in dev doesn't help me.

Am I missing something? Hope someone can help me out here.

I'm using nginx with php7.4-fpm

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

Theme © iAndrew 2016 - Forum software by © MyBB