Hi,

I allow my users at wisemusings.com to upload pictures of a certain size. It displays fine in the author pane for those users who upload their pictures. But for users who don't want to upload their pictures, I have a default picture for the which shows up fine in the user's account page and else where but it doesn't show up in author pane. More over, an ugly php error message shows up. I have attached a picture of it. Would be nice if this can be fixed. Thanks.

Raj

CommentFileSizeAuthor
author-pane.jpg140.73 KBGlobalRaj

Comments

GlobalRaj’s picture

For example

This one has no issue since user (myself) has uploaded a profile picture

This one has the above mentioned issue as the user has not uploaded a profile picture

I am going to leave the author pane enabled so you folks can look it up for the error message, if you like.

Scyther’s picture

Priority: Major » Normal

How did you write the URL for the Default picture in account settings?

This bug is known, check this issue #1217780: Notice: Trying to get property of non-object .... I will let this issue to be active, but it will be marked duplicate soon.

rogical’s picture

I solve this by modify template file, specify the default image when no user uploaded avatars.

GlobalRaj’s picture

Status: Active » Closed (duplicate)

Thanks Scyther. You are right about this being duplicate. It was too late at night and didn't check around.

Any ways, I applied the following patch and it worked out.

http://drupal.org/files/notice_trying_to_get_property_of_non_object-1217...

Hope they fix it for the next release though. Thanks.