Results 1 to 2 of 2

Thread: Sugar Pro 6.3.0 : Package installation problem

  1. #1
    asavaliya is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    50

    Default Sugar Pro 6.3.0 : Package installation problem

    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
    Last edited by asavaliya; 2011-11-16 at 09:13 AM.

  2. #2
    asavaliya is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    50

    Default Re: Sugar Pro 6.3.0 : Package installation problem

    Hi
    In-place of doing repair and rebuild with "clearAll" option , I just do it for "clearTpls" option.
    It solve the problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Installation problem with sugar crm 5.5.1
    By Jorishc in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2010-04-22, 09:07 AM
  2. Problem with new installation of Sugar and old installation.
    By dennmans in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2009-03-30, 10:29 AM
  3. Problems installing the Windows installation package
    By HuberUAE in forum Installation and Upgrade Help
    Replies: 9
    Last Post: 2007-03-04, 09:21 PM
  4. installation package/template?
    By markiewicz in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-02-26, 07:23 PM
  5. Installation package structure
    By maykelrr in forum Developer Help
    Replies: 1
    Last Post: 2005-11-02, 04:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •