Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. Notice (8): Undefined index: photo [APP/models/behaviors/upload.php, line 106]
  2. Code | Context
  3. function beforeSave(&$model) {
  4. foreach ($this->settings[$model->alias] as $field => $options) {
  5. if (!is_array($model->data[$model->alias][$field])) continue;
  6. UploadBehavior::beforeSave() - APP/models/behaviors/upload.php, line 106
  7. ModelBehavior::dispatchMethod() - CORE/cake/libs/model/model_behavior.php, line 169
  8. BehaviorCollection::trigger() - CORE/cake/libs/model/model_behavior.php, line 494
  9. Model::save() - CORE/cake/libs/model/model.php, line 1281
  10. BooksController::add() - APP/controllers/books_controller.php, line 22
  11. Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
  12. Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
  13. [main] - APP/webroot/index.php, line 83
  14. Notice (8): Array to string conversion [CORE/cake/libs/model/datasources/dbo_source.php, line 749]
  15. Code | Context
  16. implode - [internal], line ??
  17. DboSource::create() - CORE/cake/libs/model/datasources/dbo_source.php, line 749
  18. Model::save() - CORE/cake/libs/model/model.php, line 1342
  19. BooksController::add() - APP/controllers/books_controller.php, line 22
  20. Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
  21. Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
  22. [main] - APP/webroot/index.php, line 83
  23. Warning (512): SQL Error: 1054: Unknown column 'Array' in 'field list' [CORE/cake/libs/model/datasources/dbo_source.php, line 684]
  24. Code | Context
  25. DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 684
  26. DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 266
  27. DboSource::create() - CORE/cake/libs/model/datasources/dbo_source.php, line 752
  28. Model::save() - CORE/cake/libs/model/model.php, line 1342
  29. BooksController::add() - APP/controllers/books_controller.php, line 22
  30. Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
  31. Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
  32. [main] - APP/webroot/index.php, line 83
  33. Query: INSERT INTO `books` (`title`, `picture_dir`, `publisher_id`, `author`, `genre`, `description`, `format`, `price`, `pages`, `isbn`, `status`, `created_at`, `updated_at`, `picture`) VALUES ('teste', '', 1, 'sadf', 'asdfsadfa', 'sadfsdf', 'asdfasdf', 333, 333, 'asdfsadf', 'approved', '2011-05-18', '2011-05-18', Array)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement