?
avatar PM84
PM84
2 Oct 2014

Steps to reproduce the issue

$user = JFactory::getUser();
$UserID=$user->get('id');
echo $UserID;

Expected result

get id available in variable
and print out the value -> e.g. '410'

Actual result

output: 0

System information (as much as possible)

OS Linux i
PHP 5.5.16
MySQL 5.1.73
Joomla! 3.3.6 Stable
FireFox recent version

Additional comments

up to the update 3.3.6 everything works fine.

Votes

# of Users Experiencing Issue
0/3
Average Importance Score
3.67

avatar PM84 PM84 - open - 2 Oct 2014
avatar vdespa
vdespa - comment - 2 Oct 2014

I am not able to replicate this. For a guest 0 is ok.

If you var_dump the whole $user object, is the id property displayed?

avatar vdespa vdespa - change - 2 Oct 2014
Status New Information Required
avatar JoomliC
JoomliC - comment - 2 Oct 2014

I'm not able to replicate this.
Everything is working fine for me on 3.3.6 (both admin and site sides)

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4426.

avatar zero-24 zero-24 - close - 2 Oct 2014
avatar vdespa vdespa - change - 2 Oct 2014
Status Information Required Closed - Unconfirmed Report
avatar jissues-bot jissues-bot - close - 2 Oct 2014
avatar jissues-bot
jissues-bot - comment - 2 Oct 2014

Set to "closed" on behalf of @vdespa by The JTracker Application at issues.joomla.org/joomla-cms/4426

avatar zero-24 zero-24 - close - 2 Oct 2014
avatar jissues-bot jissues-bot - change - 2 Oct 2014
Closed_Date 0000-00-00 00:00:00 2014-10-02 15:10:53
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment