[Vtigercrm-commits] [vtiger development] #6380: vtwsclib - hangs silently if language file missing

vtiger development vtiger-tickets at trac.vtiger.com
Tue Nov 3 23:23:25 EST 2009


#6380: vtwsclib - hangs silently if language file missing
--------------------------------------------------+-------------------------
 Reporter:  davidv.net                            |       Owner:  developer
     Type:  defect                                |      Status:  new      
 Priority:  major                                 |   Milestone:  5.2.0    
Component:  vtwsclib                              |     Version:  5.1.0    
 Keywords:  vtwsclib hangs language file missing  |  
--------------------------------------------------+-------------------------
 If a module is activated in Vtiger but no language file is available for
 it you will not be able to use DoQuery in vtwsclib.

 Even if it is not the module you are after !

 The code below gives the folowing error in the Vtiger logs :


 {{{
 Wed Sep 30 13:31:26 2009,316 [20025] DEBUG webservice - Entering
 return_module_language(en_us,Timesheet) method ...
 Wed Sep 30 13:31:26 2009,363 [20025] WARN webservice - Unable to find the
 module language file for language: en_us and module: Timesheet
 }}}

 If I desactivate the module Timesheet using module manager. Then my query
 works.

 The biggest problem here is that no error is returned to the client side !


 {{{

 <?php
 include_once('vtwsclib/Vtiger/WSClient.php');
 $url = 'http://www.**************.com/vt51';
 $client = new Vtiger_WSClient($url);
 $login = $client->doLogin('admin', '*************************');
 if(!$login) echo 'Login Failed';
 else {

 echo "Login Ok \n";
 // Retrieve Accounts matching name 'vtiger'
     $query = "SELECT * FROM Accounts WHERE accountname LIKE '%TEST%'";
     $records = $client->doQuery($query);

 $wasError= $client->lastError();

 if($wasError)
 {
    echo $wasError['code'] . ':' . $wasError['message'];
 }
 else
 {
    echo "Displaying result \n";


    if($records) {
         $columns = $client->getResultColumns($records);
         foreach($records as $record) {
             print_r($record);
         }
     }
 }


 }
 ?>
 }}}

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6380>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list