Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • chrispay Friend
    #131710

    I’ve just added PhP5 to my dedicated server as a number of components I wanted to add to JA Barite wouldn’t work without it. I added PhP5 then used the .htaccess include statement:-

    AddHandler application/x-httpd-php5 .php

    However, I now have the following error:-

    Fatal error: Class ‘mosParameters’ not found in /home/…/ja_menus/Base.class.php on line 29

    Does JA Barite specifically need PhP4, or is this something else?

    Sherlock Friend
    #263720

    Hi
    If you use Joomla 1.5
    Plz edit Base.class.php
    Search those lines:

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

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

    Change to

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

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

    chrispay Friend
    #263756

    Many thanks – that did the trick.:D

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

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

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