osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-06-2006, 10:08 PM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 01-07-2006, 11:59 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,067
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-07-2006, 08:28 PM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-10-2006, 09:20 AM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
Default

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

Thx,
C
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 02-26-2006, 06:16 PM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-18-2006, 05:56 PM
Member
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spottedhaggis
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-20-2006, 10:53 AM
kopoba11's Avatar
Member
 
Join Date: Jan 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kopoba11
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 07-07-2006, 02:24 PM
tridian's Avatar
Lurker
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tridian
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 07-09-2006, 02:20 PM
tridian's Avatar
Lurker
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tridian
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 02:23 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax