Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • travisdh Friend
    #131082

    Hello.

    I have just tried to install the template on a localhost site and get the following error:

    Fatal error: Class ‘JParameter’ not found in C:wampwwwtemplatesja_kulaniteja_menusBase.class.php on line 28

    From what i can see it only happens in windows which suggests that maybe jParameter is not properly defined in php for windows?

    Anyone else having this problem or has any suggestions on how it can be fixed?

    Kind Regards – Trav.

    Sherlock Friend
    #260935

    Hi
    Plz edit Base.class.php
    Search those lines:

    function loadMenu(){
    if(defined( '_JEXEC' )) $this->loadMenu_15();
    else $this->loadMenu_10x();
    }

    function createParameterObject($param, $path='', $type='menu') {
    if(defined( '_JEXEC' )) return new JParameter($param, $path);
    else return new mosParameters($param, $path, $type);
    }

    function getPageTitle ($params) {
    if(defined( '_JEXEC' )) return $params->get ('page_title');
    else return $params->get ('header');
    }

    Change to

    function loadMenu(){
    //if(defined( '_JEXEC' )) $this->loadMenu_15();
    //else
    $this->loadMenu_10x();
    }

    function createParameterObject($param, $path='', $type='menu') {
    //if(defined( '_JEXEC' )) return new JParameter($param, $path);
    //else
    return new mosParameters($param, $path, $type);
    }

    function getPageTitle ($params) {
    //if(defined( '_JEXEC' )) return $params->get ('page_title');
    //else
    return $params->get ('header');
    }

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Sherlock 16 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum