Stuck on string/object error |
Hi,
After a few years of being away from programming im building an application right now in CI4. Haven't programmed for years and always worked with CI2/3. So let's shake things up again haha. I think this code could also be a lot shorter and some renaming. But whatever, im stuck on an 'Object of class stdClass could not be converted to string' error... (SYSTEMPATH/Database/Query.php at line 333) AuthController.php PHP Code: public function sendPasswordResetLink() { PasswordResetToken.php PHP Code: <?php Harm.
<?php echo "Programming and perfectionism sucks sometimes..."; ?>
Whats on line 33 ?
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
$resetToken->insert(['email' => $userInfo, 'token' => $token, 'created_at' => Time::now()]);
Isn't that line the cause of the error "Object of class stdClass could not be converted to string"?
You can try one of these fixes that may work for you.
Fix error “Object of class stdclass could not be converted to string” What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |