Forums

error when trying to get logged in user details

tidusx18 04 May, 2009
Hi,

I saw on a few posts how to get logged in user details and put them in fields on a form, but when I tried it I get the following error...

Catchable fatal error: Object of class JUser could not be converted to string in /hermes/bosweb/web245/b2459/d5.cityflye/public_html/joomla/components/com_chronocontact/chronocontact.html.php(351) : eval()'d code on line 42



Here's a link to my form:
http://ineedapricequote.com/index.php?option=com_chronocontact&chronoformname=new_category_request&Itemid=48

Thank you,
Daniel-
GreyHead 04 May, 2009
Hi Daniel,

It looks as if somewhere in your code - probably line 42 of your Form HTML you are setting an input value using $user - it needs to be $user->email or $user->name, etc.

Bob
tidusx18 05 May, 2009
Bob,

Thank you, that worked.

Daniel-
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger