Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
a non-numric value encountered?
chicagophil
October 2017
I'm trying out oil and following the user guide but it's throwing an error. I'm on windows 10(sadly).
Anyone who can tell me what's going on here?
Uncaught exception Fuel\Core\PhpErrorException: A non-numeric value encountered
C
2
allstack:
#0
C:\xampp\htdocs\fuel\fuel\core\bootstrap.php(103):
Fuel\Core\Errorhandler::error_handler(2, 'A non-numeric v...',
'C:\\xampp\\htdocs...', 1790)
#1
C:\xampp\htdocs\fuel\fuel\packages\oil\classes\generate.php(1790):
{closure}(2, 'A non-numeric v...', 'C:\\xampp\\htdocs...', 1790, Array)
#2 C:\xampp\htdocs\fuel\fuel\packages\oil\classes\generate.php(1177): Oil\Generate::_find_migration_number()
#3 C:\xampp\htdocs\fuel\fuel\packages\oil\classes\generate\scaffold.php(131): Oil\Generate::migration(Array, false)
#4 [internal function]: Oil\Generate_Scaffold::forge(Array, 'orm')
#5 C:\xampp\htdocs\fuel\fuel\packages\oil\classes\command.php(81): call_user_func('Oil\\Generate_Sc...', Array, 'orm')
#6 C:\xampp\htdocs\fuel\oil(68): Oil\Command::init(Array)
#7 {main}
Harro
November 2017
What is exactly the command you are trying to execute? And on what Fuel version are you on?
Harro
November 2017
Accepted Answer
Ah, wait, you're on 1.8/release.
That has a bug in it, that gives this error if it can't find any previous migrations.
Switch to 1.9/dev, as this is already fixed.
chicagophil
November 2017
Great. Will do. Thank you and just for your information I was scaffolding.
chicagophil
November 2017
That did the trick. Thank You
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
chicagophil
November 2017
Harro
November 2017