?
avatar Sulpher
Sulpher
16 Jan 2016

Steps to reproduce the issue

I noticed bunch of such warnings in the error.log:

[Wed Nov 11 05:08:01 2015] [warn] [client 55.30.128.181] mod_fcgid: stderr: PHP Strict Standards: Non-static method JApplicationCms::getMenu() should not be called statically, assuming $this from incompatible context in /var/www/web/libraries/cms/application/site.php on line 272

Expected result

Would be nice to fix the code to avoid such warnings...

Actual result

System information (as much as possible)

Joomla 3.4.8
PHP 5.4.45
Apache + cgi-fcgi

Additional comments

It's not a bug, but would be nice to keep the code clean.

avatar Sulpher Sulpher - open - 16 Jan 2016
avatar bertmert
bertmert - comment - 16 Jan 2016

I only see these messages in combination with messages from buggy 3rd party extensions using soemthing like:

$app = JFactory::getApplication();
$app::getMenu();

instead of

$app = JFactory::getApplication();
$app->getMenu();

The extensions should be fixed, not Joomla I think

avatar Sulpher
Sulpher - comment - 16 Jan 2016

Hello @bertmert,
Thanks for your answer. Yes, there are lot of 3rd party extensions. I'll try to determine which exactly extension have such incorrect code...

avatar bertmert
bertmert - comment - 16 Jan 2016

Normally you should see it one line before the posted message in error_log.

avatar brianteeman brianteeman - change - 19 Jan 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-01-19 18:14:23
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 19 Jan 2016

I am closing this at this time as it appears to be an extension/template issue and not a joomla core issue. It can always be reopened if found to be otherwise


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8910.

avatar brianteeman brianteeman - close - 19 Jan 2016

Add a Comment

Login with GitHub to post a comment