ecshop前台出现Notice: Undefined index

简介: 前台预览会出现Notice, Notice不是错误,是指通知的意思 Notice: Undefined index: lang in D:\wamp\www\includes\init.php on line 131Notice: Undefined index: lang in D:\wamp\www\includes\init.

前台预览会出现Notice,

Notice不是错误,是指通知的意思

Notice: Undefined index: lang in D:\wamp\www\includes\init.php on line 131

Notice: Undefined index: lang in D:\wamp\www\includes\init.php on line 139

Notice: Undefined index: lang in D:\wamp\www\includes\init.php on line 141

我们可以在init.php中屏蔽,在init.php的前几行找到

error_reporting(E_ALL);//E_ALL表示所有的都打开,错误等级设置


改成

error_reporting(E_ALL ^ E_NOTICE );//除去 E_NOTICE 之外的所有错误信息

相关文章
|
PHP
php模版引擎smarty出现Undefined index的解决方案
php模版引擎smarty出现Undefined index的解决方案
85 0
|
PHP
Undefined index: HTTP_REFERER 解决方法
Undefined index: HTTP_REFERER 解决方法
192 0
Undefined index: HTTP_REFERER 解决方法
|
JavaScript 关系型数据库 PHP
Notice: Undefined index: user in D:\phpStudy\WWW\js\ls\lsmc\php\add.php on line 9
原文:Notice: Undefined index: user in D:\phpStudy\WWW\js\ls\lsmc\php\add.php on line 9 (初用数据库(mysql)做用户登录注册这一块,遇到很多问题,通过搜索找到解决方案,把问题分享出来,希望可以帮助到和我一样问题的博友们,有问题还望多多指教。
1766 0
|
程序员 PHP
***PHP Notice: Undefined index: ..问题的解决方法
首先,这个不是错误,是warning。所以如果服务器不能改,每个变量使用前应当先定义。       方法1:服务器配置修改     修改php.ini配置文件,error_reporting = E_ALL & ~E_NOTICE       方法2:对变量进行初始化,规范书写(比较烦琐,因为有大量的变量)。
1298 0
|
PHP
php提示 Notice: Use of undefined constant name - assumed
我们知道php在数组中写变量有二几种方法,我们出现这种提示就是你写成了[name]这种所以会有Notice: Use of undefined constant name - assumed name提示了,解决办法参考下文。
1574 0
|
PHP
**PHP Notice: Undefined index:...问题的解决方法
这个问题可能是变量未定义造成的: if(!empty($current_user_id)){ $digg = $this->m_feed_digg->show_entity( array('digg_user_id' => $current_user_id, 'digg_feed_id' ...
1034 0
|
PHP
PHP Notice: Undefined index: ... 问题的解决方案
首先,这个不是错误,是warning。所以如果服务器不能改,每个变量使用前应当先定义。 方法1:服务器配置修改 修改php.ini配置文件,error_reporting = E_ALL & ~E_NOTICE 方法2:对变量进行初始化,规范书写(比较烦琐,因为有大量的变量)。
845 0
|
1月前
|
前端开发 小程序 JavaScript
微信小程序-Unhandled promise rejection TypeError: Cannot read property ‘get‘ of undefined
微信小程序-Unhandled promise rejection TypeError: Cannot read property ‘get‘ of undefined
TypeError: Cannot set properties of undefined (setting ‘resdata‘),res定义数据出现的问题,定义的方法用this换成that
TypeError: Cannot set properties of undefined (setting ‘resdata‘),res定义数据出现的问题,定义的方法用this换成that