Ho trasferito due siti da remoto a locale, ma mentre il primo funziona perfettamente come nel remoto, il secondo quando vado come amministratore ad aprire il menu oppure gli articoli oppure qualsiasi altra cosa, oltre a non visualizzare tutta la lista sopra alla linea dei pulsanti mi dà la scritta seguente.
Strict Standards: Declaration of JButtonPopup::fetchId() should be compatible with that of JButton::fetchId() in C:\xampp\htdocs\animazioni\libraries\joomla\html\toolbar\button\popup.php on line 78
Di quanto sopra ho immaginato che il file popup.php contenga un errore alla posizione 78 e per questo ho aperto il file, ho controllato la riga 78 e l'unica cosa che a me sembra è che ci sia una parentesi di troppo proprio a quella posizione.
Ecco il ciclo contenente il codice con tutte le parentesi:
class JButtonPopup extends JButton
{
/**
* Button type
*
* @access protected
* @var string
*/
protected $_name = 'Popup';
public function fetchButton($type='Popup', $name = '', $text = '', $url = '', $width=640, $height=480, $top=0, $left=0, $onClose = '')
{
JHtml::_('behavior.modal');
$text = JText::_($text);
$class = $this->fetchIconClass($name);
$doTask = $this->_getCommand($name, $url, $width, $height, $top, $left);
$html = "<a class=\"modal\" href=\"$doTask\" rel=\"{handler: 'iframe', size: {x: $width, y: $height}, onClose: function()
$html .= "<span class=\"$class\">\n";
$html .= "</span>\n";
$html .= "$text\n";
$html .= "\n";
return $html;
}
/**
* Get the button id
*
* Redefined from JButton class
*
* @access public
* @param string $name Button name
* @return string Button CSS Id
* @since 1.5
*/
public function fetchId($type, $name)
{
return $this->_parent->getName().'-'."popup-$name";
}
/**
* Get the JavaScript command for the button
*
* @access private
* @param object $definition Button definition
* @return string JavaScript command string
* @since 1.5
*/
protected function _getCommand($name, $url, $width, $height, $top, $left)
{
if (substr($url, 0, 4) !== 'http') {
$url = JURI::base().$url;
}
return $url;
}
}
L'ultima parentesi è quella a posizione 78.Qualcuno mi può dare una conferma di questo? Oppure si tratta di un'altra ragione?