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: [Solved] Not work with content page
Pages: [1]   Go Down
  Print  
Author Topic: [Solved] Not work with content page  (Read 4757 times)
0 Members and 1 Guest are viewing this topic.
auksiniz
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: August 27, 2009, 13:16:57 »

The jcomments component working with ponygallery ant etc. But not working with content pages. If i enable mambots. I give error: "Fatal error: Class 'JCommentsFactory' not found in .../public_html/components/com_jcomments/helpers/plugin.php on line 84".

In the 84 line is bold:
function getParams($pluginName, $type = 'content')
   {
   
      if (JCOMMENTS_JVERSION == '1.5') {
          $plugin   = & JPluginHelper::getPlugin($type, $pluginName);
          $pluginParams = new JParameter($plugin->params);
      } else {
         static $mambotParams = array();
         $paramKey = $type . '_' . $pluginName;

         if (!isset($mambotParams[$paramKey])) {
            $dbo = & JCommentsFactory::getDBO();
            $dbo->setQuery("SELECT params FROM #__mambots WHERE element = '$pluginName' AND folder = '$type'");
            $mambotParams[$paramKey] = $dbo->loadResult();
         }

         $data = $mambotParams[$paramKey];
         $pluginParams = new mosParameters($data);
      }
      return $pluginParams;
   }



How fix with problem?
« Last Edit: August 27, 2009, 21:31:47 by smart » Logged
smart
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« Reply #1 on: August 27, 2009, 17:28:10 »

Add before this bold line next code:

Code: (php)
include_once (JCOMMENTS_BASE . DS . 'jcomments.class.php');
Logged

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

Karma: 0
Offline Offline

Posts: 2


« Reply #2 on: August 27, 2009, 20:57:45 »

Thank, work Smiley
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: [Solved] Not work with content page
 
Jump to: