osCmax v2.5 User Manual
Results 1 to 9 of 9

merge osc2 to oscmax2?

This is a discussion on merge osc2 to oscmax2? within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I have an old store in the original osc2 format. I want to somehow merge all the data from the ...

      
  1. #1
    Active Member chrismole's Avatar
    Join Date
    Dec 2003
    Location
    Chicago
    Posts
    102
    Rep Power
    9


    Default merge osc2 to oscmax2?

    I have an old store in the original osc2 format. I want to somehow merge all the data from the old osC2 store db to a new oscmax2 store db. Is it possible? I tried merging the databases with mysqldiff, but no luck (unless I did it wrong).

    I would think there's some way to merge the data and fix one-off problems as I find them.

    Any help is much appreciated.

    C

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default RE: merge osc2 to oscmax2?

    mysqldiff is the only way. You do not merge though. You upgrade the db structure of the osC standard database to match the structure of the osCMax2 db, then export the updated data from the osC standard database. Finally, import the data to the original osCMax 2 database. Done.

    That is the easiest way to use mysqldiff to get the job done.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Active Member chrismole's Avatar
    Join Date
    Dec 2003
    Location
    Chicago
    Posts
    102
    Rep Power
    9


    Default

    Thanks for the help.

    I tried your suggestion and ran into sql errors in phpmyadmin when running the mysqldiff-generated update script to run on the osc2 exported database. The script could not get past creating the first table (admin). This looks like it's going to be a tough nut to crack.

    See the attachment for the sql error.

    Any help is much appreciated. Could the error be related to the settings in mysqldiff that get prompted just before creating the update sql?

    Thx,
    C

  4. #4
    Active Member chrismole's Avatar
    Join Date
    Dec 2003
    Location
    Chicago
    Posts
    102
    Rep Power
    9


    Default

    Anyone have any ideas on merging databases? Has anyone done it succesfully?

    Thx,
    C

  5. #5
    Active Member chrismole's Avatar
    Join Date
    Dec 2003
    Location
    Chicago
    Posts
    102
    Rep Power
    9


    Default

    Ok, I got the databases merged, but when I try to bring up the store index page, I am getting session errors:

    Code:
    Warning: session_start(): open(SESSION_WRITE_DIRECTORY/sess_04da8a2b38472a96a9253cd0d3b756c9, O_RDWR) failed: No such file or directory (2) in /includes/functions/sessions.php on line 99
    
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /includes/functions/sessions.php:99) in /includes/functions/sessions.php on line 99
    
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /includes/functions/sessions.php:99) in /includes/functions/sessions.php on line 99
    Illegal template directory!
    Warning: Unknown(): open(SESSION_WRITE_DIRECTORY/sess_04da8a2b38472a96a9253cd0d3b756c9, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
    
    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (SESSION_WRITE_DIRECTORY) in Unknown on line 0
    Does anyone know how these errors could be fixed? I did a code search for "SESSION_WRITE_DIRECTORY", but could not find it. As an all caps variable, I thought it would be plainly defined somewhere...

    Any help is appreciated,
    C

  6. #6
    Member
    Join Date
    Feb 2006
    Posts
    63
    Rep Power
    0


    Default

    I am currently doing this exact same thing, and after a good 2 days fiddling, restarting it all, and trying again and again, I am now at a near 100% completed stage.

    I have one more bug to get rid of. When in admin, goto customers, all clients are listed, goto edit and I get the following error message.

    Warning: reset(): Passed variable is not an array or object in /home/***********/public_html/oscmax/admin/includes/classes/object_info.php on line 17

    Warning: Variable passed to each() is not an array or object in /home/***********/public_html/oscmax/admin/includes/classes/object_info.php on line 18

    Other than that most, if not all (I am not done checking it all yet) is working, 580 products, 22 categories with sub categories, everything is so far so good.

    incidentally, I have found that using an application called sqlyog works far better and is alot faster when working with 2 database files (can copy from one to the other in a click.

  7. #7
    Member kopoba11's Avatar
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    Default

    I woud recommend not to export configuration tables from Old version.
    Just export customer and product data.
    Do not export admin and configuration data.

    The error you are getting with sessions, since they are in DB by they no longer exists, do not export session table.

    Later

  8. #8
    Lurker tridian's Avatar
    Join Date
    Feb 2006
    Posts
    3
    Rep Power
    0


    Default

    Quote Originally Posted by spottedhaggis
    I am currently doing this exact same thing, and after a good 2 days fiddling, restarting it all, and trying again and again, I am now at a near 100% completed stage.

    I have one more bug to get rid of. When in admin, goto customers, all clients are listed, goto edit and I get the following error message.

    Warning: reset(): Passed variable is not an array or object in /home/***********/public_html/oscmax/admin/includes/classes/object_info.php on line 17

    Warning: Variable passed to each() is not an array or object in /home/***********/public_html/oscmax/admin/includes/classes/object_info.php on line 18

    Other than that most, if not all (I am not done checking it all yet) is working, 580 products, 22 categories with sub categories, everything is so far so good.

    incidentally, I have found that using an application called sqlyog works far better and is alot faster when working with 2 database files (can copy from one to the other in a click.
    Hello Spottedhaggis, did the fix kopoba11 suggested work for you on this? I am having the exact same problem you did, I have everything ready to go w/ my migration but once I import my customer info, I keep getting the same errors that you received. I'm not that capable in mysql so kopoba11's suggestion isn't totally clear to me. Can you advise? Thanks very much!

  9. #9
    Lurker tridian's Avatar
    Join Date
    Feb 2006
    Posts
    3
    Rep Power
    0


    Default

    Just a quick note to all say that the reason I was getting that PHP Error was because I had not populated the "address_book" in my osCMax database yet so that left the "customers_default_address_id" id unset thus giving me the error. Once I populated the address_book in the database, the problem was gone. I'm learning!

Similar Threads

  1. osCMax2 too slow?
    By taddesign in forum osCMax v2 Features Discussion
    Replies: 10
    Last Post: 02-09-2007, 06:42 PM
  2. osC conversion: osC2.1 --> osCMax2
    By chrismole in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 03-01-2006, 12:06 PM
  3. Merge Database
    By extremest in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-26-2005, 11:12 AM
  4. Visitors checkout cart does not merge
    By Lady_Lobo in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 03-23-2004, 06:51 AM
  5. merge question
    By jpr_eza in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 10-02-2003, 10:30 AM

Bookmarks

Posting Permissions

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