daily pastebin goal
65%
SHARE
TWEET

CakePHP Upload Multiple Files Error

a guest May 23rd, 2016 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Notice (8): Array to string conversion [CORE\src\Database\Statement\PDOStatement.php, line 72]
  2. Code Context
  3.             list($value, $type) = $this->cast($value, $type);
  4.         }
  5.         $this->_statement->bindValue($column, $value, $type);
  6. $column = 'c2'
  7. $value = [
  8.     (int) 0 => [
  9.         'name' => 'vision.gif',
  10.         'type' => 'image/gif',
  11.         'tmp_name' => 'D:\wamp\tmp\php72C9.tmp',
  12.         'error' => (int) 0,
  13.         'size' => (int) 24142
  14.     ],
  15.     (int) 1 => [
  16.         'name' => 'wyndham.concorde.01.jpg',
  17.         'type' => 'image/jpeg',
  18.         'tmp_name' => 'D:\wamp\tmp\php72CA.tmp',
  19.         'error' => (int) 0,
  20.         'size' => (int) 177040
  21.     ]
  22. ]
  23. $type = (int) 2
  24. PDOStatement::bindValue() - [internal], line ??
  25. Cake\Database\Statement\PDOStatement::bindValue() - CORE\src\Database\Statement\PDOStatement.php, line 72
  26. Cake\Database\Statement\StatementDecorator::bindValue() - CORE\src\Database\Statement\StatementDecorator.php, line 105
  27. Cake\Database\Log\LoggingStatement::bindValue() - CORE\src\Database\Log\LoggingStatement.php, line 97
  28. Cake\Database\Statement\StatementDecorator::bind() - CORE\src\Database\Statement\StatementDecorator.php, line 290
  29. Cake\Database\ValueBinder::attachTo() - CORE\src\Database\ValueBinder.php, line 125
  30. Cake\Database\Connection::run() - CORE\src\Database\Connection.php, line 271
  31. Cake\Database\Query::execute() - CORE\src\Database\Query.php, line 188
  32. Cake\ORM\Table::_insert() - CORE\src\ORM\Table.php, line 1544
  33. Cake\ORM\Table::_processSave() - CORE\src\ORM\Table.php, line 1460
  34. Cake\ORM\Table::Cake\ORM\{closure}() - CORE\src\ORM\Table.php, line 1391
  35. Cake\Database\Connection::transactional() - CORE\src\Database\Connection.php, line 559
  36. Cake\ORM\Table::save() - CORE\src\ORM\Table.php, line 1392
  37. App\Controller\UsersController::add() - APP/Controller\UsersController.php, line 78
  38. Cake\Controller\Controller::invokeAction() - CORE\src\Controller\Controller.php, line 429
  39. Cake\Routing\Dispatcher::_invoke() - CORE\src\Routing\Dispatcher.php, line 114
  40. Notice (8): Array to string conversion [CORE\src\Database\Log\QueryLogger.php, line 79]
  41. Code Context
  42.         }
  43.  
  44.         return preg_replace($keys, $params, $query->query, $limit);
  45. $query = object(Cake\Database\Log\LoggedQuery) {
  46.     query => 'INSERT INTO users (email, password, photo, created, modified) VALUES (:c0, :c1, :c2, :c3, :c4)'
  47.     took => (float) 1
  48.     params => [
  49.         'c0' => 'masdasd@mail.com',
  50.         'c1' => '$2y$10$7W/Fpxdbph0NcGwra9A8k.g4kx6EVIECXKv8cdjJXL2Xyf.Atp1RW',
  51.         'c2' => [
  52.             [maximum depth reached]
  53.         ],
  54.         'c3' => '2016-05-23 14:54:59',
  55.         'c4' => '2016-05-23 14:54:59'
  56.     ]
  57.     numRows => (int) 1
  58.     error => null
  59. }
  60. $params = [
  61.     'c0' => ''masdasd@mail.com'',
  62.     'c1' => ''$2y$10$7W/Fpxdbph0NcGwra9A8k.g4kx6EVIECXKv8cdjJXL2Xyf.Atp1RW'',
  63.     'c2' => [
  64.         (int) 0 => [
  65.             'name' => 'vision.gif',
  66.             'type' => 'image/gif',
  67.             'tmp_name' => 'D:\wamp\tmp\php72C9.tmp',
  68.             'error' => (int) 0,
  69.             'size' => (int) 24142
  70.         ],
  71.         (int) 1 => [
  72.             'name' => 'wyndham.concorde.01.jpg',
  73.             'type' => 'image/jpeg',
  74.             'tmp_name' => 'D:\wamp\tmp\php72CA.tmp',
  75.             'error' => (int) 0,
  76.             'size' => (int) 177040
  77.         ]
  78.     ],
  79.     'c3' => ''2016-05-23 14:54:59'',
  80.     'c4' => ''2016-05-23 14:54:59''
  81. ]
  82. $keys = [
  83.     (int) 0 => '/:c0\b/',
  84.     (int) 1 => '/:c1\b/',
  85.     (int) 2 => '/:c2\b/',
  86.     (int) 3 => '/:c3\b/',
  87.     (int) 4 => '/:c4\b/'
  88. ]
  89. $limit = (int) -1
  90. $key = 'c4'
  91. $param = ''2016-05-23 14:54:59''
  92. preg_replace - [internal], line ??
  93. Cake\Database\Log\QueryLogger::_interpolate() - CORE\src\Database\Log\QueryLogger.php, line 79
  94. DebugKit\Database\Log\DebugLog::log() - ROOT\vendor\cakephp\debug_kit\src\Database\Log\DebugLog.php, line 128
  95. Cake\Database\Log\LoggingStatement::_log() - CORE\src\Database\Log\LoggingStatement.php, line 83
  96. Cake\Database\Log\LoggingStatement::execute() - CORE\src\Database\Log\LoggingStatement.php, line 65
  97. Cake\Database\Connection::run() - CORE\src\Database\Connection.php, line 272
  98. Cake\Database\Query::execute() - CORE\src\Database\Query.php, line 188
  99. Cake\ORM\Table::_insert() - CORE\src\ORM\Table.php, line 1544
  100. Cake\ORM\Table::_processSave() - CORE\src\ORM\Table.php, line 1460
  101. Cake\ORM\Table::Cake\ORM\{closure}() - CORE\src\ORM\Table.php, line 1391
  102. Cake\Database\Connection::transactional() - CORE\src\Database\Connection.php, line 559
  103. Cake\ORM\Table::save() - CORE\src\ORM\Table.php, line 1392
  104. App\Controller\UsersController::add() - APP/Controller\UsersController.php, line 78
  105. Cake\Controller\Controller::invokeAction() - CORE\src\Controller\Controller.php, line 429
  106. Cake\Routing\Dispatcher::_invoke() - CORE\src\Routing\Dispatcher.php, line 114
  107. Cake\Routing\Dispatcher::dispatch() - CORE\src\Routing\Dispatcher.php, line 87
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top