Buongiorno a tutti! E' un ottimo giorno perch่ con la freschezza del mattino ho risolto la tediosa questione.
Allora, c'่ un bug noto di Joomla che normalmente avviene dopo gli aggiornamenti, che a causa dell'assenza del record avente id "1" nei record del DB relativi al men๙, restituisce un errore.
L'errore che si riscontra cercando di creare una voce di men๙ ่ il seguente:
Save failed with the following error: JTableMenu: _getNode Failed
Quindi si cerca di risolvere con una query:
INSERT INTO `MyJoomlaDatabase`.`mjd17_menu` (`id` ,`menutype` ,`title` ,`alias` ,`note` ,`path` ,`link` ,`type` ,`published` ,`parent_id` ,`level` ,`component_id` ,`ordering` ,`checked_out` ,`checked_out_time` ,`browserNav` ,`access` ,`img` ,`template_style_id` ,`params` ,`lft` ,`rgt` ,`home` ,`language` ,`client_id` ) VALUES ( 1', , Menu_Item_Root, root, , , , , 1', 0', 0', 0', 0', 0', 0000-00-00 00:00:00', 0', 0', , 0', , 0', 0', 0', *, 0')
Ma ad alcuni questa query non funziona, restituendo questo errore:
#1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near , โ error!#1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near , โ
Dopo una notte insonne con il terrore di non riuscire a risolvere, ho trovato nel forum internazionale di Joomla quest'altra versione della query, che FUNZIONA!
INSERT INTO `nome_db`.`prefisso_menu` (`id` ,`menutype` ,`title` ,`alias` ,`note` ,`path` ,`link` ,`type` ,`published` ,`parent_id` ,`level` ,`component_id` ,`ordering` ,`checked_out` ,`checked_out_time` ,`browserNav` ,`access` ,`img` ,`template_style_id` ,`params` ,`lft` ,`rgt` ,`home` ,`language` ,`client_id` ) VALUES ( '1', '', 'Menu_Item_Root', 'root', '', '', '', '', '1', '0', '0', '0', '0', '0', '0000-00-00 00:00:00', '0', '0', '', '0', '', '0', '0', '0', '*', '0')
Vi faccio notare che le query SEMBRANO identiche, in realtเ nella prima sono stati utilizzati i doppi apici , nella seconda gli apostrofi '' !!!
Spero che questo post vi sia utile!
Un carissimo saluto!