×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Bug? On reinstall of a component I get
Ryan
New Member
Posts: 7
7 anos 2 meses atrás #1631
por Ryan
Bug? On reinstall of a component I get foi criado por Ryan
This is on Joomla 3.7.5 Installed once fine ... uninstalled and reinstalled and I get a menu error.
No administrator menu is shown but component says it installs.
Message
Plugin speechies was installed successfully
Module mod_speechies was installed successfully
Installation of the component was successful.
Error
JTableMenu::_getNode(1, ) failed.
Warning
Error building Administrator Menus.
No administrator menu is shown but component says it installs.
Message
Plugin speechies was installed successfully
Module mod_speechies was installed successfully
Installation of the component was successful.
Error
JTableMenu::_getNode(1, ) failed.
Warning
Error building Administrator Menus.
Por favor Acessar ou Registrar para participar da conversa.
Ryan
New Member
Posts: 7
7 anos 2 meses atrás #1632
por Ryan
Respondido por Ryan no tópico Bug? On reinstall of a component I get
It looks like the first 3 records of the #__menu table have been removed on the uninstall process.
I noticed there was an error with my views on first creation, it seems when cloning database tables changing the name of the table doesnt change the name for the view. This caused errors with my views and a double up .... which in turn has probably messed up the uninstall process.
running ...
INSERT INTO `DATABASE`.`PREFIX_menu` (`id` ,`menutype` ,`title` ,`alias` ,`note` ,`path` ,`link` ,`type` ,`published` ,`parent_id` ,`level` ,`component_id` ,`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', '0000-00-00 00:00:00', '0', '0', '', '0', '', '0', '0', '0', '*', '0')
Rebuilds the first row and makes you able to install the component again. I will have to manually fix up the other missing com_banner records.
I noticed there was an error with my views on first creation, it seems when cloning database tables changing the name of the table doesnt change the name for the view. This caused errors with my views and a double up .... which in turn has probably messed up the uninstall process.
running ...
INSERT INTO `DATABASE`.`PREFIX_menu` (`id` ,`menutype` ,`title` ,`alias` ,`note` ,`path` ,`link` ,`type` ,`published` ,`parent_id` ,`level` ,`component_id` ,`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', '0000-00-00 00:00:00', '0', '0', '', '0', '', '0', '0', '0', '*', '0')
Rebuilds the first row and makes you able to install the component again. I will have to manually fix up the other missing com_banner records.
Por favor Acessar ou Registrar para participar da conversa.
Ryan
New Member
Posts: 7
7 anos 2 meses atrás #1633
por Ryan
Respondido por Ryan no tópico Bug? On reinstall of a component I get
Confirming this bug fix.
Fixing the component view name of the table you cloned (so its not the same as the clone). and running the sql to fix the missing records
INSERT INTO `DATABASE`.`PREFIX_menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `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, '0000-00-00 00:00:00', 0, 0, '', 0, '', 0, 123, 0, '*', 0),
(2, 'main', 'com_banners', 'Banners', '', 'Banners', 'index.php?option=com_banners', 'component', 1, 1, 1, 4, 0, '0000-00-00 00:00:00', 0, 0, 'class:banners', 0, '', 1, 10, 0, '*', 1),
(3, 'main', 'com_banners', 'Banners', '', 'Banners/Banners', 'index.php?option=com_banners', 'component', 1, 2, 2, 4, 0, '0000-00-00 00:00:00', 0, 0, 'class:banners', 0, '', 2, 3, 0, '*', 1);
then reinstalling the fixed built component. Will have no errors.
Fixing the component view name of the table you cloned (so its not the same as the clone). and running the sql to fix the missing records
INSERT INTO `DATABASE`.`PREFIX_menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `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, '0000-00-00 00:00:00', 0, 0, '', 0, '', 0, 123, 0, '*', 0),
(2, 'main', 'com_banners', 'Banners', '', 'Banners', 'index.php?option=com_banners', 'component', 1, 1, 1, 4, 0, '0000-00-00 00:00:00', 0, 0, 'class:banners', 0, '', 1, 10, 0, '*', 1),
(3, 'main', 'com_banners', 'Banners', '', 'Banners/Banners', 'index.php?option=com_banners', 'component', 1, 2, 2, 4, 0, '0000-00-00 00:00:00', 0, 0, 'class:banners', 0, '', 2, 3, 0, '*', 1);
then reinstalling the fixed built component. Will have no errors.
Os seguintes usuário(s) disseram Obrigado: Steven Fung
Por favor Acessar ou Registrar para participar da conversa.
Ryan
New Member
Posts: 7
7 anos 2 meses atrás #1639
por Ryan
Respondido por Ryan no tópico Bug? On reinstall of a component I get
Thanks but given the nature of the project I am unable to share the site.
Por favor Acessar ou Registrar para participar da conversa.
Steven Fung
New Member
Posts: 2
6 anos 9 meses atrás #1731
por Steven Fung
Respondido por Steven Fung no tópico Bug? On reinstall of a component I get
Had the same problem as you after cloning a table and forgetting to rename it before installing. Uninstalled the component, Inserted the 3 rows as you instructed and was able to reinstall the component with the renamed tables.
Thanks
Thanks
Por favor Acessar ou Registrar para participar da conversa.
Søren Beck Jensen
Administrator
Posts: 81
6 anos 8 meses atrás #1754
por Søren Beck Jensen
Søren Beck Jensen
Founder, Component-Creator.com
Respondido por Søren Beck Jensen no tópico Bug? On reinstall of a component I get
We have finally tracked down this issue.
You can read more about it here:
github.com/Jensen-Technologies/component...or-issues/issues/253
and here
github.com/joomla/joomla-cms/issues/19788
You can read more about it here:
github.com/Jensen-Technologies/component...or-issues/issues/253
and here
github.com/joomla/joomla-cms/issues/19788
Søren Beck Jensen
Founder, Component-Creator.com
Os seguintes usuário(s) disseram Obrigado: Ryan, Steven Fung
Por favor Acessar ou Registrar para participar da conversa.
Tempo para a criação da página:0.058 segundos