参数2传递给App \ Http \ Controllers \

时间:2019-06-02 11:04:38

标签: mysql

为什么会出现以下错误?

  AdsController.php第69行中的

ErrorException:   传递给App \ Http \ Controllers \ AdsController :: pick_campaign()的参数2必须是App \ Websites的实例,给定为null,在/home/getad/dashboard.getad.ir/app/Http/Controllers/AdsController.php中调用在第256行并已定义

第69行:

'protected function pick\_campaign(IlluminateHttpRequest $request, AppWebsites $website, $campaign\_tbl, $params = array( ))'

第256行:

' $eligible = $this->pick\_campaign($request, NULL, $campaign\_tbl, $p);'

错误2

  

'Connection.php 631行中的QueryException:
  SQLSTATE [22001]:字符串数据,右截断:1406第1行的列'details'数据太长(SQL:插入transactionsusertype,{{1} },amountdetails)值(1,点击,8,a:1:{s:5:“ click”; O:10:“ AppClicks”:22:{s:8: “ _table”; s:6:“点击次数”; s:10:“时间戳”; b:0; s:11:“ _ fillable”; a:9:{i:0; s:5:“令牌”; i :1; s:8:“广告系列”; i:2; s:6:“横幅”; i:3; s:7:“网站”; i:4; s:2:“ ip”; i:5 ; s:4:“ date”; i:6; s:4:“ fake”; i:7; s:2:“ os”; i:8; s:7:“浏览器”;} s:13: “ _connection”; N; s:13:“ _ primaryKey”; s:2:“ id”; s:10:“ _ perPage”; i:15; s:12:“递增”; b:1; s:13: “ _attributes”; a:10:{s:5:“令牌”; i:814927090; s:6:“横幅”; N; s:8:“广告系列”; s:2:“ 13”; s:7 :“网站”; s:2:“ 20”; s:2:“ ip”; s:15:“ 109.125.175.129”; s:4:“日期”; O:8:“ DateTime”:3:{ s:4:“ date”; s:26:“ 2019-06-02 15:12:32.000000”; s:13:“ timezone_type”; i:3; s:8:“ timezone”; s:11:“ Asia / Tehran“;}:s:4:” fake“; i:0; s:2:” os“; s:7:” Windows“; s:7:”浏览器“; s:6:” Safari“; s:2:“ id”; i:2464;} s:11:“原始”; a:10:{s:5:“令牌”; i:814927090; s:6:“横幅”; N:s: 8:“广告系列”; s:2:“ 13”; s:7:“网站”; s:2:“ 20”; s:2:“ ip” ; s:15:“ 109.125.175.129”; s:4:“ date”; r:25; s:4:“ fake”; i:0; s:2:“ os”; s:7:“ Windows” ; s:7:“浏览器”; s:6:“ Safari”; s:2:“ id”; i:2464;} s:12:“ _ relations”; a:0:{} s:9:“ _ hidden “; a:0:{} s:10:” _ visible“; a:0:{} s:10:” _ appends“; a:0:{} s:10:” guarded“; a:1 :{i:0; s:1:“ ”;} s:8:“ _ dates”; a:0:{} s:13:“ _ dateFormat”; N; s:8:“ _ casts”; a:0:{} s:10:“ _ touches”; a:0:{} s:14:“ _ observables”; a:0:{} s:7:“ _ with”; a:0:{} s: 13:“ _ morphClass”; N; s:6:“ exists”; b:1;}},2019年6月2日15:12:32))'

0 个答案:

没有答案