Results 1 to 3 of 3

Thread: Weird php errors

  1. #1
    sebek is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    96

    Default Weird php errors

    Hello I'm noticing weird php errors when going to emailtemplate or emails.

    Using: SUgar CE 5.2e, Suse 11.0, Apache 2.2.8, php 5.2.6 andy mysql 5.0.51a

    Templates work ok, but the errors on top are annoying:

    Code:
    Notice: Undefined index: BASE_MODULE in /srv/www/vhosts/sugar.si/modules/EmailTemplates/EmailTemplate.php on line 277 Call Stack: 0.0000 91832 1. {main}() /srv/www/vhosts/sugarsi/index.php:0 0.2000 14513680 2. SugarApplication->execute() /srv/www/vhosts/sugar.si/index.php:43 0.2800 16120840 3. SugarController->execute() /srv/www/vhosts/sugar.si/include/MVC/SugarApplication.php:92 0.2840 16501376 4. SugarController->processView() /srv/www/vhosts/sugar.si/include/MVC/Controller/SugarController.php:262 0.2840 16544936 5. SugarView->process() /srv/www/vhosts/sugar.si/include/MVC/Controller/SugarController.php:280 0.3440 20463984 6. ViewClassic->display() /srv/www/vhosts/sugar.si/include/MVC/View/SugarView.php:119 0.3440 20463984 7. SugarView->includeClassicFile() /srv/www/vhosts/sugar.si/include/MVC/View/views/view.classic.php:52 0.3440 20471560 8. require_once('/srv/www/vhosts/sugar.si/modules/EmailTemplates/index.php') /srv/www/vhosts/sugar.si/include/MVC/View/SugarView.php:239 0.3480 20532344 9. include('/srv/www/vhosts/sugar.si/modules/EmailTemplates/ListView.php') /srv/www/vhosts/sugar.si/modules/EmailTemplates/index.php:53 0.3560 21992864 10. ListView->processListView() /srv/www/vhosts/sugar.si/modules/EmailTemplates/ListView.php:161 0.3680 23090240 11. ListView->processListViewTwo() /srv/www/vhosts/sugar.si/include/ListView/ListView.php:163 0.3920 23340696 12.
    How to I fix this? I'm not sure if this appeared after 5.2c to 5.2e upgrade.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Weird php errors

    This happens because a missed index validation on this piece of code:

    PHP Code:
            $fields["DATE_MODIFIED"] = substr($fields["DATE_MODIFIED"], 10);
            if(
    $fields['BASE_MODULE']!='') {
                
    $fields['BASE_MODULE'] = $app_list_strings['moduleList'][$fields['BASE_MODULE']];
            } 
    You may edit your php.ini to do not display notice messages.

    Kind regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    sebek is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    96

    Default Re: Weird php errors

    Thank you...programers enabled some php debugging.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Weird abort in 5.2 CE
    By harlow in forum Help
    Replies: 4
    Last Post: 2009-05-18, 12:48 PM
  2. Weird errors
    By moufarrege in forum Help
    Replies: 0
    Last Post: 2009-03-19, 02:52 PM
  3. Weird schedule bug in 5.0.0b
    By sbantz in forum Help
    Replies: 1
    Last Post: 2008-03-26, 01:28 AM
  4. !!! Please Help !!! Weird issues
    By pdaalder in forum Help
    Replies: 0
    Last Post: 2007-07-18, 11:52 AM
  5. Weird IE Bug: ssl warnings
    By andreasw in forum Help
    Replies: 4
    Last Post: 2006-01-19, 09:04 AM

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
  •