maddmac Posted February 19, 2013 Share Posted February 19, 2013 Having an issue with a stray character that I cannot seem to get rid of. I have a "1" that appears at the bottom of my templates after the the html tag. The "1" is not in the main template file or the footer include file. Any suggestions? Link to comment Share on other sites More sharing options...
Joss Posted February 19, 2013 Share Posted February 19, 2013 Have you checked within any PHP you might have at the very head? Before the opening <html> If that is echoing out anything, it can appear at the bottom. Oddly enough. Link to comment Share on other sites More sharing options...
maddmac Posted February 19, 2013 Author Share Posted February 19, 2013 Thanks Joss, but I do not have any code executing in this area. Link to comment Share on other sites More sharing options...
Philipp Posted February 19, 2013 Share Posted February 19, 2013 Maybe a module that writes this. I've had once activated the HelloWorldExample module and after a hour I figured out, that it writes a "Hello World" at the end of every page. 1 Link to comment Share on other sites More sharing options...
maddmac Posted February 19, 2013 Author Share Posted February 19, 2013 Only using Simple Tree Menu Module Link to comment Share on other sites More sharing options...
Joss Posted February 19, 2013 Share Posted February 19, 2013 Just a thought, but that is the ID of the home page - 1 1 Link to comment Share on other sites More sharing options...
Soma Posted February 19, 2013 Share Posted February 19, 2013 I also would hinted at some module that hooks some function. What you mean with Simple Tree Menu Module? Do you mean MarkupSimpleNavigation? Well it's not doing anything like that anyway. Well no module.... you got 11 jquery modules in there I wouldn't be surprized if maybe any of that would produce it? Anyway, start removing things until it's gone. Link to comment Share on other sites More sharing options...
diogo Posted February 19, 2013 Share Posted February 19, 2013 Soma is right, that's a lot of third party code. If you load the page without javascript, does it still appear? Link to comment Share on other sites More sharing options...
maddmac Posted February 19, 2013 Author Share Posted February 19, 2013 MarkupSimpleNavigation.module is the one I am using I tried stripping all the jquery scripts but still I get the stray "1". I know its not javascript since its not appearing in the source. Link to comment Share on other sites More sharing options...
Soma Posted February 19, 2013 Share Posted February 19, 2013 I know its not javascript since its not appearing in the source. Do you mean in the source of the js or html? Does it appear when inspecting code with console webdeveloper but not when viewing static html source? Link to comment Share on other sites More sharing options...
maddmac Posted February 19, 2013 Author Share Posted February 19, 2013 It shows up either way in the static source and the console. Link to comment Share on other sites More sharing options...
diogo Posted February 19, 2013 Share Posted February 19, 2013 I know its not javascript since its not appearing in the source. In that case CSS would be the guilty... Link to comment Share on other sites More sharing options...
Joss Posted February 19, 2013 Share Posted February 19, 2013 ...party How would css generate a "1" without using content? It feels a bit like a count, I must admit. Is the page publicly viewable? Link to comment Share on other sites More sharing options...
arjen Posted February 20, 2013 Share Posted February 20, 2013 I had this once while using include/include_once and variables. I tried doing something like: $content = include(/path/to/file);That resulted in a "1". My solution was to use the $content var in the included file. Link to comment Share on other sites More sharing options...
DaveP Posted February 20, 2013 Share Posted February 20, 2013 @arjen I think that would be because the include() was being treated by php as a boolean and returning 1 for true, as in php saying 'yes, you could include that file'. Link to comment Share on other sites More sharing options...
diogo Posted February 20, 2013 Share Posted February 20, 2013 How would css generate a "1" without using content? Joss, try this: html:after{ content: "1"; } It's not very likely that this is the problem, but if there is no "1" in the source I don't see another reason. Link to comment Share on other sites More sharing options...
Joss Posted February 20, 2013 Share Posted February 20, 2013 See ... you used "content" !! 1 Link to comment Share on other sites More sharing options...
diogo Posted February 20, 2013 Share Posted February 20, 2013 I did use "content", but i didn't use content 1 Link to comment Share on other sites More sharing options...
arjen Posted February 20, 2013 Share Posted February 20, 2013 @arjen I think that would be because the include() was being treated by php as a boolean and returning 1 for true, as in php saying 'yes, you could include that file'. Thanks! That makes sense 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