- Posts: 4
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
- jShaman
-
Topic Author
- Offline
- New Member
Less
More
14 years 7 months ago #89498
by jShaman
Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58 was created by jShaman
i fixed it, just add this line
if (isset($item->author) && is_object($item->author->profile) && isset($item->author->profile->id)) {
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
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
14 years 7 months ago #89499
by jShaman
Replied by jShaman on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
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:
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
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
14 years 7 months ago #89500
by jShaman
Replied by jShaman on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
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; ?>
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.
- natanshalva
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 6 months ago #89501
by natanshalva
Replied by natanshalva on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
But - where to add it ?
Please Log in or Create an account to join the conversation.
- natanshalva
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 6 months ago #89502
by natanshalva
Replied by natanshalva on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
sorry :) in line 58 ...
Please Log in or Create an account to join the conversation.
- Simon Barthelt
-
- Offline
- New Member
Less
More
- Posts: 1
14 years 2 months ago #89503
by Simon Barthelt
Replied by Simon Barthelt on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
Helps. Spec Thanks...
Please Log in or Create an account to join the conversation.
- Chenet
-
- Offline
- New Member
Less
More
- Posts: 1
14 years 1 week ago #89504
by Chenet
Replied by Chenet on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
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.
- natanshalva
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 1 week ago #89505
by natanshalva
Replied by natanshalva on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
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 ?
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.
- dvlancer
-
- Offline
- New Member
13 years 10 months ago #89506
by dvlancer
Replied by dvlancer on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
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.
- dvlancer
-
- Offline
- New Member
13 years 10 months ago #89507
by dvlancer
Replied by dvlancer on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
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.
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.
- nhayes
-
- Offline
- New Member
Less
More
- Posts: 1
13 years 8 months ago #89508
by nhayes
Replied by nhayes on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
Does someone have a "fixed" file to upload. Can't seem to figure out if I should be adding line or replacing old ones...
Please Log in or Create an account to join the conversation.
- Russell English
-
- Offline
- Junior Member
Less
More
- Posts: 37
13 years 8 months ago #89509
by Russell English
Replied by Russell English on topic Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58
That worked great, thanks very much
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Notice: Undefined property: stdClass::$author in components\com_k2\views\item\view.html.php on line 58