- Posts: 2
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] Fatal error: Using $this / item.php on line 1560
[SOLVED] Fatal error: Using $this / item.php on line 1560
- adelphi
- Topic Author
- Offline
- New Member
Less
More
10 years 3 weeks ago #131624
by adelphi
[SOLVED] Fatal error: Using $this / item.php on line 1560 was created by adelphi
Im currently running K2 v2.6.6 on Joomla 2.5.24.
As soon as I update K2 to 2.6.7 or 2.6.8, parts of my website no longer work.
Error message:
Notice: Trying to get property of non-object in /srv/www/sitemirror/components/com_k2/models/item.php on line 1347
Fatal error: Using $this when not in object context in /srv/www/sitemirror/components/com_k2/models/item.php on line 1560
item.php line 1560 shows:
$this->buildAliasBasedExtraFields($K2ItemExtraFieldsInstances[$item->id], $item);
Any ideas how to fix this?
Thanks,
Daniel
As soon as I update K2 to 2.6.7 or 2.6.8, parts of my website no longer work.
Error message:
Notice: Trying to get property of non-object in /srv/www/sitemirror/components/com_k2/models/item.php on line 1347
Fatal error: Using $this when not in object context in /srv/www/sitemirror/components/com_k2/models/item.php on line 1560
item.php line 1560 shows:
$this->buildAliasBasedExtraFields($K2ItemExtraFieldsInstances[$item->id], $item);
Any ideas how to fix this?
Thanks,
Daniel
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 3 weeks ago #131625
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Fatal error: Using $this / item.php on line 1560
Hi. It looks like a third-party extension is using some K2 code in an incorrect way. Look for K2 extensions you might have ( plugins or modules ) and disable them temporarily until the error is gone.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- adelphi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
10 years 3 weeks ago #131626
by adelphi
Replied by adelphi on topic Re: Fatal error: Using $this / item.php on line 1560
You are right! It was the "K2 Related Content" Module from Effitech.
Now I have to find another module to show related articles...
Thanks,
Daniel
Now I have to find another module to show related articles...
Thanks,
Daniel
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 3 weeks ago #131627
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Fatal error: Using $this / item.php on line 1560
You should first check if there is an updated version of that extension.
You can also let the developer of that extension know about this so he can fix this.
You can also let the developer of that extension know about this so he can fix this.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] Fatal error: Using $this / item.php on line 1560