Title: implode(): Invalid arguments passed in&#8230;
Last modified: August 24, 2016

---

# implode(): Invalid arguments passed in…

 *  Resolved [stevenkas](https://wordpress.org/support/users/stevenkas/)
 * (@stevenkas)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/)
 * Hi!
 * I am struggling with a feature in the Optimizer theme free version.
 * In this feature:
    “Display posts from these categories only” – You can select
   a item (category) to only view those posts.
 * if(!empty($optimizer[‘posts_cat_id’])){
    $postcat = $optimizer[‘posts_cat_id’];
   set_query_var( ‘cat’, ”.implode(‘,’, $postcat).” ); }
 * I get this warning:
    – Warning: implode(): Invalid arguments passed in themes/
   optimizer/lib/functions/core.php on line 25
 * Line 25 is – set_query_var( ‘cat’, ”.implode(‘,’, $postcat).” );
 * [http://stevenkas.no](http://stevenkas.no)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011092)
 * Steven, Can you please let us know which version of PHP are you using? We just
   ran some tests and couldn’t reproduce this issue.
 * Regards
 *  Thread Starter [stevenkas](https://wordpress.org/support/users/stevenkas/)
 * (@stevenkas)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011100)
 * Yeah i noticed.
    Seems like it got fixed.
 * PHP version = 5.4.38
 * I have another issue on hand.
 * If you go to a post, or a page
 * Page:
    [http://stevenkas.no/produkter/sokemotoroptimalisering/](http://stevenkas.no/produkter/sokemotoroptimalisering/)
 * The menu gets “reset” and isnt like the one at the frontpage.
 * The problem is when you hover over the menu on a page, the text and the menu 
   is white. Hard too explain.
 * Here’s a link so you can see the problem:
    – [http://tinypic.com/view.php?pic=2d1acrr&s=8#.VSw6f_mUfz8](http://tinypic.com/view.php?pic=2d1acrr&s=8#.VSw6f_mUfz8)
 * When i hover over it is like this:
    – [http://tinypic.com/r/29vm7aw/8](http://tinypic.com/r/29vm7aw/8)
 * How do i fix this issue? 🙂
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011103)
 * Steven, Try adding this to your Custom CSS:
 * `#topmenu ul li ul{ display:none; background: rgba(0, 0, 0, 0.5)!important;`
 * Regards
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011104)
 * By examining your site further, looks like you added this to your Custom CSS.
   Just remove it and it should work fine:
 *     ```
       #topmenu ul li ul{
       background: white;
   
       }
       ```
   
 * Regards
 *  Thread Starter [stevenkas](https://wordpress.org/support/users/stevenkas/)
 * (@stevenkas)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011105)
 * If i remove that, the front page menubar gets “ugly”. I get the gray undermenu
   as you can see now on my website.
 * Any suggestions on how i can get the menu totally white with black text?
 * Regards
    Steven
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011106)
 * Try adding this to your Custom CSS:
 * `#topmenu ul li ul li a {color: #222!important;}`
 * Regards
 *  Thread Starter [stevenkas](https://wordpress.org/support/users/stevenkas/)
 * (@stevenkas)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011107)
 * Still not fixed
 * See here:
    – [http://tinypic.com/r/2i0cd38/8](http://tinypic.com/r/2i0cd38/8)
 * I want the background too be white, the text too be black.
 * Regards
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011109)
 * You need to add this code too:
 * `#topmenu ul li ul{background: white;}`
 *  Thread Starter [stevenkas](https://wordpress.org/support/users/stevenkas/)
 * (@stevenkas)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011110)
 * Thank you for your kind support 🙂
 * It is now fixed.
 * Regards,
    Steven
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011112)
 * Can you kindly mark this topic as resolved? 🙂

Viewing 10 replies - 1 through 10 (of 10 total)

 The topic ‘implode(): Invalid arguments passed in…’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/optimizer/0.7.4/screenshot.png)
 * Optimizer
 * [Support Threads](https://wordpress.org/support/theme/optimizer/)
 * [Active Topics](https://wordpress.org/support/theme/optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/optimizer/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/implode-invalid-arguments-passed-in/#post-6011112)
 * Status: resolved