eutervogel Posted July 18, 2023 Share Posted July 18, 2023 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: 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 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 Link to comment Share on other sites More sharing options...
dotnetic Posted July 18, 2023 Share Posted July 18, 2023 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. 2 Link to comment Share on other sites More sharing options...
eutervogel Posted July 18, 2023 Author Share Posted July 18, 2023 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? Link to comment Share on other sites More sharing options...
eutervogel Posted July 18, 2023 Author Share Posted July 18, 2023 Which file creates that specific output? Link to comment Share on other sites More sharing options...
Jan Romero Posted July 18, 2023 Share Posted July 18, 2023 32 minutes ago, eutervogel said: The checkboxes are both unchecked too. Try checking them since they DISable appended files. Also check your config file for “appendTemplateFile”: https://processwire.com/api/ref/config/#pwapi-methods-template-files 1 Link to comment Share on other sites More sharing options...
eutervogel Posted July 18, 2023 Author Share Posted July 18, 2023 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. 2 1 Link to comment Share on other sites More sharing options...
diogo Posted July 19, 2023 Share Posted July 19, 2023 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 ? 7 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now