Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • bocaj1 Friend
    #145877

    JA_larix are making this error after PHP 5.3 installation (Joomla 1.5.15)

    Warning: get_class() expects parameter 1 to be object, null given in /customers/krohnsmykker.dk/krohnsmykker.dk/httpd.www/templates/ja_larix/ja_menus/Base.class.php on line 139

    Anyone how can solve this?:confused:

    Anonymous Moderator
    #323662

    Hi bocaj1

    For the case, please submit a ticket, send us your live url, ftp account so that we have a closer look on the issue.

    pixomedia Friend
    #324976

    I have the same problem:

    Warning: get_class() expects parameter 1 to be object, null given in D:xampphtdocskitapkurdutemplatesja_mesoliteja_menusBase.class.php on line 50

    How can I solve this problem?

    Anonymous Moderator
    #325107

    Hi pixomedia

    Please open templatesja_mesolitej a_menusBase.class.php file, at about line 50, find following code section:


    if(strtolower(get_class($menu)) == 'jexception') {
    $menu = @JMenu :: getInstance('site');
    }

    and change to:


    if(!empty($menu) && strtolower(get_class($menu)) == 'jexception') {
    $menu = @JMenu :: getInstance('site');
    }

    nik_one Friend
    #325744

    It worked!!!!!
    i changed the following lines :
    if(strtolower(get_class(@JMenu :: getInstance())) == ‘jexception’) {
    $menu = @JMenu :: getInstance(‘site’);
    }
    to
    if(!empty($menu) && strtolower(get_class(@JMenu :: getInstance())) == ‘jexception’) {
    $menu = @JMenu :: getInstance(‘site’);
    }
    and the warning was gone… 🙂
    thank you very much!!!

    yinamag Friend
    #337478

    This is Great!!!
    Looked all over the internet for a solution to this! And here you have it.

    Thanks a million for this!!!

    olgabad10 Friend
    #343170

    this also works for JA Rutile…

    thanks

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

This topic contains 7 replies, has 6 voices, and was last updated by  olgabad10 14 years, 6 months ago.

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