Results 1 to 4 of 4

Thread: TeamsOS + Attachments + Non EN_US lang = No good :(

  1. #1
    ditman is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    25

    Unhappy TeamsOS + Attachments + Non EN_US lang = No good :(

    Hi there, I'm having some trouble uploading files when the language for SugarCRM is NOT set to EN_US.

    I can get the following error from my web server:

    [Tue Mar 27 12:45:35 2007] [error] [client XXX.XXX.XXX.XXX] PHP Fatal error: TeamFormBase::require_once() [<a href='function.require'>function.require</a>]: Failed opening required '' (include_path='.:/usr/share/pear') in /var/www/vhost/xxx/home/html/sf2/modules/TeamsOS/TeamFormBase.php on line 66, referer: http://xxx/sf2/index.php

    In that file I can see the following code:

    Code:
       $object_name = $app_list_strings['moduleListSingular'][$_REQUEST['return_module']];
       $GLOBALS['log']->debug("SubPanel Save: Parent Bean Name (".$object_name.")");
       $bean_name=$beanFiles[$object_name];
       $GLOBALS['log']->debug("SubPanel Save: Parent Bean file (".$bean_name.")");
       $class_name=$beanList[$_REQUEST['return_module']];
       $GLOBALS['log']->debug("SubPanel Save: Parent Class Name (".$class_name.")");
       require_once($bean_name);
    And I believe that somehow, It's NOT filling properly that $bean_name variable with the correct name for the module.

    How can I fix this?

    OS: Fedora Core 5
    Sugar: 4.5.1 (not "b" yet)
    TeamsOS: suitable for 4.5.1 as the rest is working

    Thanks!

  2. #2
    ditman is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    25

    Default Re: TeamsOS + Attachments + Non EN_US lang = No good :(

    By the way, the error manifests itself by printing "Leads" on screen. The HTML code generated by Sugar ends there, and I've found that little "echo $_REQUEST['return_module']" on the PHP file that is killing me today :P

  3. #3
    ditman is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    25

    Talking Re: TeamsOS + Attachments + Non EN_US lang = No good :(

    Well, finally I found it...

    The problem was on the ES_ES translation that I had downloaded and maybe touched (can't remember right now).

    They translated the "moduleListSingular" array inside include/language/es_es.php file, so TeamOS module couldn't find the proper SugarBean to jump back to the subtab that it had to.

    I restored the proper "moduleListSingular" array from the en_us.php file, and rebuilt the Javascript Language files from the admin area, and we were all set

    I'm still holding my breath tho... xD I've just had a nice SugarCRM debugging session for today (^_^)

    Cheers!

  4. #4
    joan.galvis is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    14

    Talking Re: TeamsOS + Attachments + Non EN_US lang = No good :(

    Tuve el mismo problema con el TeamOS y la traduccion al espaņol, lo solucione modificando el archivo TeamFormBase.php en el modulo TeamOS, la modificacion fue la siguiente:

    en la funcion

    function add_team_if_needed(&$bean, $event, $arguments)
    {
    include_once('include/modules.php');
    include_once('modules/TeamsOS/TeamOS.php');
    $teams_focus = new TeamOS;
    .....................

    .....................


    if($_REQUEST['module'] != $_REQUEST['return_module'] &&
    empty($_REQUEST['assigned_team_id_c']) &&
    !empty($_REQUEST['return_module']) &&
    $_REQUEST['return_module'] != "Activities" &&
    $_REQUEST['return_module'] != "Emails" &&
    $_REQUEST['module'] != "Emails"
    ) {

    $GLOBALS['log']->debug("SubPanel Save: Assigning Team to child object");

    if(!empty($bean->parent_type)) {
    $GLOBALS['log']->debug("SubPanel Save: Parent Type (".$_REQUEST['return_module'].")");
    $object_name = $app_list_strings['moduleListSingular'][$_REQUEST['return_module']];
    $GLOBALS['log']->debug("SubPanel Save: Parent Bean Name (".$object_name.")");

    if($object_name=="Case") {
    $object_name="aCase";
    }

    /** ESTA ES LA PARTE QUE SE DEBE AGREGAR ***/

    if($object_name=="Contacto"){
    $object_name="Contact";
    }

    if($object_name=="Proyecto"){
    $object_name="Project";
    }
    if($object_name=="Cuenta"){
    $object_name="Account";
    }
    if($object_name=="Oportunidad"){
    $object_name="Opportunity";
    }
    if($object_name=="Gestor de Incidencias"){
    $object_name="Bug";
    }

    $bean_name=$beanFiles[$object_name];

    if($object_name=="Caso"){
    $bean_name = "modules/Cases/Case.php";
    }

    /********************************************/

    ...............
    ...........
    AQUI EL RESTO DEL ARCHIVO SIN MODIFICAR.
    debes buscar el nombre del modulo correspodiente a la traduccion que estes usando para en este caso Contacto -> Contact y asi sucesivamente. Espero esto te pueda ayudar en algo.

    Joan Mauricio Galvis Ortiz
    Grupo JAD LTDA, Pereira, Colombia
    joan.galvis@grupojad.com.co

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Newbi Email Attachments
    By dogit in forum Help
    Replies: 1
    Last Post: 2006-11-11, 09:38 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
  •