<div dir="ltr">Try turning on the database debug mode. That kind of error comes up when there is an error in a query.<div> You can do that in the include/database/PearDatabase.php file at the very end:</div><div><br></div><div>if(empty($adb)) {<br>     $adb = new PearDatabase();<br>    $adb->connect();</div><div>$adb->setDebug(true) //<- this is the line you have to add<br>}<br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 15, 2023 at 12:44 PM Renan Paiva <<a href="mailto:renan.paiva@mobibytes.com.br">renan.paiva@mobibytes.com.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-7880329981458787324">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-7880329981458787324WordSection1">
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">A user is getting the following error while trying access the reports module:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">When I set this user as admin the error don’t occurs. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><img width="496" height="112" style="width: 5.1666in; height: 1.1666in;" id="m_-7880329981458787324Imagem_x0020_1" src="cid:186e6d7d2704cff311"><span><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></div></blockquote></div>