Support

  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
Eric Accepted Answer
Basic
Hi,

I saw the update with the fix, thanks!
  1. more than a month ago
  2. Bug Report
  3. # 1
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. # 2
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. # 3
  • Page :
  • 1


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

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.