WARNING: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/test.com/protected/controller/ProgramController.php on line 163

发布时间:2024-11-25 03:58

'Making a business presentation in front of an audience',要有自信 #生活技巧# #职场沟通技巧# #商务英语#

/www/wwwroot/test.com/protected/lib/speed.php on line 524

519.      $msg = "ERROR";
520.      if($errno == E_WARNING)$msg = "WARNING";
521.      if($errno == E_NOTICE)$msg = "NOTICE";
522.      if($errno == E_STRICT)$msg = "STRICT";
523.      if($errno == 8192)$msg = "DEPRECATED";

524.      err("$msg: $errstr in $errfile on line $errline");

525.  }
526.  function err($msg){
527.      $msg = htmlspecialchars($msg);
528.      $traces = debug_backtrace();
529.      if(!empty($GLOBALS['err_handler'])){

/www/wwwroot/test.com/protected/controller/ProgramController.php on line 163

158.          $sql = "SELECT * FROM qt_sources WHERE content_type='".$record["content_type"]."' AND content_status=1 ORDER BY RAND() LIMIT 12";        
159.          $recs = $QtSources->query($sql); 
160.          foreach($recs as $k=>$v){
161.              $recs[$k]["thumbnail"] = !empty($v["thumbnail"])?json_decode($v["thumbnail"],true):$this->config["default_thumbnail"];
162.              $thumbnail = $recs[$k]["thumbnail"];

163.              if(count($thumbnail)>0){

164.                  $recs[$k]["thumbnail"] = $thumbnail[0]["img"];
165.              }else{
166.                  $recs[$k]["thumbnail"] = $this->config["default_thumbnail"];
167.              }
168.              $recs[$k]["thumbnail_count"] = 0;

/www/wwwroot/test.com/protected/lib/speed.php on line 96

91.      exit;
92.  };
93.  if(!method_exists($controller_name, $action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
94. 
95.  $controller_obj = new $controller_name();

96.  $controller_obj->$action_name();

97. 
98.  if($controller_obj->_auto_display){
99.      $auto_tpl_name = (empty($__module) ? '' : $__module.DS).$__controller.'_'.$__action.'.html';
100.      if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
101.  }

/www/wwwroot/test.com/index.php on line 8

3.  header('Access-Control-Allow-Origin: *');
4.  header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
5.  header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
6.  define('APP_DIR', realpath('./'));
7.  define("APP_PATH",dirname(__FILE__));

8.  require(APP_DIR.'/protected/lib/speed.php');

网址:WARNING: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/test.com/protected/controller/ProgramController.php on line 163 https://www.yuejiaxmz.com/news/view/249810

相关内容

Database Exception – yii\db\Exception
Database Exception – yii\db\Exception
爱咖啡爱生活/artisan(工匠)
Database Exception – yii\db\Exception
Database Exception – yii\db\Exception
济南驰骋公司/JFlow
‘str‘ object cannot be interpreted as an integer
iuoly/汤臣亿品(springboot+vue智慧社区管理系统)
冯锐/healthy
MINOTTI

随便看看