Results 1 to 5 of 5

Thread: Undefined index: Not Started in /modules/Calendar/templates/templates_calenda

  1. #1
    ddent is offline Junior Member
    Join Date
    Apr 2005
    Posts
    1

    Default Undefined index: Not Started in /modules/Calendar/templates/templates_calenda

    I had to upgrade my server because it was dying, after moving SugarCRM over, I get the following error when viewing calendar by month:

    Notice: Undefined index: Not Started in /home/websites/sales/modules/Calendar/templates/templates_calendar.php on line 116

    It apears on almost every day in the calendar. Any help with this???

  2. #2
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Undefined index: Not Started in /modules/Calendar/templates/templates_calenda

    Is this happening in English, or other language? It seems this warning is usually shown when a key is not defined in the corresponding language file while it's defined in the English lang.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  3. #3
    dand is offline Sugar Community Member
    Join Date
    Jan 2005
    Posts
    25

    Default Re: Undefined index: Not Started in /modules/Calendar/templates/templates_calenda

    it is happening in the english language. That is all that it has ever been set to. Basically all I had done was archive my sugar directory (tar.gz) and moved it to another server. Used phpMyAdmin to dump the database to the new server. It should have worked fine, I'm not really sure what the index problem is. Any help would be awesome, this is really causing me some annoyances and I can't get rid of it.

    Thanks in advance!

  4. #4
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Undefined index: Not Started in /modules/Calendar/templates/templates_calenda

    There is a definition in include\language\en_us.lang.php about the call status;

    'call_status_dom' =>
    array (
    'Planned' => 'Planned',
    'Held' => 'Held',
    'Not Held' => 'Not Held',
    ),

    where Planned, Held, Not Held are status keys.

    But it seems that your call table has a different status key "Not Started" in the status column for some reason.

    Did you customize the call_status_dom dropdown list to add a new key "Not Started" before your server died? If so, a new language file shoud have resided in the custom\include\language directory, and it is possible that the language file was not copied to the new server.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  5. #5
    dand is offline Sugar Community Member
    Join Date
    Jan 2005
    Posts
    25

    Default Re: Undefined index: Not Started in /modules/Calendar/templates/templates_calenda

    Thanks for the help. I figured out the problem thanks to your help, the reason was that I had modified /modules/Calendar/templates/templates_calendar.php a long time ago because the tasks would always show "Due:" on the calendar instead of the status. I basically just replaced the hardcoded "Due:" with the actual task's status. Anyway, the alt tag had was pointing to meeting dom instead of task dom and giving the error. I have no idea why my old server wasn't spitting out the same error, but everything is cool now. I think I'm too use to having Unit Tests in my Java/Freemarker/Spring/Aurora/Hibernate world

    Anyway, thanks for the help!!!

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
  •