Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

db update


davej

Recommended Posts

I have a snap shot of 2002-11-07 I am having a hard time upgrading my data base with it I get some :

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/girlfriend/www/install/includes/functions/database.php on line 45

 

and when I test the shop it comes up with a ton of errors

 

the version I am trying to upgrade from is about a year old

 

any help would be good thanx dave

Link to comment
Share on other sites

  • 2 years later...
  • 2 months later...
I have the some issue today. What was the solution to this issue, do you remember?

/EE1

 

[email protected]

 

i also have a db from Nov 2002 and trying to update to the latest version of OSC and have done mysqldiff, run all the alters, but when I go into the new admin, orders do not show up correctly

 

if I go to list 'All Orders', 2 orders show up

 

if I select 'Pending Shipment' from the drop down menu I get the following:

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-26, 26' at line 1

 

select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from orders o left join orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' and s.orders_status_id = '1' and ot.class = 'ot_total' order by o.orders_id DESC limit -26, 26

 

 

 

does anyone have any idea what is going on????

 

TIA

Link to comment
Share on other sites

i also have a db from Nov 2002 and trying to update to the latest version of OSC and have done mysqldiff, run all the alters, but when I go into the new admin, orders do not show up correctly

 

if I go to list 'All Orders', 2 orders show up

 

if I select 'Pending Shipment' from the drop down menu I get the following:

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-26, 26' at line 1

 

select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from orders o left join orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' and s.orders_status_id = '1' and ot.class = 'ot_total' order by o.orders_id DESC limit -26, 26

does anyone have any idea what is going on????

 

TIA

 

 

 

a little more information on this

 

if I select Customers from the Admin menu, and then select Orders, it shows All Orders (all 204 pages of them), but as soon as I select a new order status from the drop down menu, everything gets screwed up again and it either doesnt diaply all the orders or i get the error above.....

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...