Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
PHP error from DB::query()
  • I am encountering an error 
    • Error: Undefined variable: result in /.../fuel/core/classes/database/pdo/connection.php on 202
    from an oil 'refine' task (in FuelPHP 5.3.1 - I think this would be line 244 in v1.6.1).

    I've no idea yet what I'm doing wrong to cause this, but I imagine it would be something which you would want to catch cleanly and throw an error for, rather than failing with a PHP error...

    Chris
  • HarroHarro
    Accepted Answer
    I think in 1.5.3 there was a bug in the connect attempt loop. You should get an exception.

    It basically means you don't have a database connection there.

Howdy, Stranger!

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

In this Discussion