Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: JCommentsContentPluginHelper' not found in static content
Pages: [1]   Go Down
  Print  
Author Topic: JCommentsContentPluginHelper' not found in static content  (Read 3186 times)
0 Members and 1 Guest are viewing this topic.
hybeuz
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« on: April 06, 2011, 22:32:50 »

I was trying to make a privacy policy page which should be a static content. But when i load the page i have this

Fatal error: Class 'JCommentsContentPluginHelper' not found in /home//public_html/templates//html/com_content/article/default.php on line 286

using joomla 1.5.22


Code:
<?php

    
$comments JPATH_SITE '/components/com_jcomments/jcomments.php';
if (file_exists($comments) ) :
require_once($comments);
        if (
JCommentsContentPluginHelper::checkCategory($this->article->catid) && (JCommentsContentPluginHelper::isEnabled($this->articlefalse) || !JCommentsContentPluginHelper::isDisabled($this->articlefalse))):
$jcomment_count JComments::getCommentsCount($this->article->id'com_content');

?>

Can somebody help pls
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: April 19, 2011, 03:42:52 »

You have to include JComments content plugin helper. Add after line:

Code: (php)
require_once($comments);
next line:
Code: (php)
include_once(JPATH_SITE.'/components/com_jcomments/helpers/content.php');
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
hybeuz
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #2 on: April 19, 2011, 22:28:14 »

Thnks it works fine now
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: JCommentsContentPluginHelper' not found in static content
 
Jump to: