Keyword

Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58

  • jShaman
  • jShaman's Avatar Topic Author
  • Offline
  • New Member
More
13 years 11 months ago #89498 by jShaman
i fixed it, just add this line

if (isset($item->author) && is_object($item->author->profile) && isset($item->author->profile->id)) {

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

  • jShaman
  • jShaman's Avatar Topic Author
  • Offline
  • New Member
More
13 years 11 months ago #89499 by jShaman
some other fixes


Notice: Undefined property: stdClass::$BeforeDisplay in modules\mod_k2_content\tmpl\Default\default.php on line 26
FIX:


Lorem ipsum
Notice: Undefined property: stdClass::$AfterDisplayTitle in modules\mod_k2_content\tmpl\Default\default.php on line 54
FIX:

Notice: Undefined property: stdClass::$BeforeDisplayContent in modules\mod_k2_content\tmpl\Default\default.php on line 60
FIX:



Notice: Undefined property: stdClass::$AfterDisplayContent in modules\mod_k2_content\tmpl\Default\default.php on line 107
FIX:

Notice: Undefined property: stdClass::$AfterDisplay in modules\mod_k2_content\tmpl\Default\default.php on line 167
FIX:

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

  • jShaman
  • jShaman's Avatar Topic Author
  • Offline
  • New Member
More
13 years 11 months ago #89500 by jShaman
on line 26
FIX: php if (isset($item->event->BeforeDisplay)) echo $item->event->BeforeDisplay; ?>

on line 54
FIX: php if (isset($item->event->AfterDisplayTitle)) echo $item->event->AfterDisplayTitle; ?>

on line 60
FIX: php if (isset($item->event->BeforeDisplayContent)) echo $item->event->BeforeDisplayContent; ?>

on line 107
FIX: php if (isset($item->event->AfterDisplayContent)) echo $item->event->AfterDisplayContent; ?>

on line 167
FIX: php if (isset($item->event->AfterDisplay)) echo $item->event->AfterDisplay; ?>

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

More
13 years 11 months ago #89501 by natanshalva

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

More
13 years 10 months ago #89502 by natanshalva

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

More
13 years 6 months ago #89503 by Simon Barthelt

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

More
13 years 4 months ago #89504 by Chenet
I am very new into Joomla. I have this bug, but I really do not know where I have to fix it. My website is not yet on line. Where can I find line 58 and how ?

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

More
13 years 4 months ago #89505 by natanshalva
go to your joomla site file and look for this path :

components\com_k2\views\item\view.html.php 

open the file and go to line 58.

 

hops that helps

 

Chenet said:

I am very new into Joomla. I have this bug, but I really do not know where I have to fix it. My website is not yet on line. Where can I find line 58 and how ?

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

More
13 years 2 months ago #89506 by dvlancer
This issue is still present in v2.4.1. Adding isset($item->author) definitely fixes it, but I wonder what's wrong with getting author. The records in DB looks OK and author info is showing up fine in the admin panel.

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

More
13 years 2 months ago #89507 by dvlancer
Alex said:
This issue is still present in v2.4.1. Adding isset($item->author) definitely fixes it, but I wonder what's wrong with getting author. The records in DB looks OK and author info is showing up fine in the admin panel.

Just noticed that I was looking at the wrong item in the DB. The above issue was caused because the author/user was deleted. Deleting a user is a normal activity and this scenario should really be handled properly.

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


Powered by Kunena Forum