KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Error When refreshing Drop Down list (select2) using subReport. #1568

Open Yanick Ileo opened this topic on on Aug 14, 2020 - 2 comments

Yanick Ileo commented on Aug 14, 2020

<h4>A PHP Error was encountered</h4>

<p>Severity: Warning</p>
<p>Message:  in_array() expects parameter 2 to be array, string given</p>
<p>Filename: inputs/Select2m.tpl.php</p>
<p>Line Number: 14</p>


	<p>Backtrace:</p>
	
		
	
		
	
		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/libraries/koolreport/koolreport/inputs/Select2m.tpl.php<br/>
			Line: 14<br/>
			Function: in_array			</p>

		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/libraries/koolreport/koolreport/core/src/core/Widget.php<br/>
			Line: 736<br/>
			Function: include			</p>

		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/libraries/koolreport/koolreport/inputs/Select2.php<br/>
			Line: 66<br/>
			Function: template			</p>

		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/libraries/koolreport/koolreport/core/src/core/Widget.php<br/>
			Line: 676<br/>
			Function: onRender			</p>

		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/libraries/koolreport/koolreport/core/src/core/Widget.php<br/>
			Line: 764<br/>
			Function: render			</p>

		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/reportmars/reportsalesbyregion/SelectDDLByRegion.view.php<br/>
			Line: 322<br/>
			Function: create			</p>

		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/libraries/koolreport/koolreport/core/src/KoolReport.php<br/>
			Line: 502<br/>
			Function: include			</p>

		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/libraries/koolreport/koolreport/core/src/core/SubReport.php<br/>
			Line: 48<br/>
			Function: render			</p>

		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/libraries/koolreport/koolreport/core/src/KoolReport.php<br/>
			Line: 147<br/>
			Function: koolreport\core\{closure}			</p>

		
	
		
			<p style="margin-left:10px">
			File: /usr/local/testing/myapplication/application/libraries/koolreport/koolreport/core/src/KoolReport.php<br/>
			Line: 98<br/>
			Function: fireEvent			</p>

### 



Yanick Ileo commented on Aug 20, 2020

any update about this error ?

KoolReport commented on Aug 22, 2020

You are using select2 with multiple options, this require "value" must be an array but somewhere for example in defined "defaultInputParams()", you have entered non-array type value.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Inputs