If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / Database I/O Manager (DbIo) Plugin [Support Thread]

Database I/O Manager (DbIo) Plugin [Support Thread]

Started by lat9 on 1 Jul 2016, 6:09 PM · Views: 104,846

Results 161 to 180 of 628
11 Aug 2018, 1:02 PM
#161
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #161 by lat9

@dbltoe, I'd start by ***adding ***those additional option values via the DbIoProductsOptionsValuesHandler.

Once those option-values are in the database (so that you've got products_options_values_id's for them, I'd the *DbIoProductsAttributesRawHandler *to add those option/option-value pairs to the various products.

Note that neither of the attribute-related handlers currently support a removal. I've created a GitHub issue to remind me of your request.

12 Aug 2018, 6:37 PM
#162
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,915
Plugin Contributions:
24

Post #162 by dbltoe

Thanx Cindy,

Sorry for the late response. Day five today of my nursing duties with wife's new knee. Will do some more when she's on the "rack" again.

Did the add first. Was just wondering if there was a mid-step before Raw.

As to deleting info. I've never been a fan of deleting anything that goes with an order in any way. History can be very helpful, but not so much if part of the data is non-existant. Doubt I would ever use the delete function other than deleting the attribute from the current product. For me, Name and Value would remain forever whether tied to a current product or not.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

1 Sep 2018, 11:55 PM
#163
net3431 avatar

net3431

New Zenner

Join Date:
Dec 2008
Location:
Phoenix, AZ
Posts:
28
Plugin Contributions:
0

Post #163 by net3431

Hello
I am exporting from v.1.5.0 and importing to v.1.5.5

Apparently this is not possible since all I get is "was completed with 9041 errors and 0 warnings. 0 records were inserted or updated."

Log file looks like this:

Operation:import-en-check
Records Read:9042
Records Inserted:0
Records Updated:0
Warnings:0
Errors:9041
Parse Time:20.172164916992
The following warnings/errors were generated by the above action:
Unrecognized command (WWII US) found at line #2; the operation was not performed.
Unrecognized command (WWI US) found at line #3; the operation was not performed.
Unrecognized command (WWII GERMAN) found at line #4; the operation was not performed.

The CSV looks fine. I tried splitting, etc. No help. I have wasted my day trying to get this tool to load data.

Of course, when I do an export and then immediately import the same file it fails with the same message.'
Did I get a bad build? Am I supposed to add INSERT statements to the CSV?

Why is there no explanation of HOW to use this tool? All I see is organization information.
All I can do is assume that exporting products into a csv would be followed by importing them. That's logic, but in this case it fails miserably.

Not sure how to proceed. Docs gives no clue on how to typically operate this tool.

2 Sep 2018, 12:16 AM
#164
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,915
Plugin Contributions:
24

Post #164 by dbltoe

If you are actually upgrading from 1.5.0 to 1.5.5, there's a better way to accomplish the task. https://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading.

Cindy's mod is great, but the upgrade steps are more thorough and accurate in the case of an upgrade.

IF NOT an upgrade, perhaps you are looking at databases with conflicting character sets. If all are not "on the same page", it could be part of the problem.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 Sep 2018, 3:41 AM
#165
net3431 avatar

net3431

New Zenner

Join Date:
Dec 2008
Location:
Phoenix, AZ
Posts:
28
Plugin Contributions:
0

Post #165 by net3431

No. When I installed Easy Populate I was able to move the data in about a minute.

I believe Cindy's mod does not work at all. I strongly recommend Easy Populate for actually moving data.

2 Sep 2018, 2:52 PM
#166
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #166 by lat9

You haven't identified the version of DbIo that you had issues with, nor did you post a couple of the problematic rows of the exported CSV.

I can assure you that the plugin ***does ***work, but you might have discovered a store-specific issue that could have been corrected.

3 Sep 2018, 8:47 AM
#167
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #167 by torvista

net3431: posts 24, plugins 0
lat9: posts 7859, plugins 64

So the possibility of user error here would be unthinkable? No, it must be sloppy code, of course.

@net3431
You are using the tool in a situation that is not common as it is not only not recommended, it is WRONG. You don't upgrade by importing data.

Your arrogance is exemplary...in the sense of a good example of how not to get any (free) help.
Indeed, "the tool doesn't work" could indeed be applied to your posts, but not in the sense you mean it.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

5 Sep 2018, 1:14 AM
#168
net3431 avatar

net3431

New Zenner

Join Date:
Dec 2008
Location:
Phoenix, AZ
Posts:
28
Plugin Contributions:
0

Post #168 by net3431

I was not interested in making DbIo work. I was interested in moving data. I suppose DbIo does something. It just doesn't import data.
That makes the tool useless as far as I am concerned. I incidentally spent some time trying to figure out just what it did do, but I was not successful in that endeavor. I did however, discover Easy Populate, which immediately worked for the use that it was designed.

Arrogance comes in many forms. Mine is concerned with the job of my employer. Yours seems to be an attempt to rehabilitate DbIo, a plugin which remains a mystery. Nothing in the above responses indicates what this tool is supposed to do. My complaint contains facts, actual error content. Your response contains ad hominems and smug, empty assurances.

In any case, my problem was resolved in seconds. Your problem will in all likelihood remain with you as long as you keep struggling with DbIo.

5 Sep 2018, 11:26 AM
#169
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #169 by lat9

net3431:

I was not interested in making DbIo work. ...
Ah, that's the true spirit of open-source programming ... not!

5 Sep 2018, 12:40 PM
#170
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,768
Plugin Contributions:
56

Post #170 by swguy

net3431:

Hello
I am exporting from v.1.5.0 and importing to v.1.5.5

Why not just import the data using phpMyAdmin and then run the conversions? I don't see a need for easypopulate or dbio.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Sep 2018, 10:56 AM
#171
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #171 by lat9

I've just submitted v1.5.1 of the ***DbIo ***to the Zen Cart plugins for review. This version corrects the GitHub issue #123 ("Products" export can't be imported).

I'll post back here once it's available for download.

14 Sep 2018, 7:17 PM
#172
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #172 by lat9

lat9:

I've just submitted v1.5.1 of the ***DbIo ***to the Zen Cart plugins for review. This version corrects the GitHub issue #123 ("Products" export can't be imported).

I'll post back here once it's available for download.
That was quick! Now available ...

3 Jan 2019, 10:19 PM
#173
flipc avatar

flipc

New Zenner

Join Date:
May 2004
Posts:
9
Plugin Contributions:
0

Post #173 by flipc

ZC v1.5.6 / dbio-1.5.1
Created single product used to export.
Products Import - Shows No Errors.
Zen Cart shows # of products in respective categories BUT no products actually listed within said categories.

Looking at DB - it writes to "products" and "products_to_categories" but it is not writing to the "products_description" table.
Also I tried EXPORT - ALL again but it still only shows the manually created product.

4 Jan 2019, 12:14 PM
#174
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #174 by lat9

FlipC:

ZC v1.5.6 / dbio-1.5.1
Created single product used to export.
Products Import - Shows No Errors.
Zen Cart shows # of products in respective categories BUT no products actually listed within said categories.

Looking at DB - it writes to "products" and "products_to_categories" but it is not writing to the "products_description" table.
Also I tried EXPORT - ALL again but it still only shows the manually created product.
I'll git DbIo loaded on a 'fresh' zc156 and report my findings.

5 Jan 2019, 2:34 PM
#175
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #175 by lat9

@FlipC, I've loaded DbIo on a fresh zc156 installation, performed a products' export (to get the headers). Removed all pre-existing products, entered a new product with the v_dbio_command of ALL and imported.

The product was created in the database.

So, there's (obviously) something different between my installation of DbIo and yours. I've used the default settings, just changing the CSV: Encoding to latin1 (since I use MS-Excel). My DB_CHARSET is utf8 and my CHARSET is utf-8 and it's a single-language 'store'.

Would you post a screenshot of the 'Configuration' settings, shown to the right on the Tools->Database I/O Manager page and also attach a copy of the product-import that you're using?

5 Jan 2019, 9:43 PM
#176
flipc avatar

flipc

New Zenner

Join Date:
May 2004
Posts:
9
Plugin Contributions:
0

