Title: implode() [function.implode]: Invalid arguments passed in
Last modified: August 24, 2016

---

# implode() [function.implode]: Invalid arguments passed in

 *  Resolved [Ulla1973](https://wordpress.org/support/users/ulla1973/)
 * (@ulla1973)
 * [11 years ago](https://wordpress.org/support/topic/implode-functionimplode-invalid-arguments-passed-in-1/)
 * I’m not quite sure what’s the problem.. I’ve used the Optimizer on several sites,
   but on this last one I got on top of the page:
    Warning: implode() [function.
   implode]: Invalid arguments passed in /home/monadrzg/public_html/wp-content/themes/
   optimizer/lib/functions/core.php on line 25 From core-functions.php:
 * 19. function optimizer_first_image() {
    20. if(is_404()){ 21. return; 22. } 23.
   global $wp_query; 24. if( $wp_query->post_count <1){ 25. return; 26. } 27. global
   $post, $posts; 28. $image_url = ”; 29. ob_start(); 30. ob_end_clean(); if(preg_match_all(‘/
   <img.+src=[\'”]([^\'”]+)[\'”].*>/i’, $post->post_content, $matches)){; $image_url
   = $matches [1] [0]; } return $image_url; }`
 * And I don’t understand what’s wrong with line 25? Are there anyone who can give
   me a tips?
 * The webpage is: [http://monaduaas.no](http://monaduaas.no)
 * Thank you!

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

 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [11 years ago](https://wordpress.org/support/topic/implode-functionimplode-invalid-arguments-passed-in-1/#post-5986669)
 * Hi, what version of php are using?
 *  Thread Starter [Ulla1973](https://wordpress.org/support/users/ulla1973/)
 * (@ulla1973)
 * [11 years ago](https://wordpress.org/support/topic/implode-functionimplode-invalid-arguments-passed-in-1/#post-5986673)
 * Hi
 * php version native (5.3) it says.
 * I also see I have some trouble with the blog at the blog section. First side 
   is working quite well, but I can’t turn the pages to side 2 and 3..?
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [11 years ago](https://wordpress.org/support/topic/implode-functionimplode-invalid-arguments-passed-in-1/#post-5986674)
 * WordPress requires at-least php 5.4. So does the theme:
    [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
 * Regards
 *  Thread Starter [Ulla1973](https://wordpress.org/support/users/ulla1973/)
 * (@ulla1973)
 * [11 years ago](https://wordpress.org/support/topic/implode-functionimplode-invalid-arguments-passed-in-1/#post-5986675)
 * Ah.. Thank you!!
    Silly of me!
 * I’m terrible sorry, I should have checked!
    Switched to a newer version of PHP,
   and everything is now working completely fine. Thank you!
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [11 years ago](https://wordpress.org/support/topic/implode-functionimplode-invalid-arguments-passed-in-1/#post-5986676)
 * If you like the theme can you kindly rate this theme:
    [https://wordpress.org/support/view/theme-reviews/optimizer?filter=5](https://wordpress.org/support/view/theme-reviews/optimizer?filter=5)
 * Regards

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

The topic ‘implode() [function.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/)

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