Installing Boonex Core module gets MySQL error

Installation of: Google Search Failed
 
-- Changing database:
-- -- There are errors in the following MySQL queries:
-- -- Error:
INSERT INTO `sys_menu_top`(`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Picture`, `Icon`, `BQuickLink`, `Statistics`) VALUES(NULL, 138, 'Google Search', '_bx_gsearch_menu_title', 'modules/?r=google_search/', @iCatOrder, 'non,memb', '', '', '', 1, 1, 1, 'custom', '', '', 0, '');
Quote · 7 Mar 2014

Is this a new installation?  If so, how was it installed?

Geeks, making the world a better place
Quote · 8 Mar 2014

check the table and make sure that entry does not already exist.

caredesign.net
Quote · 8 Mar 2014

It could be that a previous installation did not complete thus leaving behind the table; which is what Professor is asking you to check.

The error reporting from a failed installation of a module does not give enough information to track down why it failed.

Geeks, making the world a better place
Quote · 8 Mar 2014

I would suppose that there is no "Search" menu item, because module tries to add submenu to this menu item.

Some of the solutions:

- add search menu item back to the main menu

- comment out that line in module installation which adds this submenu link.

Rules → http://www.boonex.com/terms
Quote · 9 Mar 2014

Yeah, this is a pain actually and happens with a lot of modules ... I am forever having to go and remove tables of unistalled modules.

 

It could be that a previous installation did not complete thus leaving behind the table;

 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 9 Mar 2014

New install

Quote · 15 Mar 2014

Found the problem:

The db table has a field "Order" which is a smallint(6), the Google Search install script does not correctly grab that value and tries to insert "@iCatOrder" instead of 4.

Go to /modules/boonex/google_search/install/sql directory and edit the install.sql file.

On line 35 replace @iCatOrder with a 4.

Quote · 15 Mar 2014

New install with standard issue files:

Installation of: Google Search Done
-- Changing database: Done
-- Update languages: Done
-- Recompiling global parameters: Done
-- Recompiling main menu: Done
-- Recompiling page builder: Done
-- Recompiling permalinks: Done
Installation finished
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 15 Mar 2014

Just curious - how did you upload your files to your server, what ftp program did you use? Did you use filezilla by chance?

caredesign.net
Quote · 15 Mar 2014

 

Found the problem:

The db table has a field "Order" which is a smallint(6), the Google Search install script does not correctly grab that value and tries to insert "@iCatOrder" instead of 4.

Go to /modules/boonex/google_search/install/sql directory and edit the install.sql file.

On line 35 replace @iCatOrder with a 4.

 
@iCatOrder is assigned at line 33

SET @iCatOrder := (SELECT MAX(`Order`)+1 FROM `sys_menu_top` WHERE `Parent` = 138 ORDER BY `Order` DESC LIMIT 1);

So if it is not properly finding the order, that would mean it could not find the "Search Home" menu entry which is suppose to have a parent id of 138. My guess it that entry does not exist. It is inserted when dolphin is installed. The only way it would not be there is if it was manually removed.

The modifying of the menu is usually what causes problems with modules when installing menu items.

https://www.deanbassett.com
Quote · 15 Mar 2014

I just had the exact same problem. 

used filezilla - clean install.

 

Gsearch install gave the same error, 

thing is, on the front end the search box was showing after the 'failed' install of the module.

So, applied the above fix, and un-installed it as don't want it. Cleared cache and the search box still shows!...

 

frustrating.

Quote · 8 May 2014

 

I just had the exact same problem. 

used filezilla - clean install.

 

Gsearch install gave the same error, 

thing is, on the front end the search box was showing after the 'failed' install of the module.

So, applied the above fix, and un-installed it as don't want it. Cleared cache and the search box still shows!...

 

frustrating.

 

I had the same issue in 7.0.9

 

Try running this query in phpmyadmin

Let me know if it fails

ALTER TABLE `sys_menu_top` CHANGE `Order` `Order` SMALLINT( 6 ) UNSIGNED NULL DEFAULT '0'


~~Mike ~~ This Signature is missing something :(
Quote · 8 May 2014

I have had problems with using Filezilla to maintain Dolphin and have abandoned using Filezilla completely.  However, if you do want to continue using Filezilla, force all uploads to use binary mode, do not set it to auto, set it to always use binary.

Geeks, making the world a better place
Quote · 8 May 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.