[Vtigercrm-developers] Error on accessing reports module

Rubén A. Estrada Orozco rulotec1 at gmail.com
Wed Mar 15 19:59:40 GMT 2023


Try turning on the database debug mode. That kind of error comes up when
there is an error in a query.
 You can do that in the include/database/PearDatabase.php file at the very
end:

if(empty($adb)) {
$adb = new PearDatabase();
$adb->connect();
$adb->setDebug(true) //<- this is the line you have to add
}

Saludos

Rubén


On Wed, Mar 15, 2023 at 12:44 PM Renan Paiva <renan.paiva at mobibytes.com.br>
wrote:

> Hello,
>
>
>
> A user is getting the following error while trying access the reports
> module:
>
>
>
> Fatal error: Uncaught Error: Call to a member function FetchRow() on
> boolean in /var/www/.../public_html/include/database/PearDatabase.php:532
> Stack trace: #0 /var/www/.../public_html/modules/Reports/Reports.php(551):
> PearDatabase->fetch_array(false) #1
> /var/www/.../public_html/modules/Reports/models/Folder.php(97):
> Reports->sgetRptsforFldr('All', Array) #2
> /var/www/.../public_html/modules/Reports/models/ListView.php(112):
> Reports_Folder_Model->getReports(Object(Vtiger_Paging_Model)) #3
> /var/www/.../public_html/modules/Reports/views/List.php(181):
> Reports_ListView_Model->getListViewEntries(Object(Vtiger_Paging_Model)) #4
> /var/www/.../public_html/modules/Reports/views/List.php(33):
> Reports_List_View->initializeListViewContents(Object(Vtiger_Request)) #5
> /var/www/.../public_html/includes/main/WebUI.php(76):
> Reports_List_View->preProcess(Object(Vtiger_Request)) #6 /v in
> /var/www/.../public_html/include/database/PearDatabase.php on line 532
>
>
>
> When I set this user as admin the error don’t occurs.
>
>
>
> Best regards,
>
>
>
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20230315/e26ed770/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 16831 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20230315/e26ed770/attachment-0001.png>


More information about the vtigercrm-developers mailing list