# Cannot convert value to int

**URL:** <https://discourse.cakephp.org/t/cannot-convert-value-to-int/3362>\
**Category:** Need Help\
**Created:** [October 18, 2017, 3:09pm UTC](https://discourse.cakephp.org/t/cannot-convert-value-to-int/3362 "2017-10-18T15:09:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jleoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jleoni/32/848_2.png) [@jleoni](https://discourse.cakephp.org/u/jleoni)\
**Post date:** [October 18, 2017, 3:09pm UTC](https://discourse.cakephp.org/t/cannot-convert-value-to-int/3362/1 "2017-10-18T15:09:30Z")

</div>

I’ve created a database, made a few tables, and finally baked one of those tables which follows convention. When going to review the scaffold and insert an entry into the database I get the error “cannot convert value to integer”. This is totally baked code no human input at all. Which is why this is totally baffling to me. Anyone else ever see this?

---

<div class="post-metadata">

**Author:** ![rrd](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/rrd/32/113_2.png) [@rrd](https://discourse.cakephp.org/u/rrd)\
**Post date:** [October 18, 2017, 3:21pm UTC](https://discourse.cakephp.org/t/cannot-convert-value-to-int/3362/2 "2017-10-18T15:21:47Z")

</div>

yes it happened to me also. There is a good chance it is a cakephp / php version mismatch.

What are your versions of these?

---

<div class="post-metadata">

**Author:** ![jleoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jleoni/32/848_2.png) [@jleoni](https://discourse.cakephp.org/u/jleoni)\
**Post date:** [October 18, 2017, 3:36pm UTC](https://discourse.cakephp.org/t/cannot-convert-value-to-int/3362/3 "2017-10-18T15:36:02Z")

</div>

PHP Version 7.0.22-0ubuntu0.16.04.1  
&  
Cake 3.5.4 from VERSION.txt

---

<div class="post-metadata">

**Author:** ![jleoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jleoni/32/848_2.png) [@jleoni](https://discourse.cakephp.org/u/jleoni)\
**Post date:** [October 18, 2017, 3:54pm UTC](https://discourse.cakephp.org/t/cannot-convert-value-to-int/3362/4 "2017-10-18T15:54:02Z")

</div>

I’ve figured it out, is there a list anywhere of namespaces/keywords which cannot be used?
