views:

63

answers:

2

I just moved a wordpress site from one server to another, and I keep getting this error.

Warning: implode() [function.implode]: Invalid arguments passed in /home/finer/public_html/wp-content/themes/barely-corporate/template_portfolio.php on line 41

I have been on the Wordpress support site but couldn't find a solution. Can someone please HELP!? Here is the link to the page where the error keeps coming up:

http://finerthingsforher.com/?page_id=14

if($portfolio_page_categories_array) {

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$post_per_page = $jbobich_items_per_page;
$portfolio_page_categories = implode(',' , $portfolio_page_categories_array);
$query_string = "cat=" . $portfolio_page_categories . '&posts_per_page=' . $post_per_page . '&paged=' . $paged;

?>
A: 

Are the page categories the same in each installation?

I wonder if you were asked to add some categories in the first installation (or maybe it was done automatically when the theme was first installed) that hasn't happened in the second install.

Oddthinking
I will check. I just did an export and import of the xml, so there might be some missing categories.
aWarner
There was one missing and they are in different order in the list. I've added in the missing category, but still getting the Warning
aWarner
A: 

In the meantime, this will suppress the error:

if($portfolio_page_categories_array) {

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$post_per_page = $jbobich_items_per_page;
$portfolio_page_categories = implode(',' , (array) $portfolio_page_categories_array);
$query_string = "cat=" . $portfolio_page_categories . '&posts_per_page=' . $post_per_page . '&paged=' . $paged;

?>
John P Bloch
Hi John, Yes the error message went away, but no nothing appears on the page. Blank slate. Take a look http://finerthingsforher.com/?page_id=14
aWarner