COMMUNITY FORUM
K2 Error
- SD
-
Topic Author
- User
Less
More
5 years 2 months ago #174652
by SD
K2 Error was created by SD
I just updated my template to a new version after doing so I am getting the following error at the top of the page. Its not happening on every page but on a lot of pages across various categories.
Notice: Trying to get property 'alias' of non-object in ...../components/com_k2/router.php on line 292.
This is the line that is in router.php
"$segments[0] == getCategoryProps($segments[0])->alias &&"
Notice: Trying to get property 'alias' of non-object in ...../components/com_k2/router.php on line 292.
This is the line that is in router.php
"$segments[0] == getCategoryProps($segments[0])->alias &&"
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
5 years 2 months ago #174668
by JoomlaWorks
Replied by JoomlaWorks on topic K2 Error
K2, Joomla & PHP versions?
Please Log in or Create an account to join the conversation.
- Fastpat27
-
- Offline
- New Member
Less
More
- Posts: 7
4 years 6 months ago #177229
by Fastpat27
Replied by Fastpat27 on topic K2 Error
Hi
I also have this issue, Joomla is 3.9.22 and K2 is 2.10.3.
Notice: Trying to get property 'alias' of non-object in /home/username/domains/mydomain.co.uk/public_html/components/com_k2/router.php on line 292
Actually on two of my sites, would you be able to help in anyway please?
Thanks
FP
I also have this issue, Joomla is 3.9.22 and K2 is 2.10.3.
Notice: Trying to get property 'alias' of non-object in /home/username/domains/mydomain.co.uk/public_html/components/com_k2/router.php on line 292
Actually on two of my sites, would you be able to help in anyway please?
Thanks
FP
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
4 years 6 months ago #177234
by JoomlaWorks
Replied by JoomlaWorks on topic K2 Error
Try v2.10.4 (dev) from getk2.org/downloads/?f=K2_Development_Release.zip - it will probably resolve your issue.
Please Log in or Create an account to join the conversation.
- Fastpat27
-
- Offline
- New Member
Less
More
- Posts: 7
4 years 6 months ago #177264
by Fastpat27
Replied by Fastpat27 on topic K2 Error
Hi Fotis, this did not resolve the issue unfortunately, but when I look at the version of K2 it is still 2.10.3 after installing the download link. Is there another link for 2.10.4?
Thanks
FP
Thanks
FP
Please Log in or Create an account to join the conversation.
- Fastpat27
-
- Offline
- New Member
Less
More
- Posts: 7
4 years 6 months ago #177285
by Fastpat27
Replied by Fastpat27 on topic K2 Error
Hi Fotis
I don't mean to rush you with the link to download 2.10.4, but if it was quick for you to provide the link it would help me get fixed before meeting my client tomorrow night and would be greatly appreciated.
Thanks
FP
I don't mean to rush you with the link to download 2.10.4, but if it was quick for you to provide the link it would help me get fixed before meeting my client tomorrow night and would be greatly appreciated.
Thanks
FP
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
4 years 6 months ago #177287
by JoomlaWorks
Replied by JoomlaWorks on topic K2 Error
Replace /components/com_k2/router.php with the one from: jmp.sh/CZ2oMKG
Please Log in or Create an account to join the conversation.
- Fastpat27
-
- Offline
- New Member
Less
More
- Posts: 7
4 years 6 months ago - 4 years 6 months ago #177305
by Fastpat27
Replied by Fastpat27 on topic K2 Error
Thank you Fotis, that has resolved the issue now, much appreciated.
Regards
FP
Regards
FP
Last edit: 4 years 6 months ago by Fastpat27.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
4 years 6 months ago #177315
by JoomlaWorks
Replied by JoomlaWorks on topic K2 Error
Great!
Please Log in or Create an account to join the conversation.