⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Multiselect field_type. Why i got "An error has occurred on saving"



wyawin
  • profile picture
  • Member

Posted 19 April 2016 - 03:30 AM

Everything works fine while i use field_type dropdown.

 

After i change the field_type to multiselect i got An error has occurred on saving.

 

 

2cnfg43.png

 

I got an error. 

 

 

bezdlk.png

Anyone please help me..

 

Also not work on Insert too.

 

Edited:

i got this on firebug response

 

<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
 
<h4>A PHP Error was encountered</h4>
 
<p>Severity: Notice</p>
<p>Message:  Array to string conversion</p>
<p>Filename: database/DB_driver.php</p>
<p>Line Number: 1513</p>
 
 
<p>Backtrace:</p>
 
 
 
<p style="margin-left:10px">
File: C:\xampp\htdocs\fp\application\controllers\Site.php<br />
Line: 1391<br />
Function: update </p>
 
 
<p style="margin-left:10px">
File: C:\xampp\htdocs\fp\application\libraries\Grocery_CRUD.php<br />
Line: 1106<br />
Function: call_user_func </p>
 
 
<p style="margin-left:10px">
File: C:\xampp\htdocs\fp\application\libraries\Grocery_CRUD.php<br />
Line: 4609<br />
Function: db_update </p>
 
 
<p style="margin-left:10px">
File: C:\xampp\htdocs\fp\application\controllers\Site.php<br />
Line: 1462<br />
Function: render </p>
 
 
 
<p style="margin-left:10px">
File: C:\xampp\htdocs\fp\index.php<br />
Line: 292<br />
Function: require_once </p>
 

 

 

P.S. Sorry my bad english.


wyawin
  • profile picture
  • Member

Posted 19 April 2016 - 04:04 AM

Solved.

I fixed this line 

File: C:\xampp\htdocs\fp\application\controllers\Site.php<br />
Line: 1391<br />
Function: update

 

And it work perfectly.

thank you. :)