Jump to:

23360 Posts in 18124 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » 111111 in Header

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 959 Views
  • OBITS
    Avatar
    Community Member
    17 Posts

    111111 in Header Link to this post

    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

    Attached Files
  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: 111111 in Header Link to this post

    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/

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: 111111 in Header Link to this post

    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.

  • OBITS
    Avatar
    Community Member
    17 Posts

    Re: 111111 in Header Link to this post

    Thx for your help i will check that.

  • OBITS
    Avatar
    Community Member
    17 Posts

    Re: 111111 in Header Link to this post

    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>

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: 111111 in Header Link to this post

    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

  • OBITS
    Avatar
    Community Member
    17 Posts

    Re: 111111 in Header Link to this post

    thx martimiz

    That's to high for me I will give them a friendly php-developer. Maybe I have luck.

    959 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.