我使用 XAMPP 和 PhpStorm,WordPress 安装在我的本地服务器上。当我突然在本地打开 WordPress URL 时发生此错误:
Parse error: syntax error, unexpected '<', expecting end of file in C:\Users\iman\AppData\Local\Temp\theD36B.tmp on line 2
在theD36B.tmp
我看到这个代码:
<?php
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /txt.txt was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
我发现这个文件是自动创建的,每次刷新页面时都会创建新文件。我不知道如何解决这个问题。
我解决了我的问题。我在主题functions.php 中有一个外部参考。这包含对不存在的网站的引用。
我不知道外部引用来自哪里,因为它在我的主题下载中不存在。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句