Joomla.it Forum

Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => : tecnohosting 01 Aug 2005, 16:49:27

: Problema con componente MOS Ristoranti 1.1
: tecnohosting 01 Aug 2005, 16:49:27
Salve; su versione Mambo 4.5.2.3 Stable ho installato il componente MOS Ristoranti 1.1 quando clicco in amministrazione del componente su "Gestione Ristoranti" mi dà il seguente errore:

Fatal error: Non-static method MENU_Default::MENU_Default() cannot be called statically in /home/.sites/33/site5/web/administrator/components/com_restaurant/toolbar.restaurant.php on line 51

Chi mi può dare un'aiutino?

Sergio
: Re: Problema con componente MOS Ristoranti 1.1
: tecnohosting 01 Aug 2005, 19:00:21
Soluzione trovata.. praticamente il problema si prsenta con la versione di PHP5.0.

La Soluzione è modificare il codice nel seguente file:

/administrator/includes/toolbar.html.php

con:

------------------------------------------------------
<?php
   /**
   * @version $Id: toolbar.html.php,v 1.3 2004/08/26 05:20:52 rcastley Exp $
   * @package Mambo_4.5.1
   * @copyright (C) 2000 - 2004 Miro International Pty Ltd
   * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
   * Mambo is Free Software
   */
   
   /**
   * @package Mambo_4.5.1
   */
   
   class MENU_Default {
      /**
      * Class constructor
      */
      
      function __construct(){
      }
      
      /**
      * Draws a default set of menu icons
      */
      public static function MENU_Default() {
         mosMenuBar::startTable();
         mosMenuBar::publishList();
         mosMenuBar::unpublishList();
         mosMenuBar::divider();
         mosMenuBar::addNew();
         mosMenuBar::editList();
         mosMenuBar::deleteList();
         mosMenuBar::spacer();
         mosMenuBar::endTable();
      }
   }
   
   ?>
---------------------------------------------

Sergio
: Re: Problema con componente MOS Ristoranti 1.1
: ste 01 Aug 2005, 19:12:32
Grande Sergio! hai risolto da solo   ;)
Io a dir la verità sarei curiosa di vedere questo componente, ma non riesco a trovarlo  ???
: Re: Problema con componente MOS Ristoranti 1.1
: tecnohosting 01 Aug 2005, 19:56:54
Grande Sergio! hai risolto da solo   ;)
Io a dir la verità sarei curiosa di vedere questo componente, ma non riesco a trovarlo  ???

Ciao; lo puoi scaricare nella sezione download qui:
http://www.mamboserver.it/index.php?option=com_remository&Itemid=16&func=selectfolder&cat=27
: Re: Problema con componente MOS Ristoranti 1.1
: ste 01 Aug 2005, 22:02:32
opssssssssssssssssssss
ecco cosa succede a guardar le cose di fretta ;D
grazie
ciao