Jump to content

Recommended Posts

Posted

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? 

post-1057-0-03367200-1361277847_thumb.pn

Posted

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.

Posted

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.

  • Like 1
Posted

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 :P I wouldn't be surprized if maybe any of that would produce it?

Anyway, start removing things until it's gone. 

Posted

Soma is right, that's a lot of third party code. If you load the page without javascript, does it still appear?

Posted

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. 

Posted

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?

Posted
I know its not javascript since its not appearing in the source.

In that case CSS would be the guilty...

Posted

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

Posted

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.
Posted

@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'.

Posted
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.

Posted

@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 :)

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