7 replies [Last post]
opa001's picture
Offline
Joined: 12/07/2007
Juice: 55
Was this information Helpful?

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.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: warning: implode() [function.implode]: Bad arguments

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

opa001's picture
Offline
Joined: 12/07/2007
Juice: 55
Re: Re: warning: implode() [function.implode]: Bad arguments

No there isn't any data in the table

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: warning: implode() [function.implode]: Bad arguments

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);
opa001's picture
Offline
Joined: 12/07/2007
Juice: 55
Yes I did. I get this error

Yes I did.

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

AttachmentSize
Untitled-1.jpg 52.11 KB
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Yes I did. I get this error

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

opa001's picture
Offline
Joined: 12/07/2007
Juice: 55
Re: warning: implode() [function.implode]: Bad arguments

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

remoran's picture
Offline
Joined: 04/30/2010
Juice: 56
Re: Re: warning: implode() [function.implode]: Bad arguments

Great info. Question, how do you get access to the database? I am getting the same function implode no in my system and you solution looks like it could work for me.

TIA

Bob Moran