I am building a website with Joomlashine template JSN Escape Pro.
I am using K2 for the blog section of the website.
I wanted threaded comments so decided to replace the default K2 Comments with CComments Core.
CComments component installs fine (from com_comment-5.0rc1-core.zip).
In CComment Settings I have added com_k2.
Now if I go into Plug-ins and enable K2 Plugin - CComment, when I refresh my blog page, I get these errors ...
Warning: Invalid argument supplied for foreach() in /home/intuit12/public_html/templates/jsn_escape_pro/html/com_k2/templates/default/item.php on line 338
Fatal error: Call to a member function getPagesLinks() on a non-object in /home/intuit12/public_html/templates/jsn_escape_pro/html/com_k2/templates/default/item.php on line 373
Here is what's around line 338 in the items.php file (line 338 is bolded):
<!-- Item user comments -->
<h3 class="itemCommentsCounter"> <span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?> </h3>
<ul class="itemCommentsList">
<?php foreach ($this->item->comments as $key=>$comment): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; echo (!$this->item->created_by_alias && $comment->userID==$this->item->created_by) ? " authorResponse" : ""; echo($comment->published) ? '':' unpublishedComment'; ?>">
When I disable K2 Plugin - CComment, the problem goes away.
Thanks for any help you can provide.
- Steve Genco
-
- Bugs
- Tuesday, 21 May 2013
- Subscribe via email
- Page :
- 1
There are no replies made for this post yet.
However, you are not allowed to reply to this post.
However, you are not allowed to reply to this post.
Last questions
We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
2 Replies
Posted on Tuesday, 30 April 2024
Hallo,
ich habe eine Frage in Bezug auf SEO: ein externer Spezialist macht die...
1 Replies
Posted on Monday, 29 April 2024
Hallo
ich habe eine kleine Frage: wo kann ich einstellen, dass Google die Seite...
1 Replies
Posted on Wednesday, 24 April 2024
Are you able to make changes to the Hotspot submission form? There are several f...
0 Replies
Posted on Friday, 26 April 2024
How do I access custom fields after I have created them?...
0 Replies
Posted on Wednesday, 24 April 2024
- #custom fields