[ASK] Header Wordpress Coding

Discussion in 'Blogging' started by alfaza, Mar 3, 2012.

  1. alfaza

    alfaza Newbie

    Joined:
    Jan 23, 2012
    Messages:
    20
    Likes Received:
    0
    Occupation:
    Freelanche
    I have some problem in my blog coding header or other

    This is Warning in my page :

    please help me to correct this coding
    Thanks for all
     
  2. blackberry

    blackberry Power Member

    Joined:
    Apr 26, 2009
    Messages:
    718
    Likes Received:
    241
    Occupation:
    Making money
    Location:
    Planet Earth
    Can you show me the header.php file and i will take a look.
     
  3. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    4,454
    Likes Received:
    4,005
    Gender:
    Male
    Occupation:
    Dreaming
    Location:
    Pale Blue Dot
    Home Page:
    It all comes from one array being empty on the line 309 of your header.php.
    You should always check for empty arrays before you loop them in foreach. If you are not that tech savvy, then I suggest you to not modify your header.php, instead, go to the top of your header.php and paste the following code on the first line (i have included the php tag).
    Code:
    <?php error_reporting(0)?>
    
    Bang! All of the errors are gone!
    Try out and let me know. :)