# Error when viewing the report

**URL:** https://community.spicecrm.io/t/error-when-viewing-the-report/365
**Category:** KReporter
**Created:** [October 22, 2018, 10:20pm UTC](https://community.spicecrm.io/t/error-when-viewing-the-report/365 "2018-10-22T22:20:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Evancio](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/evancio/32/217_2.png) [@Evancio](https://community.spicecrm.io/u/Evancio)
#### Post date: [October 22, 2018, 10:20pm UTC](https://community.spicecrm.io/t/error-when-viewing-the-report/365/1 "2018-10-22T22:20:30Z")

</div>

Hi when i wanna see the graphics googlecharts its apper emplty and with this error on log:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/spicecrm/original/1X/23d917e621d02a1692f30d26e85432f88eb1f89b.png)

[Mon Oct 22 22:13:24.935430 2018] [php7:error] [pid 8172:tid 1752] [client 104.254.245.224:64023] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function KReportRenderer::\_\_construct(), 0 passed in C:\xampp\htdocs\modules\KReports\Plugins\Visualization\googlecharts\kGoogleCharts.php on line 125 and exactly 1 expected in C:\xampp\htdocs\modules\KReports\KReport.php:2047\nStack trace:\n#0 C:\xampp\htdocs\modules\KReports\Plugins\Visualization\googlecharts\kGoogleCharts.php(125): KReportRenderer-\>\_\_construct()\n#1 C:\xampp\htdocs\modules\KReports\Plugins\Visualization\googlecharts\kGoogleCharts.php(87): kGoogleChart-\>convertRawToGoogleData(Array, Array, Array)\n#2 C:\xampp\htdocs\modules\KReports\Plugins\Visualization\googlecharts\kGoogleCharts.php(37): kGoogleChart-\>getChartData(Object(KReport), Array, ‘0’, Array)\n#3 C:\xampp\htdocs\modules\KReports\KReportRESTHandler.php(1274): kGoogleChart-\>getItem(‘kb8743d2bb9314e…’, Object(KReport), Array, Array, ‘0’)\n#4 C:\xampp\htdocs\KREST\extensions\KReporter.php(260): KReporterRESTHandler-\>getVisualization(‘f6c97c7a-e3b5-4…’, Array)\n#5 [internal function]: {clos in C:\xampp\htdocs\modules\KReports\KReport.php on line 2047, referer: [http://127.0.0.1/index.php?module=KReports&action=DetailView&record=f6c97c7a-e3b5-496e-8167-3df70a249134](http://127.0.0.1/index.php?module=KReports&action=DetailView&record=f6c97c7a-e3b5-496e-8167-3df70a249134)

---

<div class="post-metadata">

### Author: ![Evancio](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/evancio/32/217_2.png) [@Evancio](https://community.spicecrm.io/u/Evancio)
#### Post date: [October 22, 2018, 11:14pm UTC](https://community.spicecrm.io/t/error-when-viewing-the-report/365/2 "2018-10-22T23:14:15Z")

</div>

My PHP version is 7.2.9

I do not know if this has something to do with the problem

---

<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: [October 23, 2018, 5:42am UTC](https://community.spicecrm.io/t/error-when-viewing-the-report/365/3 "2018-10-23T05:42:00Z")

</div>

The error you have is a typical php7 error which a 7.1 would already throw.  
KReporter 4.2 is tested for php 7.1.  
Which KReporter version do you have?

---

<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: [October 23, 2018, 5:43am UTC](https://community.spicecrm.io/t/error-when-viewing-the-report/365/4 "2018-10-23T05:43:06Z")

</div>

Just saw the version in screenshot. You already have a 4.2.  
I’ll check the googlechart plugin.

---

<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: [October 23, 2018, 6:01am UTC](https://community.spicecrm.io/t/error-when-viewing-the-report/365/5 "2018-10-23T06:01:03Z")

</div>

I have to review my statement. php7.1 is supported from version 4.3 on.  
KReporter 4.3 was not published as download package but only as part of SpiceCRM 2018.04.00.  
We are preparing version 4.4 that will be released as download package this fall. No fixed date but it will be soon.

---

<div class="post-metadata">

### Author: ![Evancio](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/evancio/32/217_2.png) [@Evancio](https://community.spicecrm.io/u/Evancio)
#### Post date: [October 23, 2018, 1:35pm UTC](https://community.spicecrm.io/t/error-when-viewing-the-report/365/6 "2018-10-23T13:35:26Z")

</div>

Hi maretval thanks for the attention

What i should do then downgrade PHP version?

---

<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: [October 23, 2018, 3:10pm UTC](https://community.spicecrm.io/t/error-when-viewing-the-report/365/7 "2018-10-23T15:10:03Z")

</div>

php 5.6 will do.  
php 7.0 should do (you will get lots of warnings in php error log)

---

<div class="post-metadata">

### Author: ![Evancio](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/evancio/32/217_2.png) [@Evancio](https://community.spicecrm.io/u/Evancio)
#### Post date: [October 23, 2018, 4:49pm UTC](https://community.spicecrm.io/t/error-when-viewing-the-report/365/8 "2018-10-23T16:49:09Z")

</div>

Done all work correctly now with php 5.6
