Uploading images to evidence

Issue #223 resolved
Emil Reisser-Weston created an issue

Strange message when trying to save promo/thumbnail images

exception 'BadMethodCallException' with message 'Call to undefined method Illuminate\Database\Query\Builder::isEmpty()' in /mnt/sdb/www/demo/src/vendor/illuminate/database/Query/Builder.php:2448 Stack trace: #0 [internal function]: Illuminate\Database\Query\Builder->call('isEmpty', Array) #1 [internal function]: Illuminate\Database\Query\Builder->isEmpty() #2 /mnt/sdb/www/demo/src/vendor/illuminate/database/Eloquent/Builder.php(1465): call_user_func_array(Array, Array) #3 [internal function]: Illuminate\Database\Eloquent\Builder->call('isEmpty', Array) #4 [internal function]: Illuminate\Database\Eloquent\Builder->isEmpty() #5 /mnt/sdb/www/demo/src/vendor/illuminate/database/Eloquent/Model.php(3551): call_user_func_array(Array, Array) #6 /mnt/sdb/www/demo/src/app/routes/learner.php(164): Illuminate\Database\Eloquent\Model->call('isEmpty', Array) #7 /mnt/sdb/www/demo/src/app/routes/learner.php(164): Models\LearningModule->isEmpty() #8 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #9 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #10 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/Route.php(344): Slim\Handlers\Strategies\RequestResponse->invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #11 /mnt/sdb/www/demo/src/classes/APP/Auth.php(58): Slim\Route->invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #12 [internal function]: APP\PageAccessCheck->invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route)) #13 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(APP\PageAccessCheck), Array) #14 [internal function]: Slim\DeferredCallable->invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route)) #15 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(73): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route)) #16 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(122): Slim\Route->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response)) #17 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/Route.php(316): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #18 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/App.php(476): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response)) #19 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(122): Slim\App->invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #20 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/App.php(370): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #21 /mnt/sdb/www/demo/src/vendor/slim/slim/Slim/App.php(295): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #22 /mnt/sdb/www/demo/src/public/index.php(19): Slim\App->run() #23 {main}: Call to undefined method Illuminate\Database\Query\Builder::isEmpty()

Capture.JPG

Comments (2)

  1. Log in to comment