临时文件夹中的语法错误

临时文件夹中的语法错误

问题描述:

I use XAMPP and PhpStorm and WordPress was installed in my local server. When I open WordPress URL in local suddenly this error is happening:

Parse error: syntax error, unexpected '<', expecting end of file in C:\Users\iman\AppData\Local\Temp\theD36B.tmp on line 2

and in the theD36B.tmp I see this code:

<?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>

I found that this file is created automatically and any time I refresh the page new file is created. I do not know how this problem can be solved.

I fixed my problem. I had an external reference in the themes functions.php. This contained a reference to a not existing website.

I don't know where the external reference came from, because it doesn't exist in my theme download.