# File Cache Engine Array to String Conversion

**URL:** <https://discourse.cakephp.org/t/file-cache-engine-array-to-string-conversion/336>\
**Category:** Need Help\
**Created:** [May 16, 2016, 7:10pm UTC](https://discourse.cakephp.org/t/file-cache-engine-array-to-string-conversion/336 "2016-05-16T19:10:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mircea\_agr](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mircea\_agr](https://discourse.cakephp.org/u/mircea_agr)\
**Post date:** [May 16, 2016, 7:10pm UTC](https://discourse.cakephp.org/t/file-cache-engine-array-to-string-conversion/336/1 "2016-05-16T19:10:46Z")

</div>

Hello,

I’m having an issue in cake 2.8.  
I-m trying to save to a cache but get an array to string conversion notice and the cache is not created  
Has anyone had this issue?

I’ve posted the code here: [http://pastebin.com/WiRHwxMm](http://pastebin.com/WiRHwxMm)

---

<div class="post-metadata">

**Author:** ![joris](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/joris/32/338_2.png) [@joris](https://discourse.cakephp.org/u/joris)\
**Post date:** [May 17, 2016, 9:09am UTC](https://discourse.cakephp.org/t/file-cache-engine-array-to-string-conversion/336/2 "2016-05-17T09:09:14Z")

</div>

You have to make sure `serialize = true` in your cache config.
