Results 1 to 3 of 3

Thread: Undefined Index when adding subpanels to EditView

  1. #1
    njoy is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    20

    Unhappy Undefined Index when adding subpanels to EditView

    Hi,
    I have a nagging problem thatjust wont die easily. I have an undefined index error ever since i added SubPanels to Editview of my Contacts Module.
    Undefined index: main_sub in ../sugarcrm/XTemplate/xtpl.php on line 229.Also i'm being redirected to the e-mails module. To be precise .../sugar/index.php?module=Emails&action=PessimisticLock&use r=. the changes i made were based on an earlier post at this location http://www.sugarcrm.com/forums/showt...light=Editview. Can someone plz tell me wht to do?
    Here's some more info..
    Sugar Open Source Version 4.2.1b
    SugarSuite
    Contacts Module
    MySQL - 4.1.11
    Apache 2.0

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: Undefined Index when adding subpanels to EditView

    Quote Originally Posted by njoy
    Hi,
    I have a nagging problem thatjust wont die easily. I have an undefined index error ever since i added SubPanels to Editview of my Contacts Module.
    Undefined index: main_sub in ../sugarcrm/XTemplate/xtpl.php on line 229.Also i'm being redirected to the e-mails module. To be precise .../sugar/index.php?module=Emails&action=PessimisticLock&use r=. the changes i made were based on an earlier post at this location http://www.sugarcrm.com/forums/showt...light=Editview. Can someone plz tell me wht to do?
    Here's some more info..
    Sugar Open Source Version 4.2.1b
    SugarSuite
    Contacts Module
    MySQL - 4.1.11
    Apache 2.0
    Change the error reporting in your php.ini file to not display notices. The undefined error will go away and so might the rest of the problem. That messes with the output buffer and can screw things up.

    I think it's ~E_NOTICES but you'll want to double check.

  3. #3
    njoy is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    20

    Default Re: Undefined Index when adding subpanels to EditView

    Thanks but i finally got it figured out. The problem was that i had customized the EditView Form, so i had commented certain fields including the Form tags which i later understood were necessary. I do not know why there are two closing form tags ie </form> but i gather that they are necessary. I would be helpful if someone could explain it so that not only me future posters benefit from it

Thread Information

Users Browsing this Thread

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

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
  •