Keyword

error code on Item View page after k2 2.6.8 dev

  • John Dunstan
  • John Dunstan's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago #124238 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

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

More
10 years 8 months ago - 10 years 8 months ago #124239 by Lefteris
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • John Dunstan
  • John Dunstan's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 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?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124241 by Yiota
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.

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

More
10 years 6 months ago #124242 by fabio
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,

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

More
10 years 6 months ago #124243 by Lefteris
@fabio

This is just a notice. Go to Joomla! configuration and set error reporting to "Simple" or "None" to hide the notice.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Alejandro Arroyave Valencia
  • Alejandro Arroyave Valencia's Avatar
  • Offline
  • New Member
More
10 years 5 months ago - 10 years 5 months 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.

More
10 years 5 months ago #124245 by Lefteris
@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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum