WordPress出现“Notice: Undefined variable: sign in /phpstudy/www/”
我采用的是Linux版phpstudy
PHP配置文件:/phpstudy/server/php/etc/php.ini
解决方法:
编辑php.inierror_reporting设置:找到error_reporting = E_ALL修改为error_reporting = E_ALL & ~E_NOTICE重启 phpstudy restart发现wordpress网站错误还在。最后发现,在wp-config.php里,找到define('WP_DEBUG', false);如果是true要改为false,最后错误终于消除。