Page Footer not showing.

Hello Guys,

This is my first post and time to join this forum because I need help, but I also want to learn more about php.

My issue is I set up a website embeded the footer in the index page. it was working until this morning it’s not showing.

This is driving me nut because I can’t figure out out, so any help will be much appreciated.

website: cuisine marocaine dot com
index page at /WHP_index.php
footer page WHP_footer.php

code:

[php]


<?php
@include (“WHP_footer.php”);
?>

[/php]

Any suggestions to fix this will be much appreciated.

You shouldn’t use @ as it surpresses errors which again makebit impossible to figure out what’s wrong.

Remove the @ and ser if you get any errors :slight_smile:

Thank you Jim :slight_smile: I did but it’s the same problem. It is strange why the footer is not showing but the other parts are showing just fine i.e WHP_header.php

Make sure you have error reporting on

You can do this by adding this to the beginning of your script
[Php]error_reporting(E_ALL);
ini_set(‘display_errors’,‘1’);[/php]

If you still get nothing pleade add the code of the footer file.

I got the following error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/path/cuisinemarocaine.com/WHP_index.php:2) in /home/cuisinemar0c/cuisinemarocaine.com/WHP_index.php on line 3

EDIT: I removed a space and the error is gone but i still have my footer missing ???

Hello,

Please add the code from both the index.php (all of it) and the code from the footer.php. Sometimes it’s not the line that includes it that might be the problem but something else on either the index page for the footer page. For example, you might have some code above the include statement that might make the page die before it even reaches that point; same with the footer page. Add those page codes and we’ll see what’s going on.

Cheers!

Thank you OpzMaster.

Here’s the index code:

[php]<?php
session_start ();
@include (“configcore/includes.php”);

if (isset ( $_GET [‘sendsubmitlink’] ))
{
$GLOBALS[‘pagetitle’]=" “;
}
else
{
$GLOBALS[‘pagetitle’]=” ";
}

?>

<?php echo $GLOBALS['websitetitle'].", recettes de la cuisine marocaine"; ?> <?php @include ("configcore/headinclude.php"); ?> <?php @include ("WHP_pubtop.php"); ?>
<?php @include ("WHP_header.php"); ?>
<?php @include ("WHP_navbar.php"); ?>
            <td width="29" valign="top">&nbsp;</td>
              <td valign="top" width="100%" align="center" style="vertical-align:top;">
            <div class="wrapper">
            
            
            <div style="overflow-y:hidden;height:400px;"><iframe src="WHP_lastrecipetop.php" style="width:600px;height:400px;overflow:hidden;margin-right:-20px;" scrolling="no" ></iframe></div>
            
            <iframe src="WHP_recipetoprandom.php" style="width:660px;height:270px;overflow: hidden;" ></iframe>
<?php @include ("adsense/468x60.htm"); ?> <?php @include ("welcome.htm"); ?>
            <?php
            @include ("WHP_lastvideopoll.php");
            ?>
          
          <?php
            @include ("WHP_lastadvice.php");
            ?>
            
            
            <?php
            @include ("WHP_lastadvice2.php");
            ?>
            
            
            <?php
            @include ("WHP_lastrecipebottom.php");
            ?>

            
            </div>  
            </td>

            <td width="13" valign="top">&nbsp;</td>
            <td width="209" valign="top" align="right"><?php
            @include ("WHP_rightmenu.php");
            ?>
                      </td>
          </tr>


        </table>
        </div>
        </td>
      </tr>

    </table>
    </td>
  </tr>

  <tr>
    <td><?php
    @include ("WHP_footer.php");
    ?>
          </td>
  </tr>
</table>
</div>
</td>
[/php]

And the footer code:

[php]<?php
@include (“WHP_pubbottom.php”);
?>

/* FOOTER */

a:link {color: #be661e; text-decoration: none; }
a:active {color: #be661e; text-decoration: none; }
a:visited {color: #57514d; text-decoration: none; }
a:hover {color: #57514d; text-decoration: none; }

#ItoubLogo { position:absolute; right:0; bottom:25px; }
#ItoubLogo a { display:block; width:127px; height:25px; background-image:url(…/images/itoub_footer_logo.png); }
#ItoubLogo span { display:none; }

#footer{
background-color:#fcab69;
padding-bottom:15px;
margin:0 auto;
width:987px;
}

#footer .acces_rapide{
color:#be661e;
font-size:11px;
text-align:left;
margin-left:35px;
position:relative;
top:10px;
}

.bloc_footer{
width:985px;
/border:#be661e 1px solid;/
margin:0 auto;
}
.footer_txt{
border-right:1px dashed #be661e;
color:#be661e;
float:left;
margin-top:25px;
padding-left:35px;
padding-right:10px;
text-align:left;
width:150px;
font-size:11px;
}

.footer_txt li{
list-style-type:none;
}

.footer_txt li a{
  color:#be661e;
  text-decoration:none;
}

.footer_txt li a:hover{
  color:#8b6128;
}
<div id="footer" style="width:1018px"><!--d&eacute;but de la div footer-->
  <p class="acces_rapide">

      <span style="font-size:14px;font-weight:bold; text-decoration:underline;">Acc&egrave;s Rapide :</span> 

        <a href="http://www.cuisinemarocaine.com/annuaire-restaurantmaroc.html">Restaurants Marocains</a> - 

  <a href="http://www.cuisinemarocaine.com/rechercherecette.html">Rechercher recettes</a> - 

        <a href="http://www.cuisinemarocaine.com/annuaire-traiteure.html">Traiteurs au maroc</a> - 


       



        
       </p>

     <p class="acces_rapide">

       <span style="font-size:14px;font-weight:bold; text-decoration:underline;">En savoir plus:</span> 

        <a href="http://forums.cuisinemarocaine.com">Rejoignez la communaut&eacute; </a> - 

        <a href="http://www.cuisinemarocaine.com/createnewaccount.html">Inscrivez-vous </a> - 

        <a href="http://www.cuisinemarocaine.com/pageinfo-2-Qui%20sommme-nous.html">Qui sommes-nous ?</a> - 

        
        <a href="http://www.cuisinemarocaine.com/pageinfo-11-Privacy Policy.html">Politique de confidentialité</a> - 
                   <a href="http://www.cuisinemarocaine.com/pageinfo-4-Termes%20et%20conditions.html">Termes et conditions</a> - 



      </p>

      <p class="acces_rapide">

       <span style="font-size:14px;font-weight:bold; text-decoration:underline;">Les autres sites de marocdev:</span>    

        <!-- <a href="http://www.marocdev.com/"  target="_blank">marocdev</a> - -->

        <a href="http://www.saidiamed.com"  target="_blank">Saidia Med</a> 

   

      </p>

    

    <div>

        <ul class="footer_txt"><!--d&eacute;but de la div footer_txt--> 

          <li>Recettes traditionnelles</li>

             <li>&nbsp;</li>

             

                           

           <li><a href="http://www.cuisinemarocaine.com/recette-63-Salade%20D%E2%80%99Aubergines-%20Zaalouk%20.html" title="zaalouk" >Salade zaalouk (aubergines)</a></li>

        

                      

           <li><a href="http://www.cuisinemarocaine.com/recette-2-Harira.html" title="harira" >Harira</a></li>

        

                      

           <li><a href="http://www.cuisinemarocaine.com/recette-64-Salade%20de%20Mauve.html" title="Salade bakkoula" >Salade bakkoula (épinards)</a></li>

        

                      

           <li><a href="http://www.cuisinemarocaine.com/recette-77-Couscous%20aux%20sept%20l%C3%A9gumes.html" title="couscous au sept légumes" >Couscous aux 7 légumes</a></li>

        

                      

           <li><a href="http://www.cuisinemarocaine.com/recette-92-Tajine%20de%20poissons%20M'charmel.html" title="tajine de poissons M'charmel" >Tajine de poissons M'charmel</a></li>

        

                      

           <li><a href="http://www.cuisinemarocaine.com/recette-93-Tajine%20de%20poulet%20aux%20citrons%20confits.html" title="Tajine de poulet aux citrons confits" >Tajine de poulet aux citrons confits</a></li>

        

                      

           <li><a href="http://www.cuisinemarocaine.com/recette-94-Tajine%20d'agneauaux%20artichauts%20et%20petits%20pois.html" title="tajine d'agneauaux artichauts et petits pois" >Tajine d'agneauaux artichauts et petits pois</a></li>

        

                      

           <li><a href="http://www.cuisinemarocaine.com/recette-95-Briouats%20aux%20amandes%20et%20au%20miel.html" title="briouats aux amandes et au miel" >Briouats aux amandes et au miel</a></li>

        

                      

           

        

            

      

        </p>

           

        </ul><!--fin de la div footer_txt--> 

    </div>

    

    

    

    

    

    <div>

        <ul class="footer_txt"><!--d&eacute;but de la div footer_txt--> 

          <li>Acc&egrave;s Rapide</li>

             <li>&nbsp;</li>

               

            <li><a href="http://www.cuisinemarocaine.com/lesplats-1-Les%20Salades.html">Recettes Salades</a></li>


            <li><a href="http://www.cuisinemarocaine.com/lesplats-3-Les%20Tajines.html">Recettes Tajines</a></li>

            <li><a href="http://www.cuisinemarocaine.com/lesplats-4-Les%20Soupes.html">Recettes Soupes</a></li>



            <li><a href="http://www.cuisinemarocaine.com/lesplats-19-Les%20Bastelas.html">Recettes Bastelas</a></li>


            <li><a href="http://www.cuisinemarocaine.com/lesplats-12-G%C3%A2teaux%20et%20P%C3%A2tisserie.html">Recettes Gâteaux </a></li>
            <li><a href="http://www.cuisinemarocaine.com/lesplats-16-Cuisine%20Juive%20Marocaine.html">Cuisine Juive Marocaine</a></li>

        </ul><!--fin de la div footer_txt--> 

    </div>

    

    <div>

        <ul class="footer_txt"><!--d&eacute;but de la div footer_txt--> 

                        <li>Forums de discussions</li>

             <li>&nbsp;</li>

            <li><a href="http://forums.cuisinemarocaine.com">Forum de la cuisine Marocaine</a></li>

            

        </ul>

        <ul class="footer_txt">

        <li>&nbsp;</li>

        <li>&nbsp;</li>

          
       
            <li><a href="http://forums.cuisinemarocaine.com/forumdisplay.php?25-Cuisine-et-recettes-v%E9g%E9tariennes">Recettes végétariennes</a></li>

           <li><a href="http://forums.cuisinemarocaine.com/forumdisplay.php?48-Cuisson-au-micro-ondes">Cuisson au micro-ondes</a></li>


            

        </ul><!--fin de la div footer_txt--> 

    </div>

    

    <div>

        <ul class="footer_txt"><!--d&eacute;but de la div footer_txt--> 

          <li>Nos Partenaires : </li>

             <li>&nbsp;</li>

                                <li><a href="http://www.cuisinemarocaine.com/pageinfo-10-Nos Partenaires.html" title="nos partenaires" target="_blank">Nos Partenaires</a></li>
  • Actualité numérique du Maroc
  • Oujda
  • Devenir un partenaire
  • .
  • .
  • .
  • .
  • .
  • .
  • .
  • .
  • .
  •                          </ul><!--fin de la div footer_txt--> 
    
        </div>
    

    Tous les droits sont résérves pour cuisinemarocaine.com © <?php echo date("Y");?> .


    [/php]
    Sponsor our Newsletter | Privacy Policy | Terms of Service