HI forum
I have installed custom modules package successfully on Sugar Pro 6.2.0,6.2.3.
I have uploaded it on Sugar Pro 6.3.0.It fires following error in sugarcrm.log
Error :
Query Failed: INSERT into upgrade_history set : MySQL 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 '' at line 1
This error is generated only in case when i do repair and rebuild with code in post_install function
Code for repair and rebuild in post_install.php
$randc = new RepairAndClear();
$randc->repairAndClearAll(array('clearAll'),array(transla te('LBL_ALL_MODULES')), false,true);
If I remove code for repair and rebuild and upload package then there is no error.
I try to check code of sugar.I found that in first case ( repair and rebuild ) field defs for UpgradeHistory
is not loaded. So in Save function of SugarBean class query to save package installation history is not created fully.
Location where UpgradeHistory object is created and used to save information.
File :
modules/Administration/UpgradeWizard_commit.php
line num : 421
While in second case ( no repair and rebuild ) field defs is there so query to save information regarding package is also right.
Please let me know if any body has suggestion regarding this.
asavaliya
iNetProcess
-----------------------------------------------
Environment : LAMP


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks