Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Blogroll Error

  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Location
    USA
    Posts
    147
    Thanks
    5
    Thanked 3 Times in 2 Posts

    Blogroll Error

    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"




    Code:
    <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>
    Quote Originally Posted by rmedek View Post
    Doctordew, as soon as they come out with the opposite of an infraction, I am going to give you a million of them. You are my new favorite person on the forum.

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    On line 3 of ads.php you have a foreach() loop, which is trying to loop through an array, but whatever is being passed to it is not an array.

  • #3
    Regular Coder
    Join Date
    Jul 2007
    Location
    USA
    Posts
    147
    Thanks
    5
    Thanked 3 Times in 2 Posts
    Thanks, now I'll just look into changing that.
    Quote Originally Posted by rmedek View Post
    Doctordew, as soon as they come out with the opposite of an infraction, I am going to give you a million of them. You are my new favorite person on the forum.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •