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

September 20, 2010 7:03 pm Published by 1 Comment

If you use the WordPress ‘Category Templates’ plugin you may see a similar error message to the one below when editing posts:

Warning: implode() [function.implode]: Invalid arguments passed in /home/yourwebsite/public_html/wp-content/plugins/category-templates/cat-templates.php

Here’s a quick fix.


Locate the following line of code in wp-content > plugins > category-templates > cat-templates.php and comment it out:

$template_data = implode(”, file( WP_CONTENT_DIR.$template));

It should be around line 153.

Then replace with:

$template_data = implode(”, file( $template));

Don’t forget to leave some comments in your code to remind you why you made the change!

Categorised in:

This post was written by WillyNilly

1 Comment

  • john says:

    woot! works!
    But I wonder why it had an error in the first place?

    It only occurred during upgrading to the later version of wordpress.

    Was there an issue with WP_CONTENT_DIR?

Leave a Reply

Your email address will not be published. Required fields are marked *