Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Fatal error: Class 'YOOTemplateParameter' not found in /home/joomlaco/public_html/templates/yoo_flux

More
15 years 7 months ago - 15 years 7 months ago #93421 by andhe7
Hello

Someone could help me I get this error when entering that forum Kunena
isntalar just not like me change the template, I can do
thank you very much.



Fatal error: Class 'YOOTemplateParameter' not found in /home/joomlaco/public_html/templates/yoo_flux/html/mod_mainmenu/yoomenu.php on line 53

Code:
<?php /** * @package yoo_flux Template * @version 1.5.0 2009-07-31 18:05:52 * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) 2007 - 2009 YOOtheme GmbH */ // no direct access defined('_JEXEC') or die('Restricted access'); // include default decorator require_once(dirname(__FILE__).'/decorator/default.php'); jimport('joomla.filesystem.file'); class YOOMenu { var $params; function YOOMenu() { $this->params = null; } function &getInstance() { static $instance; if ($instance == null) { $instance = new YOOMenu(); } return $instance; } function getParams() { return $this->params; } function setParams(&$val) { return $this->params = $val; } function render(&$params, $callback) { $suffix = $params->get('class_sfx'); // compatibility for suffix like 'accordion' and 'dropdown' without 'menu-' if (!strpos($suffix, '-')) { $suffix = 'menu-'.$suffix; } // use custom menu output $param = new YOOTemplateParameter($suffix); $menu = strtolower($param->get('menu')); if (in_array($menu, array('accordion', 'dropdown'))) { // include decorator require_once(dirname(__FILE__)."/decorator/$menu.php"); // generate menu output $xml = modMainMenuHelper::getXML($params->get('menutype'), $params, 'YOOMenu'.ucfirst($menu).'Decorator'); if ($xml) { $xml->addAttribute('class', 'menu '.$suffix); if ($tagId = $params->get('tag_id')) { $xml->addAttribute('id', $tagId); } $result = JFilterOutput::ampReplace(YOOMenuXMLHelper::XMLtoString($xml, (bool) $params->get('show_whitespace'))); $result = str_replace(array('<ul/>', '<ul />'), '', $result); echo $result; } return; } // use default joomla menu output modMainMenuHelper::render($params, $callback); } } class YOOMenuXMLHelper { function addChild(&$node, &$child) { $name = $child->name(); if (!isset($node->$name)) { $node->$name = array(); } $child->_level = $node->level() + 1; $node->{$name}[] =& $child; $node->_children[] =& $child; } function wrapChildren(&$node, &$wrapper, $tag = null) { $names = array(); // copy children foreach ($node->_children as $i => $child) { $name = $child->name(); if ($tag != null && $tag != $name) { continue; } if (!in_array($name, $names)) { $names[] = $name; } if (!isset($wrapper->$name)) { $wrapper->$name = array(); } $wrapper->{$name}[] =& $node->_children[$i]; $wrapper->_children[] =& $node->_children[$i]; unset($node->_children[$i]); } // update node foreach ($names as $name) { unset($node->{$name}); } // add wrapper to node $wrapper->_level = $node->level() + 1; $name = $wrapper->name(); if (!isset($node->$name)) { $node->$name = array(); } $node->{$name}[] =& $wrapper; $node->_children = array_merge($node->_children, array($wrapper)); } function XMLtoString(&$node, $whitespace = true) { // Start a new line, indent by the number indicated in $node->level, add a <, and add the name of the tag $out = $whitespace ? "\n".str_repeat("\t", $node->_level) : ''; // Output prefix if (isset($node->_prefix)) { $out .= $node->_prefix; } // Start tag $out .= '<'.$node->_name; // For each attribute, add attr="value" foreach($node->_attributes as $attr => $value) { $out .= ' '.$attr.'="'.htmlspecialchars($value).'"'; } // If there are no children and it contains no data, end it off with a /> if (empty($node->_children) && empty($node->_data)) { $out .= " />"; } else { // If there are children if(!empty($node->_children)) { // Close off the start tag $out .= '>'; // For each child, call the asXML function (this will ensure that all children are added recursively) foreach($node->_children as $child) $out .= YOOMenuXMLHelper::XMLtoString($child, $whitespace); // Add the newline and indentation to go along with the close tag if ($whitespace) { $out .= "\n".str_repeat("\t", $node->_level); } } // If there is data, close off the start tag and add the data elseif(!empty($node->_data)) $out .= '>'.htmlspecialchars($node->_data); // Add the end tag $out .= '</'.$node->_name.'>'; } // Output suffix if (isset($node->_suffix)) { $out .= $node->_suffix; } // Return the final output return $out; } }
Last edit: 15 years 7 months ago by andhe7.

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

More
15 years 7 months ago #93422 by sozzled
G'day, andhe7, and welcome to Kunena.

Why did you post your question in an "archive" category? Archived categories are for resolved (i.e. solved) issues. Please read the category description in order to help you select the best category that suits your question.

If you have a YOOtheme problem perhaps you should ask the people who develop YOOtheme templates. In what way is this a Kunena issue? Other people do not have these problems (probably because other people do not use YOOtheme templates). When was this YOOtheme template developed. Did you read K 1.6 Technical Requirements and, especially, read about Mootools?
The following user(s) said Thank You: camsarim

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

Time to create page: 0.110 seconds