Jump to content

Recommended Posts

Posted

Hello,

my english is not good enough to describe my problem better in the topic.
I'm working on a new site. Fresh blank install. I wrote a template file and everything is working so far but at the end of that page a new document is added for some reason so it looks like this:
image.thumb.png.e731999ea576581a4fc8948bcd64e790.png

right after my closing html tag this is added:

</html><!DOCTYPE html>
<html lang="en">
	<head id="html-head">
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<title>Home</title>
		<link rel="stylesheet" type="text/css" href="/site/templates/styles/main.css" />
		<script src="/site/templates/scripts/main.js"></script>
	</head>
	<body id="html-body">

		<p id="topnav">
			<a href='/'>Home</a> / <a href='/einstellungen/'>Einstellungen</a> / <a href='/arbeiten/'>Arbeiten</a> / <a href='/test/'>test</a>		</p>
		
		<hr />
		
		<h1 id="headline">
						Home		</h1>
		
		<div id="content">
			Default content
		</div>
	
				<ul> 
			<li><a href='/einstellungen/'>Einstellungen</a></li><li><a href='/arbeiten/'>Arbeiten</a></li><li><a href='/test/'>test</a></li>		</ul>	
				
				<p><a href='/pw-login/page/edit/?id=1'>Edit this page</a></p>
			
	</body>
</html>

I could not find a source for that and I thought maybe it's caused by something in my template file so I created a new file, left it completely empty, set it up as a template, created a new page with this template and what should I say? It's exactly the same html
image.png.5ae7f5f7126d2f75da7deab92c63c46e.png

I can't get it. Can someone please give me a hint, what could cause this?
Thanks in advance

PS: I just thought maybe that's because I'm logged in and debug mode is on, but no, it's the same for logged out users except the Edit this page link, of course

Posted

Please post the content of your template file where the error occurs. Do you prepend or append files to the template? I think this might be the cause. Go to your template in ProcessWire and to the files tab. Disable prepending and appending any files, and see if that fixes the error.

image.thumb.png.ad782cb21334444fcb7cdfd1de92f196.png

  • Like 2
Posted

Thanks for your answer,

but there is not a single character in my template file. As I wrote above, I've created a new empty one for testing.
The checkboxes are both unchecked too.

Strange isn't it?

Posted

Yep, I just wrote that and went for a walk with my dog. I was almost 50m away as I realized, that maybe I had misread the checkbox text.

And yes, that did the trick.

Sorry for my stupidity.
 

  • Like 2
  • Haha 1
Posted
On 7/18/2023 at 1:36 PM, eutervogel said:

Sorry for my stupidity inexperience.

@eutervogel I corrected that for you. And there's nothing to be sorry about ?

  • Like 7

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...