我在MAMP服务器上安装了WordPress。在安装了一些插件后,我突然得到了一个‘error500’,但只有当我的MacBook连接了wifi的时候。关闭wifi解决了这个问题,但重新打开它或上传到实时服务器会导致问题再次出现。
在查看PHP日志之后,我得到了:
PHP Parse error: syntax error, unexpected '<', expecting end of file
in /private/var/tmp/theme_temp_setupGlYc25 on line 2
和:
PHP Warning: Use of undefined constant REQUEST_URI - assumed
'REQUEST_URI' (this will throw an Error in a future version of PHP)
in /Applications/MAMP/htdocs/wordpress/wp-
content/themes/THEME_NAME/functions.php on line 48
卸载我最近安装的插件没有解决这个问题,重新安装MAMP或将安装转移到新的本地主机也没有解决这个问题。
https://stackoverflow.com/questions/50777815
复制相似问题