Error: Call to undefined method Error::get(): Call to undefined function create_function()