Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Peter Konstantakos Friend
    #127139

    I get this error when previewing the template

    Fatal error: Cannot instantiate non-existent class: jparameter in /home/kdmcons/public_html/templates/ja_edenite/ja_menus/Base.class.php on line 28

    Nam Nguyen Phi Friend
    #243992

    I see what cause of your problem, in file Base.class.php, there is a function called createParameterObject,
    It is written as:

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

    In this function, there are 2 choices to create it.
    The first choice is used for joomla 1.5 with code:

    if(defined( '_JEXEC' )) return new JParameter($param, $path);

    end the second is used for joomla1.0 with code:

    else return new mosParameters($param, $path, $type);

    Normally, the second must be choosen (your site is joomla1.0) but cause of some problem
    (I’m not sure what the problem is) the first is choosen.
    It is waste much time to find what is cause, but you can solve this problem temporary by changging this function as:

    function createParameterObject($param, $path='', $type='menu') {
    return new mosParameters($param, $path, $type);
    }

    And change other functions as similar way.

    lehoai Friend
    #244006

    Good job man,

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

This topic contains 3 replies, has 3 voices, and was last updated by  lehoai 16 years ago.

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