Post #176 by flipc

Attached the pic.

I use Open Office and save as UTF8.

Can you post the import file so I can check if mine has any differences?

Something you wrote just caught my eye
"entered a new product with the v_dbio_command". The v_ there makes me think the CSV file is meant to have a column v_dbio_command with a set control in it. Like 1/0. Want to make sure you just mean the DBio Import tool? Tools> Database IO Manager. Choose Products. Upload CSV file. Choose file then action and Go?

6 Jan 2019, 12:42 PM
#177
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #177 by lat9

Here's a contents of the 1 product .csv file that I used to successfully add another demo product to my test version of zc156.

v_products_id,v_products_type,v_products_quantity,v_products_model,v_products_image,v_products_price,v_products_virtual,v_products_date_added,v_products_last_modified,v_products_date_available,v_products_weight,v_products_status,v_products_ordered,v_products_quantity_order_min,v_products_quantity_order_units,v_products_priced_by_attribute,v_product_is_free,v_product_is_call,v_products_quantity_mixed,v_product_is_always_free_shipping,v_products_qty_box_status,v_products_quantity_order_max,v_products_sort_order,v_products_discount_type,v_products_discount_type_from,v_products_price_sorter,v_products_mixed_discount_quantity,v_metatags_title_status,v_metatags_products_name_status,v_metatags_model_status,v_metatags_price_status,v_metatags_title_tagline_status,v_products_name_en,v_products_description_en,v_products_url_en,v_products_viewed_en,v_manufacturers_name,v_tax_class_title,v_categories_name,v_dbio_command
0,1,31,MG200MMS-3,matrox/mg200mms.gif,299.99,0,11/3/2003 12:32,4/26/2004 23:57,,23,1,1,1,1,0,0,0,0,0,1,0,0,0,0,299.99,1,0,0,0,0,0,Matrox G200 MMS (added),"Reinforcing its position as a multi-monitor trailblazer, Matrox Graphics Inc. has once again developed the most flexible and highly advanced solution in the industry. Introducing the new Matrox G200 Multi-Monitor Series; the first graphics card ever to support up to four DVI digital flat panel displays on a single 8" PCI board.<br /><br />With continuing demand for digital flat panels in the financial workplace, the Matrox G200 MMS is the ultimate in flexible solutions. The Matrox G200 MMS also supports the new digital video interface (DVI) created by the Digital Display Working Group (DDWG) designed to ease the adoption of digital flat panels. Other configurations include composite video capture ability and onboard TV tuner, making the Matrox G200 MMS the complete solution for business needs.<br /><br />Based on the award-winning MGA-G200 graphics chip, the Matrox G200 Multi-Monitor Series provides superior 2D/3D graphics acceleration to meet the demanding needs of business applications such as real-time stock quotes (Versus), live video feeds (Reuters & Bloombergs), multiple windows applications, word processing, spreadsheets and CAD.",www.matrox.com/mga/products/g200_mms/home.cfm,0,Matrox,Taxable Goods,Hardware^Graphics Cards,ADD
7 Jan 2019, 8:38 PM
#178
flipc avatar

flipc

New Zenner

Join Date:
May 2004
Posts:
9
Plugin Contributions:
0

Post #178 by flipc

Got it working.
So it was the fact that I was missing the column v_dbio_command with ADD.

I did not come across this anywhere. Is there a list of commands/columns for Dbio?
Like can/does one put UPDATE in that column to update product info?

7 Jan 2019, 8:51 PM
#179
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #179 by lat9

FlipC:

Got it working.
So it was the fact that I was missing the column v_dbio_command with ADD.

I did not come across this anywhere. Is there a list of commands/columns for Dbio?
Like can/does one put UPDATE in that column to update product info?
It's a bit hidden in the DbIo's 60kB readme, but here's a link to the significant bits: https://vinosdefrutastropicales.com/product_extra_files/dbio/readme.html#handlers

7 Jan 2019, 10:17 PM
#180
flipc avatar

flipc

New Zenner

Join Date:
May 2004
Posts:
9
Plugin Contributions:
0

Post #180 by flipc

Thanks.
Will re-read the read me and everything on that link.