warning: implode() [function.implode]: Bad arguments

Posts: 25
Joined: 12/07/2007

I get this error in ubercart alpha 8: warning: implode() [function.implode]: Bad arguments. in D:\xampplite\htdocs\koi2\modules\ubercart\uc_order\uc_order.module on line 3097.

I saw that there were more users how have this problem, can someone tell me what to do or what the status is. I also upgraded to beta 2, but the same error.

Posts: 5617
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Don't know about that problem... looks like you maybe missed an update? Have you run update.php already?

Posts: 25
Joined: 12/07/2007

Yes I did.

I get this error on several pages. On checkout, my oder history (see attachment)

AttachmentSize
Untitled-1.jpg52.11 KB
Posts: 5617
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Is there any data in the uc_order_statuses table in your database?

Posts: 25
Joined: 12/07/2007

No there isn't any data in the table

Posts: 5617
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

That was my hunch... in that case, update 3 in the order module never got performed on your site. Try this query in your database:

INSERT INTO uc_order_statuses (order_status_id, title, state, weight, locked) VALUES ('canceled', 'Canceled', 'canceled', -20, 1), ('in_checkout', 'In checkout', 'in_checkout', -10, 1), ('pending', 'Pending', 'post_checkout', 0, 1), ('processing', 'Processing', 'post_checkout', 5, 1), ('completed', 'Completed', 'completed', 20, 1);

Posts: 25
Joined: 12/07/2007

I executed the following query:
INSERT INTO `uc_order_statuses` VALUES ('canceled', 'Canceled', 'canceled', -20, 1);
INSERT INTO `uc_order_statuses` VALUES ('in_checkout', 'In checkout', 'in_checkout', -10, 1);
INSERT INTO `uc_order_statuses` VALUES ('pending', 'Pending', 'post_checkout', 0, 1);
INSERT INTO `uc_order_statuses` VALUES ('processing', 'Processing', 'post_checkout', 10, 1);
INSERT INTO `uc_order_statuses` VALUES ('completed', 'Completed', 'completed', 20, 1);

and it worked. Thanks