1. Eric
  2. Bug Report
  3. Monday, October 31 2016, 05:22 PM
After upgrading to Joomla 3.6.4 and Easy Profile to Basic 2.1.1 we get errors on articles where we include php source code with Sourcerer. Previously this worked well (Joomla 3.5.? and most recent EP 1).

Errors:
Undefined property: JObject::$registerDate in /var/www/html/...../administrator/components/com_jsn/helpers/fields/registerdate.php on line 50
Undefined property: JObject::$lastvisitDate in /var/www/html/...../administrator/components/com_jsn/helpers/fields/lastvisitdate.php on line 50

We are not trying to get those fields:


$user = JFactory::getUser();
$profile = JUserHelper::getProfile($user->id);
$joomla_name = $user->name;
$joomla_LidNumber = $profile->profile['region'];



Also, it suddenly it seems necessary to assign an empty value to varables otherwise we get errrors too ???
This is unlike PHP!

Hope you can help.

Regards,
Eric
admin Accepted Answer
Admin
Hi,
I think this is due to Joomla Update, now seems that function JUserHelper::getProfile($user->id); not load standard Joomla jUser vars.

These are only PHP notices, so do not cause any problems.

Anyway in the next update we will fix these messages ;)
  1. more than a month ago
  2. Bug Report
  3. # 1
Eric Accepted Answer
Basic
Yes please do, as the Apache error log was really cluttered with these errors.

The site was even unreachable and the hosting provider claimed this was the cause. I don't believe that though, after a restart of Apache the site worked again without us changing anything ...

Thanks in advance!
Best regards,
Eric
  1. more than a month ago
  2. Bug Report
  3. # 2
Eric Accepted Answer
Basic
Hi,

I saw the update with the fix, thanks!
  1. more than a month ago
  2. Bug Report
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.