本帖最后由 Qter 于 2020-4-16 11:15 编辑
http://localhost/index.php
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in F:\github\he_chengjin@outlook.com\ecmos\includes\libraries\time.lib.php on line 27
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in F:\github\he_chengjin@outlook.com\ecmos\includes\libraries\time.lib.php on line 100
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in F:\github\he_chengjin@outlook.com\ecmos\eccore\controller\message.base.php on line 148
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in F:\github\he_chengjin@outlook.com\ecmos\eccore\controller\message.base.php on line 157
Notice: Undefined variable: _SESSION in F:\github\he_chengjin@outlook.com\ecmos\app\frontend.base.php on line 540
Notice: Use of undefined constant SESS_ID - assumed 'SESS_ID' in F:\github\he_chengjin@outlook.com\ecmos\app\frontend.base.php on line 84
Fatal error: Call to a member function get() on a non-object in F:\github\he_chengjin@outlook.com\ecmos\app\frontend.base.php on line 84
这一行的源代码如下:
$this->assign('cart_goods_kinds', $cart->get_kinds(SESS_ID, $this->visitor->get('user_id')));
产生这个错误的原因很可能是$this->visitor这个对象未正确实例化。
解决这个问题,我的办法很简单,加入对变量的检查,以下是我修改后的内容:
$this->assign('cart_goods_kinds', is_object($cart) && is_object($this->visitor) ? $cart->get_kinds(SESS_ID, $this->visitor->get('user_id')) : 0);
http://localhost/admin/index.php
Fatal error: Call to a member function get_users_count() on a non-object in F:\github\he_chengjin@outlook.com\ecmos\includes\ecapp.base.php on line 52
根目录下的includes文件夹下的ecapp.base.php该文件的$this->assign('query_user_count', $this->_session->get_users_count());这句话修改后为:$this->assign('query_user_count', is_object($this->_session) ? $this->_session->get_users_count() : 0);
其它相关
问题原因有一下几点: 1.你的APP文件没有对应的Lang文件; 2.你的APP文件和Lang文件如果是UTF编码的,可能是有BOM; 3.你的APP文件和Lang文件代码里面最后的php结束符(?>)后面有空行; 解决办法: 先查看问题1,如果确实没有对应的Lang文件,则添加之(添加方法,举个例子:如果你的APP文件是app/***.app.php,那么你的Lang文件则放在 languages/sc-utf-8/***.lang.php下) 在查看问题2,用dw等软件编辑器打开app文件或者lang文件,然后另存为,在弹出的窗口把bom的复选框去掉 再查看问题3,用dw等软件编辑器打开app文件或者lang文件,定位到代码最后一行,把php结束符(?>)后面的空白行去掉。
|