Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Database problems after move and upgrade

    Quote Originally Posted by TKPope View Post
    Rod - I appreciate the response. It may be dangerous, but I currently have a site that's not working. I don't know what to do, and I don't know if that will fix the problem. All of the data (good and bad) is backed up, so it's at least something that might be worth trying to see if that works.
    The *safe* thing to do would be to drop the entire database and replace it with the most current backup of the original site.

    Yes, I realise that it is from a different version of ZenCart, but all being well the new zencart version will detect that it's an old version DB and give you the option to update it.

    This would certainly be the approach I'd be taking rather than run the risk of getting a mish mash of table data.

    Cheers
    RodG

  2. #12
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Database problems after move and upgrade

    I emptied all of the orders tables and imported good data for those tables. When I tried placing an order, the following debug file was created:

    [13-Mar-2015 03:48:15 UTC] PHP Fatal error: 2013:Lost connection to MySQL server during query :: select p.products_id, p.products_image
    from zen_orders_products opa, zen_orders_products opb, zen_orders o, zen_products p
    where opa.products_id = '2133'
    and opa.orders_id = opb.orders_id
    and opb.products_id != '2133'
    and opb.products_id = p.products_id
    and opb.orders_id = o.orders_id
    and p.products_status = 1
    group by p.products_id
    order by o.date_purchased desc
    limit 6 ==> (as called by) /store/includes/modules/also_purchased_products.php on line 16 <== in /store/includes/classes/db/mysql/query_factory.php on line 155

    Still having the same problem with incrementing the orders_id. Even though I asked for the next number to be 12000, it still came in as 0 (zero). I have a feeling this is due to some other coding issue and not a database problem after all. I just don't know where to look and fix.

  3. #13
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Database problems after move and upgrade

    In fact, orders_id has no record of this order at all. It is not recorded in the database. So, whatever is going on, orders_id is not being incremented nor is it being recorded.

  4. #14
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Database problems after move and upgrade

    Quote Originally Posted by TKPope View Post
    Still having the same problem with incrementing the orders_id. Even though I asked for the next number to be 12000, it still came in as 0 (zero). I have a feeling this is due to some other coding issue and not a database problem after all. I just don't know where to look and fix.
    I really wish I could help more, but since you choose to try to keep doing it your way rather than the way I suggested (and would do if I were in your position) there really isn't much more than I can say, other than you probably missed one of the needed tables.

    Cheers
    RodG

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. no database after server move
    By skipper_2 in forum Installing on a Linux/Unix Server
    Replies: 15
    Last Post: 10 Jan 2011, 06:17 PM
  2. help with mysql database on store upgrade/move
    By kinget in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 28 Oct 2008, 12:11 PM
  3. database upgrade problems
    By ridelow in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 10 Oct 2008, 04:53 PM
  4. database upgrade problems
    By keystonewebworks in forum General Questions
    Replies: 0
    Last Post: 13 Oct 2006, 02:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg