立即注册【分享大片】 登录
BluRayCD Forum 返回首页

kmvodys的个人空间 https://forum.bluraycd.com/?3 [收藏] [复制] [RSS]

日志

PHP Notice: Undefined index: fromuid in discuz X1.5解决方法

已有 1120 次阅读2012-4-7 14:58 |个人分类:php配置|系统分类:服务器| PHP, fromuid, discuz

  在安装discuz X1.5 的时候出现错误,安装discuz X1.5装的过程中没出现问题,但安装完成后打开域名出现下面提示
PHP Notice: Undefined index: fromuid in D:\WebRoot\discuz\index.php on line 118
PHP Notice: Undefined index: fromuser in D:\WebSites\discuz\index.php on line 120 
从官网找了很久没有找到答案,官网提示:需要将php配置文件关闭Notice级别警告,还是不能解决最后看到相关php的一个定义函数error_reporting()error_reporting()定义:设置 PHP 的报错级别并返回当前级别。费话不多说了,解决方法如下图所示:用Editplus打开根目录下的index.php如下图

  在第二、三、四行分别插入error_reporting(0);、error_reporting(E_ERROR | E_WARNING | E_PARSE);、error_reporting(E_ALL);意思大概是:关闭用户自定义的错误和警告,执行了某些操作,然后恢复到原始的报错级别:
如下图所示:

  这样就可以解决上面所出现的“PHP Notice: Undefined index: fromuid in” PHP错误。
如果仍然没有解决“PHP Notice: Undefined index: fromuid in”此错误可直接加一句“error_reporting(E_ERROR | E_WARNING | E_PARSE);”即可。如下图所示:

  这样就可以解决“PHP Notice: Undefined index: fromuid in ”的错误了。希望对您有所帮助。如有不同解决方法及意见请留言!

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册【分享大片】

小黑屋|手机版|Archiver|4K蓝光论坛

GMT+8, 2024-4-17 02:12

Copyright © 2001-2021, Gadaddy Cloud.

返回顶部