Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: redirect() - ltrim() expects parameter 1 to be string, object given #568

Closed
timothymarois opened this issue Jun 22, 2017 · 2 comments

Comments

@timothymarois
Copy link
Contributor

Doesn't appear like this is working like it should. Anything placed within redirect() seems to throw an error.

Example: You'd except this to redirect the local url.
redirect('/login');

Error Exception:
ltrim() expects parameter 1 to be string, object given

screenshot 2017-06-22 16 03 37

https://bcit-ci.github.io/CodeIgniter4/general/common_functions.html?highlight=redirect#redirect

@lonnieezell
Copy link
Member

Hmmm. All of the test for that are passing. I tried the simple test that's in the Checks controller and it works. I was thinking it might have been a Closure that was somehow getting in there, but I wrote a new test for that it is passing.

Can you post your routes file (or email it to me if you'd rather it not be public?

@lonnieezell
Copy link
Member

@timothymarois are you still getting this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants