-
AuthorPosts
-
November 9, 2009 at 9:43 am #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 139Anyone how can solve this?:confused:
Anonymous
Moderator
JA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
November 16, 2009 at 3:08 am #323662Hi 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.
November 25, 2009 at 3:19 pm #324976I 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
JA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
November 27, 2009 at 6:54 am #325107Hi 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');
}
December 4, 2009 at 5:48 pm #325744It 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!!!March 23, 2010 at 7:50 pm #337478This is Great!!!
Looked all over the internet for a solution to this! And here you have it.Thanks a million for this!!!
-
AuthorPosts
This topic contains 7 replies, has 6 voices, and was last updated by olgabad10 14 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum