21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 797 Views |
-
111111 in Header

17 May 2011 at 6:21pm
Hi Community
I had to change the webserver and now I have the Problem, that in my header a lot of 1 but I didn't change something. Can somebody help.
thx
-
Re: 111111 in Header

17 May 2011 at 10:09pm
hmmmm I'd search all ss,php and js files for '1111' if I couldn't find it I'd call the webhost.
I once had extra tags injected into all my pages because I'd used a folder name reserved for their "sitebuilder" app, took an hour on the phone to get then to have them favor me with the information, thank god for http://www.saynoto0870.com/ -
Re: 111111 in Header

17 May 2011 at 10:30pm
This could also be some loop that prints one 1 at the time
Maybe the result of a different php version on the new server. So just before contacting the webhost
you could:
In the html source of the generated page check where the 1111... occurs. Next try to pin that down to a template in your theme. Page.ss, layout/Page.ss or maybe something like Includes/header.ss. Find out if there's a <% control %> loop in there somewhere.
If you see something like <% control SomeVar %> .... <% end_control %> check the contents for a '1'
Sometimes a control loop will try to show objects even though theyre empty... To prevent that try surrounding the control structure with a check like <% if SomeVar %> ... <% end_if %> Remember to ?flush=1 afterwards. -
Re: 111111 in Header

19 May 2011 at 10:50pm
I'm sorry but it doesn't found the the problem my page.ss. But I Think it must be in the because in another the I'dont have the same Problem:
Maybe you can help me:
http://www.schrittederhoffnung. ch/
SourceCode for PAGE.ss
<!--
design by styleshout(http://www.styleshout.com/)
adapted to SilveStripe by SilverStriped (http://silverstriped.com)
-->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" ><head>
<% base_tag %>
$MetaTags
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body>
<div id="wrap">
<div id="top-bg"></div>
<div id="header">
<h1 id="logo-text"><a href="home" title="">Schritte der Hoffnung</a></h1>
<p id="slogan">Unser Wunsch, ihre Hoffnung.</p>
<div id="header-links">
<p>
<a href="home">Home</a> |
<a href="organisation/kontakt">Kontakt</a> |
<a href="impressum">Impressum</a> |
</p>
</div>
</div>
<div id="header-photo"></div><div id="nav">
<% include Navigation %>
</div>
<div id="content-wrap">
<div id="main">
$Layout
<br /></div>
<div id="sidebar">
<% include Navigation2 %>
</div>
</div>
<div id="footer-wrap">
<div id="footer-columns">
<!-- <div class="col3">
<h3>Tincidunt</h3>
<ul>
<li><a href="index.html">consequat molestie</a></li>
<li><a href="index.html">sem justo</a></li>
<li><a href="index.html">semper</a></li>
<li><a href="index.html">magna sed purus</a></li>
<li><a href="index.html">tincidunt</a></li>
</ul>
</div><div class="col3-center">
<h3>Sed purus</h3>
<ul>
<li><a href="index.html">consequat molestie</a></li>
<li><a href="index.html">sem justo</a></li>
<li><a href="index.html">semper</a></li>
<li><a href="index.html">magna sed purus</a></li>
<li><a href="index.html">tincidunt</a></li>
</ul>
</div><div class="col3">
<h3>Praesent</h3>
<ul>
<li><a href="index.html">consequat molestie</a></li>
<li><a href="index.html">sem justo</a></li>
<li><a href="index.html">semper</a></li>
<li><a href="index.html">magna sed purus</a></li>
<li><a href="index.html">tincidunt</a></li>
</ul>
</div></div>
<div id="footer-bottom">
<% include Footer %>
</div> --><!-- footer ends-->
</div>
<!-- wrap ends here -->
</div></body>
</html> -
Re: 111111 in Header

21 May 2011 at 4:30am
First of all I would move the 'design by ...' bit to somewhere below the doc header, as I don't think you should have anything above that... But I don't think that will solve your problem.
It looks like it has something to do with your navigation, since the number of 1's differ when the number of items in your subnav are different. Maybe somewhere in your php code you have a echo '1'; statement that was supposed to check if a function is being called?
That happended to me once or twice, and is always a pain
-
Re: 111111 in Header

24 May 2011 at 1:00am
thx martimiz
That's to high for me I will give them a friendly php-developer. Maybe I have luck.
| 797 Views | ||
|
Page:
1
|
Go to Top |


