K Reports module not working in SuiteCRM 7.0.1

Hello, I have installed SuiteCRM 7.0.1 on my server. K Reports module not working in it. There is a warning message:
Warning: opendir(./custom/modules/KReports/includes) [function.opendir]: failed to open dir: No such file or directory in /home/xyz/public_html/Suitecrm/modules/KReports/KReport.php on line 24

Please let me know if there is any solution. Thanks.

Hi sid,

Please ensure that AJAX is disabled for this module by navigating to Admin -> System Settings -> Configure AJAX User Interface.

Please also perform a Quick Repair & Rebuild and Repair Roles by navigating to Admin -> Repair.

Thanks,

Will.

Thanks Will, AJAX is disabled for K reporter, but no luck. Is there any other way to make it work. Thanks again.

Hi sid,

Did you perform a Quick Repair & Rebuild and Repair Roles by navigating to Admin -> Repair? This module works with SuiteCRM. Have you installed this successfully previously on SugarCRM?

Thanks,

Will.

Yes, I did. I’m using K Reporter module in community Edition of Sugarcrm and it’s working nicely.

Thanks.

Hi sid,

Did it install correctly on Suite? Are there any errors in your sugarcrm.log file?

Thanks,

Will.

Error log is showing only one warning several times - Warning: opendir(./custom/modules/KReports/includes) [function.opendir]: failed to open dir: No such file or directory in /home/rnroutso/public_html/reportcrm/modules/KReports/KReport.php on line 24.

Thanks.

@sid: Well, does the directory /custom/modules/KReports/includes actually exist? If it does, make sure your apache user (www-data) has access to it and the permissions are 755.

Hello AK,

the directory does not exist.

Thanks

I created the directory manually as was mentioned in http://forums.sugarcrm.com/f6/k-reporter-3-0-problems-83757/index13.html

Now the error log shows
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 30720 bytes) in /home/mydomain/suitecrm/custom/modules/KReports/config/KReportWhereOperators.php on line 71

Also I’ve attached the screenshot of sugarcrm.log file.

Hi sid,

What is your memory limit set to in your php.ini file?

Thanks,

Will.

Hi Will,

256 MB is the memory limit set in php.ini.

Hi sid,

Did you restart your apache server once you had made the changes?

Thanks,

Will.

The allotted limit was set to 256 MB for a long time. I did not set it now.

Hi sid,

Ok. Have you tried turning off error reporting? Have you performed a Quick Repair & Rebuild via Admin -> Repair?

Thanks,

Will.

Performed Quick Repair & Rebuild a number of times. The KReports page loads without showing any error (errors are getting logged in the log file) but the page is blank after the menu.

Hi sid,

Have you set the following recommended permissions:

sudo chown -R www-data:www-data .

sudo chmod -R 755 .

sudo chmod -R 775 cache custom modules themes data upload config_override.php

Or for windows, see the SuiteCRM documentation.

Are you on linux or windows? What browser are you using?

Thanks,

Will.

I’m on Linux. Browser is Firefox.

Folder permission of cache, custom, data, modules and theme are 775 and files in these folders are 664. Only the upload folder has 755 permission and its files have 644.

PFA the Create Reports page for KReports

Hi sid,

Have you checked your apache error log?

Thanks,

Will.