搭建dabr出现Notice: Undefined index/variable

因为Twitter在6月30将不再支持http basic auth登陆,原来搭建的dabr不支持OAuth,为了早做准备,现在开始折腾支持OAuth的网页客户端和API。在openwebster的免费空间下一切顺利,dabr和twip都瞬间搞定,安心的用了几天,可是今天早晨起来用Twitter for iPhone的时候,发现不能更新,原来是openwebster打不开了,要随时能上推看来得做两手准备。

于是我在另一个空间上也放了dabr,接着问题也来了,打开dabr迎接我的总是Notice: Undefined index和Notice: Undefined variable,登陆框却又能显示,赶紧Google找答案,有这个问题的还真不少,这是php的常见问题,网上也给出了解决办法:

修改php.ini
将: error_reporting = E_ALL
修改为:error_reporting = E_ALL & ~E_NOTICE
如果没有“error_reporting = E_ALL”直接添加“error_reporting = E_ALL & ~E_NOTICE ”
如果什么错误都不想让显示,直接修改: phperz.com
display_errors = Off
如果你没有php.ini的修改权限,可在php头部加入
ini_set("error_reporting","E_ALL & ~E_NOTICE");
即可

我修改php.ini后重启apache搞定,网上给出的方法这个最简单,如果你不能修改php.ini也有办法,不过要麻烦一点,具体方法自行Google。

我猜~这些文章你可能也感兴趣

::分类:网络相关 . :: 标签: , . :: 收藏:permalink. 发布评论 或Trackback:Trackback URL.

发布评论

您的邮箱 永远不会 被公布。 加 * 处为必填。

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>