Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Variable passed to each() is not an array or object


jubez

Recommended Posts

Hello, I need some help with this error:

 

Warning: Variable passed to each() is not an array or object in /catalog/checkout_process.php on line 40

 

Warning: Variable passed to each() is not an array or object in /catalog/checkout_process.php on line 41

1054 - Unknown column 'shipping_cost' in 'field list'

 

insert into orders (customers_id, customers_name, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, date_purchased, shipping_cost, shipping_method, orders_status, comments, currency, currency_value) values ('18', ' ', '', '', '', '', '', '', '', '', '1', ' ', '', '', '', '', '', '', '1', 'paypal_express', '', '', '', '', now(), '', '', '1', '', 'CAD', '1.00000000')

 

[TEP STOP]

 

A customer was getting this error on checkout, but I have already processed orders with no errors.

So I went in MySQL and added the shipping_cost field that seemed to be missing. Now I am wondering is there three errors listed here or are the top 2 because there was a shipping_cost field missing??? Why didn't my other customers get this message, and what do I need to do to get rid of that Variable passes to each() error??

 

Any help is greatly appreciated... Thank you sooooo much :)

Link to comment
Share on other sites

Problem is fixed, turns out the checkout_process.php got changed to an older oscommerce version during a mod update.

 

LiFE Is GOOD!! ;)

 

Thanks for looking everyone...

 

Hello, I need some help with this error:

 

Warning: Variable passed to each() is not an array or object in /catalog/checkout_process.php on line 40

 

Warning: Variable passed to each() is not an array or object in /catalog/checkout_process.php on line 41

1054 - Unknown column 'shipping_cost' in 'field list'

 

insert into orders (customers_id, customers_name, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, date_purchased, shipping_cost, shipping_method, orders_status, comments, currency, currency_value) values ('18', ' ', '', '', '', '', '', '', '', '', '1', ' ', '', '', '', '', '', '', '1', 'paypal_express', '', '', '', '', now(), '', '', '1', '', 'CAD', '1.00000000')

 

[TEP STOP]

 

A customer was getting this error on checkout, but I have already processed orders with no errors.

So I went in MySQL and added the shipping_cost field that seemed to be missing. Now I am wondering is there three errors listed here or are the top 2 because there was a shipping_cost field missing??? Why didn't my other customers get this message, and what do I need to do to get rid of that Variable passes to each() error??

 

Any help is greatly appreciated... Thank you sooooo much :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...