Keyword

Notice: Undefined property: JObject::$description

More
11 years 7 months ago #110437 by sagar
C:\wamp\www\gokyotreknepal.com\components\com_k2\templates\default\user.php on line 59



what it is Please Someone tell me

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #110438 by Khlouk Rada
This case happens when you visit the all the articles by a user ex. super user. There are 2 ways to solve this.

First Option:

First go to K2 component>user

then click on any user record to edit. You must fill the description box for that user. and save. try viewing the page again. Notice will disappear.

This is because user of K2 component has the description field. And the code is not properly written to check if that exist or not.

Second Option is to edit the code in components\com_k2\templates\default\user.php at the line that cause the notice.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #110439 by cork

Khlouk Rada wrote: This case happens when you visit the all the articles by a user ex. super user. There are 2 ways to solve this.

First Option:

First go to K2 component>user

then click on any user record to edit. You must fill the description box for that user. and save. try viewing the page again. Notice will disappear.

This is because user of K2 component has the description field. And the code is not properly written to check if that exist or not.

Second Option is to edit the code in components\com_k2\templates\default\user.php at the line that cause the notice.


Do you know how to write a php statement so that if the description is missing, it displays nothing?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum