...

View Full Version : Blogroll Error



doctordew
05-23-2008, 09:42 PM
There is an error in my blog roll for my blog. I took a premade layout because I didn't want to put the money into a layout right away, and because I can't code php myself. There is a tiny error in it though. The blog roll is messed up.

If you would like to see the error itself the blog is at www.tryingtoblog.com



"Warning: Invalid argument supplied for foreach() in /home/jaremuy7/public_html/wp-content/themes/BizFresh/ads.php on line 3"





<div id="sidebar2">

<div class="xboxcontent">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
<li>
<h2 class="sidebartitle"><?php _e('Categories'); ?></h2>
<ul class="list-cat">
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</li>
<li>
<h2 class="sidebartitle"><?php _e('Blogroll'); ?></h2>
<ul class="list-blogroll">
<?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'id', FALSE, FALSE, -1, FALSE); ?>
</ul>
</li>
<?php endif; ?>
</ul>
<div id="googlepro">
<?php include (TEMPLATEPATH . "/ads.php"); ?>
</div>
</div>
</div>

Inigoesdr
05-24-2008, 02:32 AM
On line 3 of ads.php you have a foreach() (http://php.net/foreach) loop, which is trying to loop through an array, but whatever is being passed to it is not an array.

doctordew
05-24-2008, 08:20 AM
Thanks, now I'll just look into changing that.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum