- Posts: 23
COMMUNITY FORUM
error code on Item View page after k2 2.6.8 dev
- John Dunstan
-
Topic Author
- Offline
- Junior Member
Less
More
11 years 3 months ago #124238
by John Dunstan
error code on Item View page after k2 2.6.8 dev was created by John Dunstan
Hello,
I installed K2 2.6.8 dev to see it it fixed some issues in Joomla 3.2.1.
After installing, when I go to a K2 ITEM VIEW front end view page, I get this error code:
Notice: Undefined property: stdClass::$numOfComments in /home/squnch1/public_html/dev/new2/components/com_k2/views/item/view.html.php on line 264
Screen shot attached
I installed K2 2.6.8 dev to see it it fixed some issues in Joomla 3.2.1.
After installing, when I go to a K2 ITEM VIEW front end view page, I get this error code:
Notice: Undefined property: stdClass::$numOfComments in /home/squnch1/public_html/dev/new2/components/com_k2/views/item/view.html.php on line 264
Screen shot attached
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 3 months ago - 11 years 3 months ago #124239
by Lefteris
Replied by Lefteris on topic Re: error code on Item View page after k2 2.6.8 dev
First I need you to make sure that everything is installed properly. That is why I need you to follow the steps below and re-install the dev version of K2.
In Joomla Admin area go to Extension Manager > Discover (side bar nav)
Click on the "Discover" button at the top.
Find all of the K2 files that weren't installed and select them. Click on "Install" button at the top.
Go back to Extension Manager > Install
Reinstall the K2 SVN version zip file on top of your old installation.
Then if the problem persists try to disable your K2 overrides (just rename the com_k2 folder under templates/your_Template/html/) if you don't use K2 template overrides post me again.
In Joomla Admin area go to Extension Manager > Discover (side bar nav)
Click on the "Discover" button at the top.
Find all of the K2 files that weren't installed and select them. Click on "Install" button at the top.
Go back to Extension Manager > Install
Reinstall the K2 SVN version zip file on top of your old installation.
Then if the problem persists try to disable your K2 overrides (just rename the com_k2 folder under templates/your_Template/html/) if you don't use K2 template overrides post me again.
Please Log in or Create an account to join the conversation.
- John Dunstan
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
11 years 3 months ago #124240
by John Dunstan
Replied by John Dunstan on topic Re: error code on Item View page after k2 2.6.8 dev
Hello,
Thanks for the reply, but no dice!
- Nothing listing in discover (after clicking the discover button to re-load possible items)
- Re-Installed K2 2.6.8 dev
- I do use overrides, i renamed the folder, and the error still showed
Whats next?
Thanks for the reply, but no dice!
- Nothing listing in discover (after clicking the discover button to re-load possible items)
- Re-Installed K2 2.6.8 dev
- I do use overrides, i renamed the folder, and the error still showed
Whats next?
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
11 years 3 months ago #124241
by Yiota
Replied by Yiota on topic Re: error code on Item View page after k2 2.6.8 dev
Sorry I answered about this one as well in the other topic.
Let me know if using the K2 plugin for disqus helped eliminate this notice.
Let me know if using the K2 plugin for disqus helped eliminate this notice.
Please Log in or Create an account to join the conversation.
- fabio
-
- Offline
- New Member
Less
More
- Posts: 1
11 years 2 months ago #124242
by fabio
Replied by fabio on topic Re: error code on Item View page after k2 2.6.8 dev
just a newbie 2 pence... I noticed that the error disappears if comments are allowed.
hence I solved by enabling comments for registered users (in my site there is no registered user).
of course that is no "real" solution...
regards,
hence I solved by enabling comments for registered users (in my site there is no registered user).
of course that is no "real" solution...
regards,
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 2 months ago #124243
by Lefteris
Replied by Lefteris on topic Re: error code on Item View page after k2 2.6.8 dev
@fabio
This is just a notice. Go to Joomla! configuration and set error reporting to "Simple" or "None" to hide the notice.
This is just a notice. Go to Joomla! configuration and set error reporting to "Simple" or "None" to hide the notice.
Please Log in or Create an account to join the conversation.
- Alejandro Arroyave Valencia
-
- Offline
- New Member
Less
More
- Posts: 1
11 years 1 month ago - 11 years 1 month ago #124244
by Alejandro Arroyave Valencia
Replied by Alejandro Arroyave Valencia on topic Re: error code on Item View page after k2 2.6.8 dev
The k2 2.6.8 is the worst version released. I fixed the error changing the line 265 of the view.html.php file by this code:
if (empty($item->comments))
$total = 0;
else
$total = $item->numOfComments;
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month ago #124245
by Lefteris
Replied by Lefteris on topic Re: error code on Item View page after k2 2.6.8 dev
@Alejandro Arroyave Valencia
Instead of complaining this way about a notice in K2 it would be better to submit the fix in K2 repository at GitHub github.com/joomlaworks/k2.
Instead of complaining this way about a notice in K2 it would be better to submit the fix in K2 repository at GitHub github.com/joomlaworks/k2.
Please Log in or Create an account to join the conversation.