# KReporter on SuiteCRM 7.8.5 403 error

**URL:** <https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170>\
**Category:** KReporter\
**Created:** [August 16, 2017, 5:15pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170 "2017-08-16T17:15:31Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![dialectstudio](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dialectstudio](https://community.spicecrm.io/u/dialectstudio)\
**Post date:** [August 16, 2017, 5:15pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/1 "2017-08-16T17:15:31Z")

</div>

Hello, we are supporting a client using SuiteCRM 7.8.5 on a shared hosting AWS Ubuntu Linux (14.04.5) server running Apache 2.4.23 and PHP 5.6.25.

We’ve installed the latest KReports and KREST from the spicecrm downloads area.

We can’t seem to get KReports to work. We disabled and deleted the modules, and reinstalled several times. When we check KREST/sysinfo we get a 403 error.

In preparation for a planned upgrade later this years, we’ve also installed SuiteCRM 7.9.4 on the same server with the latest KReports and KREST and it works fine; we can see all the installed modules, users, etc. KREST/sysinfo also responds with json data about the new system.

Any help would greatly be appreciated.

Jim

---

<div class="post-metadata">

**Author:** ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)\
**Post date:** [August 16, 2017, 5:28pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/2 "2017-08-16T17:28:45Z")

</div>

Jim,  
it looks like you have a file permission problem.  
Did you check [KREST installation guide](http://www.spicecrm.io/download/krest-installation-guide/)?  
Val

---

<div class="post-metadata">

**Author:** ![dialectstudio](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dialectstudio](https://community.spicecrm.io/u/dialectstudio)\
**Post date:** [August 16, 2017, 5:33pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/3 "2017-08-16T17:33:03Z")

</div>

Hi, yes, we’ve followed that. We’ve checked the folder permissions, even going so far as to give the KREST directory 777 permissions for all files and subdirectories.

The curious thing is that the KReporter and KREST module installs are being installed on the same machine. We can access KREST/sysinfo on 7.9.4 but not on 7.8.5.

Jim

---

<div class="post-metadata">

**Author:** ![dialectstudio](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dialectstudio](https://community.spicecrm.io/u/dialectstudio)\
**Post date:** [August 16, 2017, 6:10pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/4 "2017-08-16T18:10:37Z")

</div>

Here’s the error message from apache error\_log.

```
[Wed Aug 16 12:44:46.935450 2017] [rewrite:error] [pid 1494:tid 140517329282816] [client 1xx.xx.xx.xx:57214] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /opt/bitnami/apache2/htdocs/crm.kelemenandco.com/KREST/sysinfo

```

Added these options to our vhost config, restarted apache and getting this from KREST/info:

```
{"version":"2.0","extensions":{"login":{"version":"1.0"},"module":{"version":"2.0"},"core":{"version":"2.0"},"metadata":{"version":"1.0"},"user":{"version":"1.0"}}}

```

However, loading KReports, still shows a broken page and these errors (we’ve enabled error\_reporting(E\_ALL) in config.php:

```
Strict Standards: Declaration of KReport::save() should be compatible with SugarBean::save($check_notify = false) in /opt/bitnami/apache2/htdocs/crm.kelemenandco.com/modules/KReports/KReport.php on line 0

```

and

```
Strict Standards: Declaration of KReport::create_new_list_query() should be compatible with SugarBean::create_new_list_query($order_by, $where, $filter = Array, $params = Array, $show_deleted = 0, $join_type = '', $return_array = false, $parentbean = NULL, $singleSelect = false, $ifListForExport = false) in /opt/bitnami/apache2/htdocs/crm.kelemenandco.com/modules/KReports/KReport.php on line 0

```

KReports is saving reports and we can see a few we’ve attempted to create in the reports lists. But when we try to view or edit the reports we get a mostly blank page.

**KReports DetailView**

 ![30](https://canada1.discourse-cdn.com/flex030/uploads/spicecrm/original/1X/6606e934f810956c7f76058cd954bdc8a850d065.png)

I’ll post the Edit view in another post following this one.

Jim

---

<div class="post-metadata">

**Author:** ![dialectstudio](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dialectstudio](https://community.spicecrm.io/u/dialectstudio)\
**Post date:** [August 16, 2017, 6:11pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/5 "2017-08-16T18:11:10Z")

</div>

**KReports Edit View**

 ![48](https://canada1.discourse-cdn.com/flex030/uploads/spicecrm/original/1X/e81c714c54b180ccf9b7ba306ea2133041f74f02.jpg)

---

<div class="post-metadata">

**Author:** ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)\
**Post date:** [August 16, 2017, 6:16pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/6 "2017-08-16T18:16:09Z")

</div>

Did you turn off display\_errors in php.ini?

error\_reporting(E\_ALL) will make large log files and will not help. We recommend error\_reporting=E\_ALL & ~E\_DEPRECATED & ~E\_STRICT & ~E\_NOTICE & ~E\_WARNING

---

<div class="post-metadata">

**Author:** ![dialectstudio](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dialectstudio](https://community.spicecrm.io/u/dialectstudio)\
**Post date:** [August 16, 2017, 6:20pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/7 "2017-08-16T18:20:13Z")

</div>

Yes, display\_errors is off in php.ini.

We know that error\_reporting(E\_ALL) does that. We’ve only turned on error reporting to troubleshoot this issue.

Jim

---

<div class="post-metadata">

**Author:** ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)\
**Post date:** [August 16, 2017, 6:25pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/8 "2017-08-16T18:25:02Z")

</div>

Well, what errors does javascript console throw?  
KReporter is not designed to be compatible with SuiteCRM. The problem might be there.  
Val

---

<div class="post-metadata">

**Author:** ![dialectstudio](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dialectstudio](https://community.spicecrm.io/u/dialectstudio)\
**Post date:** [August 16, 2017, 6:34pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/9 "2017-08-16T18:34:22Z")

</div>

Here are the jscript errors from the dev console:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (config, line 0)  
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (whereinitialize, line 0)  
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (userprefs, line 0)  
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (plugins, line 0)  
[Log] server-side failure with status code 404 (KReporterViewer.js, line 12)

BTW, we’ve had no issues with installing and using KReports in other SuiteCRM installs. It would be good if there was a warning about that on your website.

---

<div class="post-metadata">

**Author:** ![dialectstudio](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dialectstudio](https://community.spicecrm.io/u/dialectstudio)\
**Post date:** [August 16, 2017, 6:38pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/10 "2017-08-16T18:38:44Z")

</div>

Sorry that copy and paste didn’t provide the missing file names. They are in the same order as in my post above, as follows:

[http://xxx/KREST/KReporter/core/config?\_dc=1502908273681](http://xxx/KREST/KReporter/core/config?_dc=1502908273681)  
[http://xxx/KREST/KReporter/core/whereinitialize?\_dc=1502908273412](http://xxx/KREST/KReporter/core/whereinitialize?_dc=1502908273412)  
[http://xxx/KREST/KReporter/user/userprefs?\_dc=1502908273671](http://xxx/KREST/KReporter/user/userprefs?_dc=1502908273671)  
[http://xxx/KREST/KReporter/plugins?\_dc=1502908274020&addData=["currencies"%2C"sysinfo"]&report=4ad49b9d-4864-bc51-f443-59938553bc28](http://xxx/KREST/KReporter/plugins?_dc=1502908274020&addData=%5B%22currencies%22%2C%22sysinfo%22%5D&report=4ad49b9d-4864-bc51-f443-59938553bc28)

Jim

---

<div class="post-metadata">

**Author:** ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)\
**Post date:** [August 16, 2017, 6:53pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/11 "2017-08-16T18:53:41Z")

</div>

It’s becoming difficult to guess.  
Does webuser have the rights to execute KREST?  
Is the file KREST/extensions/KReporter.php available on server?

Val

---

<div class="post-metadata">

**Author:** ![dialectstudio](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dialectstudio](https://community.spicecrm.io/u/dialectstudio)\
**Post date:** [August 16, 2017, 7:00pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/12 "2017-08-16T19:00:19Z")

</div>

I appreciate your help.

Yes, the file permissions are set to the Apache web user.

The KReporter.php was missing. I copied it from the earlier install (we renamed the directory) before removing and reinstalling KREST.

It seems to be working now.

Thanks.

Jim

---

<div class="post-metadata">

**Author:** ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)\
**Post date:** [August 16, 2017, 7:07pm UTC](https://community.spicecrm.io/t/kreporter-on-suitecrm-7-8-5-403-error/170/13 "2017-08-16T19:07:08Z")

</div>


