Warning: implode() [function.implode]: Invalid arguments passed
September 20, 2010 7:03 pm1 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: Web Development
This post was written by WillyNilly
1 Comment
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?