Page 1 of 1

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

Posted: Wed Apr 08, 2009 4:14 pm
by Imi78
Hello,

i am a totally noob with PHP.

Following problem:

I am moving my oscommerce-shop from my local XAMPP-Server to the hosted server. After copying the files and adapting the shop

i get this error message:


Warning: implode() [function.implode]: Invalid arguments passed in /catalog/includes/functions/header_tags.php on line 60

Warning: implode() [function.implode]: Invalid arguments passed in /catalog/includes/functions/header_tags.php on line 61

Warning: implode() [function.implode]: Invalid arguments passed in /catalog/includes/functions/header_tags.php on line 62

This is the mentioned code:

$header_tags_array['desc'] = ltrim(tep_db_prepare_input(implode(' ' . HEADER_TAGS_SEPARATOR_DESCRIPTION . ' ', $sortOrder['description'])), ' ' . HEADER_TAGS_SEPARATOR_DESCRIPTION);
$header_tags_array['keywords'] = ltrim(tep_db_prepare_input(implode(' ' . HEADER_TAGS_SEPARATOR_KEYWORD . ' ', $sortOrder['keywords'])), ' ' . HEADER_TAGS_SEPARATOR_KEYWORD);
$header_tags_array['logo_text'] = ltrim(tep_db_prepare_input(implode(' ' . HEADER_TAGS_SEPARATOR_DESCRIPTION . ' ', $sortOrder['logo'])), ' ' . HEADER_TAGS_SEPARATOR_DESCRIPTION);

Whats wrong?? Wrong PHP-Settings on the server?

Greets

ImI

Re: Warning: implode() [function.implode]: Invalid arguments ???

Posted: Wed Apr 08, 2009 6:59 pm
by Christopher
My guess is that $sortOrder['description'], $sortOrder['keywords'] and $sortOrder['logo'] are not arrays.

Re: Warning: implode() [function.implode]: Invalid arguments ???

Posted: Thu Apr 09, 2009 6:14 am
by Imi78
mhhhh.....but isnt it strange that everything works on XAMPP?? Could the PHP-Settings be wrong??

Re: Warning: implode() [function.implode]: Invalid arguments ???

Posted: Thu Apr 09, 2009 11:02 am
by Christopher
Not wrong, but perhaps the error settings are different. Those are Warnings, not Errors. But they mean it is not really "working" even if one is set to not show Warnings.

Re: Warning: implode() [function.implode]: Invalid arguments ???

Posted: Thu Apr 09, 2009 4:29 pm
by Imi78
I solved it. It was a oscommerce-contribution that wasnt configured as it should have been.

THX!

ImI