The Joomla! Forum ™



Forum rules


Please use the official Bug Tracker to report a bug: http://joomlacode.org/gf/project/joomla ... er_id=8103



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Mar 17, 2012 4:50 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Feb 19, 2012 3:34 pm
Posts: 5
I get an error when ever I try to rebuild the menus.

OS: Windows IIS 7
PHP version 5.4.0
Joomla version 2.5.2

Error: PHP Strict Standards: Declaration of MenusControllerMenus::getModel() should be compatible with JController::getModel($name = '', $prefix = '', $config = Array) in {Path to my Joom!a intall folder}\administrator\components\com_menus\controllers\menus.php on line 166

Description: When I go to the Menu Manager, and check any menu and click "Rebuild" button. I receive the error above.

My proposed fix is to change line 36 in the file '\administrator\components\com_menus\controllers\menus.php' from:

Code:
   function &getModel($name = 'Menu', $prefix = 'MenusModel')

to:
Code:
   function &getModel($name = 'Menu', $prefix = 'MenusModel', $p_config = NULL )

Which then allowed me to build the menus without Error. I assume the PHP does not allow you to override a method in a parent object and use a different signature.


Top
 Profile  
 
PostPosted: Sat Mar 17, 2012 5:37 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
I can't reproduce this Strict Standards error on trunk.
Nevertheless, please open a Tracker on joomlacode
http://joomlacode.org/gf/project/joomla ... er_id=8103

Thanks.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sun Mar 18, 2012 12:53 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Feb 19, 2012 3:34 pm
Posts: 5
I only got this in my DEV environment, which has "error_reporting = E_ALL."

I added it to the tracker, http://joomlacode.org/gf/project/joomla ... m_id=28262


Top
 Profile  
 
PostPosted: Sun Mar 18, 2012 5:58 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
Yep, you are using php 5.4. This is the reason.
We will get a patch for that real soon as 9 files are concerned, not only one.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group