Jump to content

Warning: implode() [function.implode]: Invalid arguments passed


laflair13

Recommended Posts

I just installed a new theme on my wordpress blog seen below

 

http://latestphonecases.com/

 

As you can see I am getting an error and have no clue why. The error I am getting is

Warning: implode() [function.implode]: Invalid arguments passed in /home/ladeda16/public_html/latestphonecases.com/wp-content/themes/Organic Portfolio White v1.2.2/header.php on line 74

 

Here is Line 74

 

	<?php wp_list_categories('depth=4&title_li=&sort_column=menu_order&include='.implode(',', $include_categories)); ?></ul>

 

And here is the entire header.php

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="distribution" content="global" />
<meta name="robots" content="follow, all" />
<meta name="language" content="en" />

<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
<link rel="Shortcut Icon" href="<?php echo bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_enqueue_script("jquery"); ?>
<?php wp_head(); ?>

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/superfish/superfish.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/superfish/hoverIntent.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.flow.1.1.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/iepngfix_tilebg.js"></script>

<!--IE6 Fix-->
<style type="text/css">
img, div, a, input, body, span { 
	behavior: url(<?php bloginfo('template_url'); ?>/images/iepngfix.htc);
}
</style>

<script type="text/javascript">
    var $j = jQuery.noConflict();
$j(function() {
        $j("div#controller").jFlow({
            slides: "#slides",
            width: "960px",
            height: "480px",
		timer: <?php echo ot_option('slider_interval'); ?>,
    	duration: 400
        });
    });
</script>

<script type="text/javascript"> 
    $j(document).ready(function() { 
        $j('ul.ot-menu').superfish(); 
    }); 
</script>

</head>

<body>

<div id="wrap">

<div id="header">

<div class="headercenter">
	<p id="title"><a href="<?php echo get_option('home'); ?>/" title="Home"><?php bloginfo('name'); ?></a></p>
</div>

</div>

<div id="navbar">

<div id="nav">
    
    	<div id="navbarleft">
            <ul class="ot-menu"><li<?php if (is_home()) { echo " class=\"current_page_item\""; }?>><a href="<?php echo get_settings('home'); ?>"><?php _e("Home", 'organicthemes'); ?></a></li>
            <?php $include_categories = ot_option('include_categories'); ?>
		<?php wp_list_categories('depth=4&title_li=&sort_column=menu_order&include='.implode(',', $include_categories)); ?></ul>
        </div>
        
        <div id="navbarright">
    		<ul class="ot-menu">
		<?php $include_pages = ot_option('include_pages'); ?>
		<?php wp_list_pages('title_li=&sort_column=menu_order&include='.implode(',', $include_pages)); ?>
            </ul>
    	</div>

</div>

</div>

<div style="clear:both;"></div>

 

 

I have been searching and playing around for hrs and cannot seem to get it fixed.

 

Any help would be greatly appreciated.

     

Link to comment
Share on other sites

If it is saying invalid arguments, then one of the arguments must not be the data type necessary.  The second argument of implode() must be an array, so my guess is that something is going wrong with the declaration of $include_categories.

 

Try putting print_r($include_categories) in there just to see what the contents of that are, and to see if it is indeed an array.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.