[Vtigercrm-developers] [PATCH] PearDatabase.php sanity check in Move()

Enrico Weigelt weigelt at metux.de
Fri May 11 06:57:17 PDT 2007


* Philip <philip at vtiger.com> schrieb:

Hi,

> When tested the code i had the following exception thrown in the screen.
> 
> *Fatal error*: Uncaught exception 'Exception' with message 'given result 
> set is not an object' in 
> /home/crm-test3/donot_delete/vtigerCRM5/apache/htdocs/vtigerCRM/include/database/PearDatabase.php:442 
> Stack trace: #0 
> /home/crm-test3/donot_delete/vtigerCRM5/apache/htdocs/vtigerCRM/modules/Potentials/ListView.php(183): 
> PearDatabase->query_result(false, 0, 'count') #1 
> /home/crm-test3/donot_delete/vtigerCRM5/apache/htdocs/vtigerCRM/modules/Potentials/index.php(29): 
> include('/home/crm-test3...') #2 
> /home/crm-test3/donot_delete/vtigerCRM5/apache/htdocs/vtigerCRM/include/Ajax/CommonAjax.php(12): 
> require_once('/home/crm-test3...') #3 
> /home/crm-test3/donot_delete/vtigerCRM5/apache/htdocs/vtigerCRM/modules/Potentials/PotentialsAjax.php(11): 
> require_once('/home/crm-test3...') #4 
> /home/crm-test3/donot_delete/vtigerCRM5/apache/htdocs/vtigerCRM/index.php(582): 
> include('/home/crm-test3...') #5 {main} thrown in 
> */home/crm-test3/donot_delete/vtigerCRM5/apache/htdocs/vtigerCRM/include/database/PearDatabase.php* 
> on line *442

Looks like an bug in Potentials/ListView.php.
Probably an query failed and so $result is empty.

We've lots of such issues everywhere :(



cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact at metux.de
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------



More information about the vtigercrm-developers mailing list