警告:从空值创建默认对象[APP\vendors\Strings.php [英] Warnning:Creating default object from empty value [APP\vendors\Strings.php

查看:68
本文介绍了警告:从空值创建默认对象[APP\vendors\Strings.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 $ return-> Controller = array(); 



我在我的opendcn项目中使用cakephp。现在,我正在运行我的项目时收到警告:localhost:3000 / BASE / home / index.php



这是警告列表:

警告( 2 ):创建默认  object 来自空值[APP\vendors\Strings.php,line  380 ] 
警告( 2 ):提供的参数无效 foreach()[CORE \cake \libs \ model \datasources \dbo \ dbo_mysql.php,line 127 ]
警告( 2 ):array_keys()期望参数 1 为为数组, boolean 给定[CORE\cake\libs\model\datasources\dbo_source.php,line 1953 ]
警告(< span class =code-digit> 2 ):array_keys()期望参数 1 be array, boolean 给定[CORE\cake\libs\model\datasources\dbo_source.php,line 1966 ]
警告( 2 ):array_filter()期望参数 1 to 是数组,给定为[CORE \\\ t \ libs \ model = \ atatatources \ divo_source.php,line 1970 ]
警告( 2 ):array_values()期望参数 1 to 是数组,给定为[CORE \\\ t \ libs \ model = \ atatatources \ divo_source.php,line 1970 ]
警告( 2 ):array_unique()需要参数 1 为数组,null给定[CORE \cake \libs\model \ datasources \ dc_source.php,line < span class =code-digit> 2052 ]
警告( 2 ):array_unique()期望参数 1 为数组,null给定[CORE \cake \libs\model \ datasources \ dc_source.php,line < span class =code-digit> 1244 ]
警告( 2 ):implode()[ function .implode]:传递的参数无效[CORE\cake\libs\model\datasources\dbo_source.php,line 1463 ]
警告( 2 ):session_start()[ function .session-start]:不能发送会话cookie - 已经发送的标头(输出从C:\ xampp-portable \htdocs \ BASE \home \开始cake \libs\debugger.php:673)[CORE\cake\libs\cake_session.php,line 587 ]
警告(< span class =code-digit> 2 ):session_start()[ function .session-start]:无法发送会话缓存限制器 - 已发送的标头(输出从C:\ xampp-portable \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ span class =code-digit> 587 ]
警告( 2 ):无法修改标题信息 - 已经发送的标题(输出已开始)在C:\ xampp-portable\htdocs \ BASE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ code-digit> 588 ]
警告( 2 ):无法修改标头信息 - 已经发送的标头(输出从C开始: \xampp-portable\htdocs \\ BASE \home \ cake \libs\debugger.php:673)[CORE \\\\\\\\\\\\\\\\\\\\\ span>]
警告( 2 ):无法修改标题信息 - 已经发送的标题(输出从C:\ xampp-portable \htdocs \\开始\\ BASE \home \ cake \libs\debugger.php:673)[APP\ error.php,line 22 ]







可能我在设置和配置项目时遇到了一些问题。请帮我解决这个问题怎么办?

解决方案

return-> Controller = array();



我正在使用cakephp在我的opendcn项目中。现在,我正在运行我的项目时收到警告:localhost:3000 / BASE / home / index.php



这是警告列表:

警告( 2 ):创建默认  object 来自空值[APP\vendors\Strings.php,line  380 ] 
警告( 2 ):提供的参数无效 foreach()[CORE \cake \libs \ model \datasources \dbo \ dbo_mysql.php,line 127 ]
警告( 2 ):array_keys()期望参数 1 为为数组, boolean 给定[CORE\cake\libs\model\datasources\dbo_source.php,line 1953 ]
警告(< span class =code-digit> 2 ):array_keys()期望参数 1 be array, boolean 给定[CORE\cake\libs\model\datasources\dbo_source.php,line 1966 ]
警告( 2 ):array_filter()期望参数 1 to 是数组,给定为[CORE \\\ t \ libs \ model = \ atatatources \ divo_source.php,line 1970 ]
警告( 2 ):array_values()期望参数 1 to 是数组,给定为[CORE \\\ t \ libs \ model = \ atatatources \ divo_source.php,line 1970 ]
警告( 2 ):array_unique()需要参数 1 为数组,null给定[CORE \cake \libs\model \ datasources \ dc_source.php,line < span class =code-digit> 2052 ]
警告( 2 ):array_unique()期望参数 1 为数组,null给定[CORE \cake \libs\model \ datasources \ dc_source.php,line < span class =code-digit> 1244 ]
警告( 2 ):implode()[ function .implode]:传递的参数无效[CORE\cake\libs\model\datasources\dbo_source.php,line 1463 ]
警告( 2 ):session_start()[ function .session-start]:不能发送会话cookie - 已经发送的标头(输出从C:\ xampp-portable \htdocs \ BASE \home \开始cake \libs\debugger.php:673)[CORE\cake\libs\cake_session.php,line 587 ]
警告(< span class =code-digit> 2 ):session_start()[ function .session-start]:无法发送会话缓存限制器 - 已发送的标头(输出从C:\ xampp-portable \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ span class =code-digit> 587 ]
警告( 2 ):无法修改标题信息 - 已经发送的标题(输出已开始)在C:\ xampp-portable\htdocs \ BASE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ code-digit> 588 ]
警告( 2 ):无法修改标头信息 - 已经发送的标头(输出从C开始: \xampp-portable\htdocs \\ BASE \home \ cake \libs\debugger.php:673)[CORE \\\\\\\\\\\\\\\\\\\\\ span>]
警告( 2 ):无法修改标题信息 - 已经发送的标题(输出从C:\ xampp-portable \htdocs \\开始\\ BASE \home \ cake \libs\debugger.php:673)[APP\ error.php,line 22 ]







可能我在设置和配置项目时遇到了一些问题。请帮我解决这个问题怎么办?


$return->Controller = array();


I am using cakephp in my opendcn project. Now, I am getting warning while I am running my project in :localhost:3000/BASE/home/index.php"

And this is warning list:

Warning (2): Creating default object from empty value [APP\vendors\Strings.php, line 380]
Warning (2): Invalid argument supplied for foreach() [CORE\cake\libs\model\datasources\dbo\dbo_mysql.php, line 127]
Warning (2): array_keys() expects parameter 1 to be array, boolean given [CORE\cake\libs\model\datasources\dbo_source.php, line 1953]
Warning (2): array_keys() expects parameter 1 to be array, boolean given [CORE\cake\libs\model\datasources\dbo_source.php, line 1966]
Warning (2): array_filter() expects parameter 1 to be array, null given [CORE\cake\libs\model\datasources\dbo_source.php, line 1970]
Warning (2): array_values() expects parameter 1 to be array, null given [CORE\cake\libs\model\datasources\dbo_source.php, line 1970]
Warning (2): array_unique() expects parameter 1 to be array, null given [CORE\cake\libs\model\datasources\dbo_source.php, line 2052]
Warning (2): array_unique() expects parameter 1 to be array, null given [CORE\cake\libs\model\datasources\dbo_source.php, line 1244]
Warning (2): implode() [function.implode]: Invalid arguments passed [CORE\cake\libs\model\datasources\dbo_source.php, line 1463]
Warning (2): session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [CORE\cake\libs\cake_session.php, line 587]
Warning (2): session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [CORE\cake\libs\cake_session.php, line 587]
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [CORE\cake\libs\cake_session.php, line 588]
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [CORE\cake\libs\controller\controller.php, line 746]
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [APP\error.php, line 22]




May be I have some problem to setup and configure my project. Please help me how do I solve this problem?

解决方案

return->Controller = array();


I am using cakephp in my opendcn project. Now, I am getting warning while I am running my project in :localhost:3000/BASE/home/index.php"

And this is warning list:

Warning (2): Creating default object from empty value [APP\vendors\Strings.php, line 380]
Warning (2): Invalid argument supplied for foreach() [CORE\cake\libs\model\datasources\dbo\dbo_mysql.php, line 127]
Warning (2): array_keys() expects parameter 1 to be array, boolean given [CORE\cake\libs\model\datasources\dbo_source.php, line 1953]
Warning (2): array_keys() expects parameter 1 to be array, boolean given [CORE\cake\libs\model\datasources\dbo_source.php, line 1966]
Warning (2): array_filter() expects parameter 1 to be array, null given [CORE\cake\libs\model\datasources\dbo_source.php, line 1970]
Warning (2): array_values() expects parameter 1 to be array, null given [CORE\cake\libs\model\datasources\dbo_source.php, line 1970]
Warning (2): array_unique() expects parameter 1 to be array, null given [CORE\cake\libs\model\datasources\dbo_source.php, line 2052]
Warning (2): array_unique() expects parameter 1 to be array, null given [CORE\cake\libs\model\datasources\dbo_source.php, line 1244]
Warning (2): implode() [function.implode]: Invalid arguments passed [CORE\cake\libs\model\datasources\dbo_source.php, line 1463]
Warning (2): session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [CORE\cake\libs\cake_session.php, line 587]
Warning (2): session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [CORE\cake\libs\cake_session.php, line 587]
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [CORE\cake\libs\cake_session.php, line 588]
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [CORE\cake\libs\controller\controller.php, line 746]
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp-portable\htdocs\BASE\home\cake\libs\debugger.php:673) [APP\error.php, line 22]




May be I have some problem to setup and configure my project. Please help me how do I solve this problem?


这篇关于警告:从空值创建默认对象[APP\vendors\Strings.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