<div dir="ltr">Update: the problems all disappear if the user has admin rights. Non-admin users have the issues I detailed, but as soon as I make a user admin, there's no trouble at all. Hopefully this helps pinpoint the problem?<br><br>It's Debian. I don't think the memory is the issue here, because no other part of the system does this. Plus, pages load in other parts of the reports module, they just give an error, as though the file path were blank. Well, it *IS* blank, really. I just don't know why. Again, too, making a user admin fixes everything.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 26, 2018 at 11:31 AM, nilay khatri <span dir="ltr"><<a href="mailto:nilay.spartan@gmail.com" target="_blank">nilay.spartan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Alex,<div><br></div><div>few questions:</div><div><br></div><div>1. is your system a windows OS?</div><div>2. have you mounted any extra discs for storage?</div><div>3. what is the memory limit you have set in the loaded php.ini and in vtiger config file?</div><div><br></div><div>The blank page can happen is there is less memory. In this case the page should processing your request for a while and then go blank.</div><div><br></div><div>Or else there could be an improper query generated due to some custom fields added in the included module in report.</div><div><br></div><div>To investigate if there is some improper query generated you can enable database debug by editingĀ </div><div><br></div><div>include/database/PearDatabase.<wbr>php</div><div><br></div><div>and add following :</div><div><br></div><div>$adb->setDebug(true)</div><div><br></div><div>and then try to execute the report. It must show you all the queries executed in the request and if there is any error while execution.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Mar 26, 2018 at 7:15 PM, Alex Hall <span dir="ltr"><<a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Hello all,<br></div>One of the last things my boss wants from a CRM is reports. Obviously, VTiger can handle these, with a lot of nice options for setting up and sending out reports. The problem is, we're getting some odd errors when trying to use them.<br><br></div>The first one is file access. Whenever I try to view a report while logged in as one of the sales reps who will eventually use this system, I get:<br>Sorry! Attempt to access restricted file. - '.$realfilepath<br></div>That's from utils.php, and I modified it to display $realfilepath instead of $filepath. The file path is always blank, which I believe is the core of the problem. You can't open a file if no file is specified, after all. The question is *why* it's blank. I should say that this only happens for reports set up by the account. That is, ones that aren't in the module by default.<br><br></div>The other issue is this. Sometimes, when I try to view a report, the page is blank. My browser shows me a 500-level error behind the scenes, suggesting a PHP error. Yet my server's error log never shows anything, so the exception or problem must be handled internally. Even the VTiger log, though, has nothing about whatever the error is. This seems to always happen when viewing a report that comes with the module by default, as opposed to the other problem above, which only happens with custom reports.<br><br></div>Thanks for any help on this one. As far as I know, our reports module is up to date, and the rest of VTiger is configured correctly. We're on 7.1 with the latest patch installed, and on PHP 7.0 on Debian 8.<span class="m_9196104213517008741HOEnZb"><font color="#888888"><br clear="all"><div><div><div><div><div><div><br>-- <br><div class="m_9196104213517008741m_441909596974609654gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div></div></div></div></div></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div>