[ASK] Header Wordpress Coding

alfaza

Newbie
Joined
Jan 23, 2012
Messages
20
Reaction score
0
I have some problem in my blog coding header or other

This is Warning in my page :
Warning: Invalid argument supplied for foreach() in /home/u434977652/public_html/wp-content/themes/arthemia-premium/header.php on line 309

Warning: array_slice() expects parameter 1 to be array, string given in /home/u434977652/public_html/wp-content/themes/arthemia-premium/header.php on line 314

Warning: Invalid argument supplied for foreach() in /home/u434977652/public_html/wp-content/themes/arthemia-premium/header.php on line 316


please help me to correct this coding
Thanks for all
 
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. :)
 
Back
Top