Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
a non-numric value encountered?
  • 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
    C2allstack:
    #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}
  • What is exactly the command you are trying to execute? And on what Fuel version are you on?
  • HarroHarro
    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.
  • Great. Will do. Thank you and just for your information I was scaffolding.
  • That did the trick. Thank You

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion