Forums / All Other Contributions/Addons / OsCommerce Data Importer - Errors

OsCommerce Data Importer - Errors

Views: 37,960

Results 241 to 252 of 252
8 Aug 2011, 7:33 PM
#241
rickcj avatar

rickcj

New Zenner

Join Date:
Jul 2008
Location:
Bristol, England
Posts:
17
Plugin Contributions:
0

OsCommerce Data Importer - Errors

Hi,

I managed to sort it. I found the php and apache limits needed increasing.

Had to increase the RLimitMEM in httpd.conf as well!

Thought it best to report the fix.

Had to increase both to 256MB for my 19,000 orders to import.

13 Oct 2011, 3:18 PM
#242
dan67 avatar

dan67

New Zenner

Join Date:
Oct 2011
Posts:
4
Plugin Contributions:
0

Re: OsCommerce Data Importer - Errors

I tried this converter out last night on a test store, and I have to say, wow! Everything went super smooth, and none of the problems that I envisioned as I have no idea how databases work.

I am working on converting an old oscommerce store over to zen, so I need all the customer and order data, but I don't really want all of the products. I can not fix the product data in oscommerce not because if I delete a catagory, the entire product catalog is deleted. Somthing was screwy in the last update I did, and I would rather move to zen where I'm more comfortable anyhow. My question is, can I import my live store customer and order data from that database when it is time for the official changeover, and then import all of my product data seperatly with a csv from my test zen store where I'm getting everything set up now? Let me rephrase that, I know that I can just do the customers and orders but will this screw up anything in the new store database if the order history and the products don't come from the same place?

13 Oct 2011, 6:55 PM
#243
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: OsCommerce Data Importer - Errors

dan67:

I tried this converter out last night on a test store, and I have to say, wow! Everything went super smooth, and none of the problems that I envisioned as I have no idea how databases work.

I am working on converting an old oscommerce store over to zen, so I need all the customer and order data, but I don't really want all of the products. I can not fix the product data in oscommerce not because if I delete a catagory, the entire product catalog is deleted. Somthing was screwy in the last update I did, and I would rather move to zen where I'm more comfortable anyhow. My question is, can I import my live store customer and order data from that database when it is time for the official changeover, and then import all of my product data seperatly with a csv from my test zen store where I'm getting everything set up now? Let me rephrase that, I know that I can just do the customers and orders but will this screw up anything in the new store database if the order history and the products don't come from the same place?

Just use import_osc_customers.php and import_osc_orders.php

You will have a history issue when a customer pulls up an old order because there will be no products to match the order. But it will all work.

Skip

• 446F63746F722057686F •

16 Oct 2011, 1:31 PM
#244
2marco avatar

2marco

New Zenner

Join Date:
Aug 2011
Posts:
11
Plugin Contributions:
0

Re: OsCommerce Data Importer - Errors

I have used the oscommerce_data_importer_2-2. First the customers, this went perfect. Then the orders. This seems to work well also. But afterwards in the ZEN admin their aren't any orders visible. Also test orders made in ZC are gone. When creating a new test order in ZC, no order shows up in admin area. Allthough they order is created while I and test customer do receive an e mail with the confirmation. In this mail the ordernumber is perfectly in line with the previous ordernumbers.

This should have something to do with differences in both the ZC and OSC databases I guess. Is there any kind of solution or workaround?

Used Zencart version: 1.3.9h
OScommerce version: XT commerce 2007

16 Oct 2011, 3:23 PM
#245
2marco avatar

2marco

New Zenner

Join Date:
Aug 2011
Posts:
11
Plugin Contributions:
0

Re: OsCommerce Data Importer - Errors

Solved the problem. Also differences in language_ID's. Thanks anyway for this great timesaving tool

17 Oct 2011, 7:30 AM
#246
2marco avatar

2marco

New Zenner

Join Date:
Aug 2011
Posts:
11
Plugin Contributions:
0

Re: OsCommerce Data Importer - Errors

2marco:

Solved the problem. Also differences in language_ID's. Thanks anyway for this great timesaving tool

Not completely solved, still having problems getting both.

I have NL and ENG language in OSC

OSC Language ID: NL = 3, ENG = 5
ZEN Language ID: NL = 2, ENG = 1

I want to do an export / import of the orders created in OSC. No error reports, everything is imported fine. In ZEN Admin home, I see the latest OSC orders, but at Customers/orders everything is empty.

Experimented with changing / swapping Language ID's without good result. Last try I did get all orders ok in Customers/orders, but only in English not in Dutch.

Can someone please advise a good stepplan how to manage this? If nescesarry I can PM the both OSC and ZEN db's. Thanks in advance

1 Nov 2011, 3:12 PM
#247
needs_a_nap avatar

needs_a_nap

New Zenner

Join Date:
Apr 2005
Location:
BC, Canada
Posts:
22
Plugin Contributions:
0

Re: OsCommerce Data Importer - Errors

Thanks for this - it's a lifesaver!
The mod is working great so far, but when running the products import, I'm getting:

Importing Products Options Values ...
.......................................................................................................................................................................................................200 -|
.....Duplicate entry '0-1' for key 1

I know it's a bit early in the day and my brain isn't co-operating, but I'm at a loss on how to fix that error. Any ideas? I've tried dumping all the DB tables and re-importing them, to no avail.

Thanks!

1 Nov 2011, 4:51 PM
#248
needs_a_nap avatar

needs_a_nap

New Zenner

Join Date:
Apr 2005
Location:
BC, Canada
Posts:
22
Plugin Contributions:
0

Re: OsCommerce Data Importer - Errors

Just to add to the above - I removed the section in the importer for "products_options_values", and the rest went smoothly. The products in the new cart seem to have all of their attributes (from what I can see, there are about 1500 products!), and in looking at the table on the old cart that I removed, there are about 30 entries. So what is this table for? If I can't figure this out, will omitting it be detrimental to the cart? (prolly a stupid question). Upon googling this to death, I've come across a few statements that "products_options_values" has no auto-increment... could this be causing the problem?

Thanks :D

1 Nov 2011, 5:14 PM
#249
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: OsCommerce Data Importer - Errors

needs_a_nap:

Thanks for this - it's a lifesaver!
The mod is working great so far, but when running the products import, I'm getting:

Importing Products Options Values ...
.......................................................................................................................................................................................................200 -|
.....Duplicate entry '0-1' for key 1

I know it's a bit early in the day and my brain isn't co-operating, but I'm at a loss on how to fix that error. Any ideas? I've tried dumping all the DB tables and re-importing them, to no avail.

Thanks!

It sound like your source table products_options_values has a id record of 0 already which is not normal.

There are two ways to fix:

  1. Delete the 0 record from your products_options_values osc source.
  2. Edit import_osc_products.php you will find at line 792
            // Zen Cart requirement Insert ID=0, language=1, name=TEXT, and sort=0 so a text box option name to a product works.
            $import_products_options_values[$i]['products_options_values_id']        = "0";
            $import_products_options_values[$i]['language_id']                       = "1";
            $import_products_options_values[$i]['products_options_values_name']      = "TEXT";
            $import_products_options_values[$i]['products_options_values_sortorder'] = "0";
            // add 1 to import count
            $i++;

Comment out this code.

Skip

• 446F63746F722057686F •

1 Nov 2011, 5:52 PM
#250
needs_a_nap avatar

needs_a_nap

New Zenner

Join Date:
Apr 2005
Location:
BC, Canada
Posts:
22
Plugin Contributions:
0

Re: OsCommerce Data Importer - Errors

Beautiful! I found the little brat and deleted it. Thanks SO much Skip! :clap:

10 Jan 2012, 11:51 AM
#251
nullmind avatar

nullmind

Zen Follower

Join Date:
Jul 2007
Posts:
129
Plugin Contributions:
0

Re: OsCommerce Data Importer - Errors

I have edited the conf file and when I try top run import products (don't want to imports clients) i simply get

500 Internal Server Error

error log

[Tue Jan 10 11:52:57 2012] [error] [client 213.133.142.4] File does not exist: /home/rcbitsco/public_html/import/sys_cpanel, referer: http://XXX/import/import_osc_products.php
[Tue Jan 10 11:52:57 2012] [error] [client 213.133.142.4] SoftException in Application.cpp:256: File "/home/rcbitsco/public_html/import/import_osc_products.php" is writeable by group

any ideas ?

10 Jan 2012, 1:57 PM
#252
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: OsCommerce Data Importer - Errors

NullMind:

error log

[Tue Jan 10 11:52:57 2012] [error] [client 213.133.142.4] File does not exist: /home/rcbitsco/public_html/import/sys_cpanel, referer: http://XXX/import/import_osc_products.php

any ideas ?

File NOT Found error:

All import_osc files must be in the same folder.

You have all the files here h t t p://XXX/import/ ?

You called h t t p://XXX/import/import_osc_products.php from your browser ?

Skip

• 446F63746F722057686F •