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 141 to 160 of 628
24 Apr 2018, 8:22 PM
#141
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Post #141 by icecold

hi,

After installing the latest version in the Plugins section in a test site I have, using ZC 1.5.5a, I was trying to upload my products from my live site, so I created an output file with the old version 1.0.0.1, the one in the test site is 1.4.1, as the interface has significant changes, I was hoping my exported file dbio.Products.x was readable by the new version but then I had an error message saying v_products_id wasn't found, which is weird because I usually use the app to export my products as a csv and then open the files in Excel and the column isn't there so it seems the new version can't read an old version export file, what can I do? I thought, it will be useful if I could use the export file as it's a real time saver.

25 Apr 2018, 11:27 AM
#142
lat9 avatar

lat9

Administrator

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

Post #142 by lat9

icecold:

hi,

After installing the latest version in the Plugins section in a test site I have, using ZC 1.5.5a, I was trying to upload my products from my live site, so I created an output file with the old version 1.0.0.1, the one in the test site is 1.4.1, as the interface has significant changes, I was hoping my exported file dbio.Products.x was readable by the new version but then I had an error message saying v_products_id wasn't found, which is weird because I usually use the app to export my products as a csv and then open the files in Excel and the column isn't there so it seems the new version can't read an old version export file, what can I do? I thought, it will be useful if I could use the export file as it's a real time saver.
You could try simply adding an empty v_products_id column to that "old version export" file. The import will locate the to-be-changed product by *either *its v_products_model (which the old export has) or its v_products_id.

29 Apr 2018, 7:23 PM
#144
swguy avatar

swguy

Administrator

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

Post #144 by swguy

Nicely done as usual, Cindy. Any chance you could build a handler with both Customer data and the primary entry from address book so we could get an address too? Thanks again for this mod.

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.

30 Apr 2018, 10:49 AM
#145
lat9 avatar

lat9

Administrator

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

Post #145 by lat9

swguy:

Nicely done as usual, Cindy. Any chance you could build a handler with both Customer data and the primary entry from address book so we could get an address too? Thanks again for this mod.
Thanks, Scott! I've noted your request as a DbIo GitHub issue: https://github.com/lat9/dbio/issues/118 and should have some traction on this in a week or so.

2 May 2018, 5:17 AM
#146
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Post #146 by icecold

I'm testing the newest version on a near vanilla install of ZC 1.5.5f, I said "near", because what I've already installed is a custom template, that's it nothing else and now dbio 1.4.1

I had dbio running for a long time in my live 1.5.3 store, and without problems, well the new version is not working with my export files, I have files with 19,000 products that were handled fast and efficiently by the old dbio 1.1 but this new version gets stuck, as suggested I manually added the "v_products_id" column, and now the 10Mb file that works fine in the old ZC seems to get stuck at 33%, I checked the logs and nothing is there!!! So please tell me how to fix this as I am in the process of migrating my old 1.5.3 store into a new 1.5.5f

2 May 2018, 11:02 AM
#147
lat9 avatar

lat9

Administrator

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

Post #147 by lat9

icecold:

I'm testing the newest version on a near vanilla install of ZC 1.5.5f, I said "near", because what I've already installed is a custom template, that's it nothing else and now dbio 1.4.1

I had dbio running for a long time in my live 1.5.3 store, and without problems, well the new version is not working with my export files, I have files with 19,000 products that were handled fast and efficiently by the old dbio 1.1 but this new version gets stuck, as suggested I manually added the "v_products_id" column, and now the 10Mb file that works fine in the old ZC seems to get stuck at 33%, I checked the logs and nothing is there!!! So please tell me how to fix this as I am in the process of migrating my old 1.5.3 store into a new 1.5.5f
One of the things that was added to the ProductsHandler from DbIo 1.1.0 to 1.4.1 was the addition of a configuration setting Products: Auto-Create Categories on Import?, which defaults to No.

What is your setting for the DbIo "Max Execution Time"? I've reviewed the changes from 1.1.0 to 1.4.1 and don't see anything that "stands out" as possibly causing the issue that you're having.

If it's possible for you to zip-up that import file, let me know and I'll send you my direct email so that I can see for myself what is going on.

3 May 2018, 1:38 AM
#148
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Post #148 by icecold

Well it was a nightmare uploading it into my server because I had to use cpanel, while the older version never got stuck ... can you tell me what's the best php.ini settings for your app to upload files between 10 and 20Mb? I went to the settings and set max upload size to 500Mb, and timeout to 600 secs which is crazy I know ...
So my guess is when I set up PHP 7.x something messed up the configuration of that particular php.ini ...

3 May 2018, 11:12 AM
#149
lat9 avatar

lat9

Administrator

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

Post #149 by lat9

icecold:

Well it was a nightmare uploading it into my server because I had to use cpanel, while the older version never got stuck ... can you tell me what's the best php.ini settings for your app to upload files between 10 and 20Mb? I went to the settings and set max upload size to 500Mb, and timeout to 600 secs which is crazy I know ...
So my guess is when I set up PHP 7.x something messed up the configuration of that particular php.ini ...
So, you're having issues uploading a .CSV file after the upgrade, too? Are you able to upload large-size image files for products using Catalog->Categories / Products? I ask because that uses the same built-in upload class for its handling.

A couple of php.ini settings that would apply are and file_uploads and upload_max_filesize. What version of PHP is the store running on?

5 May 2018, 9:14 PM
#150
swguy avatar

swguy

Administrator

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

Post #150 by swguy

Is it possible for me to call dbio from another program? "Hey, DBIO: Import this products file" is what I'd like to do, without the user having to go dbio, select products, and use the import form.

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.

6 May 2018, 10:50 AM
#151
lat9 avatar

lat9

Administrator

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

Post #151 by lat9

swguy:

Is it possible for me to call dbio from another program? "Hey, DBIO: Import this products file" is what I'd like to do, without the user having to go dbio, select products, and use the import form.
With a little "shackling", it's certainly possible. You can mimic the interface used by the /admin/dbio_manager.php module.

The main sequencing is done by the /admin/includes/classes/dbio/DbIo.php class, with two main methods: dbioExport and dbioImport.

21 Jun 2018, 5:47 PM
#152
dwchamb avatar

dwchamb

New Zenner

Join Date:
Jun 2018
Location:
Memphis, Tn
Posts:
4
Plugin Contributions:
0

Post #152 by dwchamb

lat9:

That message implies that your import-CSV file identifies 43 columns in the header row (the first row) but only 42 rows in data.

I am having this same problem with Zencart 1.5.5f and dbio 1.4.1. I found where this person was having this problem but I can find no fix for it. How can this be fixed? I export my products and get the error even when I try to import it back into my original database.

Thanks

21 Jun 2018, 6:23 PM
#153
lat9 avatar

lat9

Administrator

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

Post #153 by lat9

dwchamb:

I am having this same problem with Zencart 1.5.5f and dbio 1.4.1. I found where this person was having this problem but I can find no fix for it. How can this be fixed? I export my products and get the error even when I try to import it back into my original database.

Thanks
Could you post (between "CODE" tags, that big **# **in the post-writing menu) the first two lines of the .csv file you're trying to import?

21 Jun 2018, 7:53 PM
#154
dwchamb avatar

dwchamb

New Zenner

Join Date:
Jun 2018
Location:
Memphis, Tn
Posts:
4
Plugin Contributions:
0

Post #154 by dwchamb

lat9:

Could you post (between "CODE" tags, that big **# **in the post-writing menu) the first two lines of the .csv file you're trying to import?

This is tab delimited.

"v_products_id"t"v_products_type"t"v_products_quantity"t"v_products_model"t"v_products_image"t"v_products_price"t"v_products_virtual"t"v_products_date_added"t"v_products_last_modified"t"v_products_date_available"t"v_products_weight"t"v_products_status"t"v_products_ordered"t"v_products_quantity_order_min"t"v_products_quantity_order_units"t"v_products_priced_by_attribute"t"v_product_is_free"t"v_product_is_call"t"v_products_quantity_mixed"t"v_product_is_always_free_shipping"t"v_products_qty_box_status"t"v_products_quantity_order_max"t"v_products_sort_order"t"v_products_discount_type"t"v_products_discount_type_from"t"v_products_price_sorter"t"v_products_mixed_discount_quantity"t"v_metatags_title_status"t"v_metatags_products_name_status"t"v_metatags_model_status"t"v_metatags_price_status"t"v_metatags_title_tagline_status"t"v_products_name_en"t"v_products_description_en"t"v_products_url_en"t"v_products_viewed_en"t"v_manufacturers_name"t"v_tax_class_title"t"v_categories_name"tv_dbio_command
1t1t10tAS08thydroforce/as08_lg.jpgt169.00t0t"2012-05-19 20:24:27"t"2015-05-13 19:33:31"t"0001-01-01 00:00:00"t10t1t0t1t1t0t0t0t1t0t1t0t0t0t0t169.00t0t0t0t0t0t0t"HydroForce Sprayer"t"The Original HydroForce High-Pressure (100-1000 psi) Injection Sprayer!<br /><br />

Over 20,000 professional carpet cleaners can't be wrong. The amazing 
HydroForce connects to your pressure line and automatically draws 
concentrate from the 5-quart container to achieve your desired dilution 
ratio. Use for carpet pre-sprays, deodorizers, protectors, dying, etc.<br /><br />

HEAVY-DUTY STAINLESS STEEL EXTENSION AND GUN -
VIRTUALLY INDESTRUCTIBLE!<br /><br />Benefits:<ul style=""margin-top: 0px;""><li>NEW, patent-pending container design makes the Hydro-Force sprayer the most convenient sprayer on the market.</li><li>Large side-fill port - refill without removing the injector assembly</li><li>Wand holder to keep your wand off your customer's floor</li><li>Recessed handle - no more annoying velcro straps</li><li>Operating pressure range of 100-1,000 PSI</li><li>Eliminates annoying mixing required by pump up sprayers</li><li>High-quality quick connects allow your gun to swivel and permits quick removal</li></ul><br />"tt1382tHydro-Forcet"Taxable Goods"tAccessories
21 Jun 2018, 8:29 PM
#155
dwchamb avatar

dwchamb

New Zenner

Join Date:
Jun 2018
Location:
Memphis, Tn
Posts:
4
Plugin Contributions:
0

Post #155 by dwchamb

This may be a better sample.

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

1	1	10	AS08	hydroforce/as08_lg.jpg	169.00	0	"2012-05-19 20:24:27"	"2015-05-13 19:33:31"	"0001-01-01 00:00:00"	10	1	0	1	1	0	0	0	1	0	1	0	0	0	0	169.00	0	0	0	0	0	0	"HydroForce Sprayer"	"The Original HydroForce High-Pressure (100-1000 psi) Injection Sprayer!<br /><br />

Thanks

22 Jun 2018, 10:59 AM
#156
lat9 avatar

lat9

Administrator

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

Post #156 by lat9

Hmm, try deleting the header-column named v_dbio_command; I'm guessing that that's the extra column.

What program do you use to edit those CSV files for import?

22 Jun 2018, 3:31 PM
#157
dwchamb avatar

dwchamb

New Zenner

Join Date:
Jun 2018
Location:
Memphis, Tn
Posts:
4
Plugin Contributions:
0

Post #157 by dwchamb

lat9:

Hmm, try deleting the header-column named v_dbio_command; I'm guessing that that's the extra column.

What program do you use to edit those CSV files for import?

I use Apache Open Office Calc. Deleting the header-column named v_dbio_command fixed that error. Thanks for the quick reply.

21 Jul 2018, 7:07 PM
#158
lat9 avatar

lat9

Administrator

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

Post #158 by lat9

I've just submitted v1.5.0 of the Database I/O Manager to the Zen Cart plugins for review and will post back here once it's available.

This release contains the changes associated with the following GitHub issues:

#117: Correct multi-language customized "Products" export field-ordering.
#118: Add customers' default address information to the "Customers" export.
#119: Add a handler to import/export the "Products Discount Quantity" information.
#120: Correct exports for handlers that support a 'dbio_command'.

25 Jul 2018, 6:05 PM
#159
lat9 avatar

lat9

Administrator

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

Post #159 by lat9

lat9:

I've just submitted v1.5.0 of the Database I/O Manager to the Zen Cart plugins for review and will post back here once it's available.

This release contains the changes associated with the following GitHub issues:

#117: Correct multi-language customized "Products" export field-ordering.
#118: Add customers' default address information to the "Customers" export.
#119: Add a handler to import/export the "Products Discount Quantity" information.
#120: Correct exports for handlers that support a 'dbio_command'.
v1.5.0 is now available for download from the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2091

10 Aug 2018, 8:22 PM
#160
dbltoe avatar

dbltoe

Totally Zenned

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

Post #160 by dbltoe

1.5.5e PHP 5.6 -- More of a procedural question.

Scenario: Site sells bottles of vinegar. Available in singles, three-, six-, and twelve-packs. Naturally, the Option Name is set to Bottle 1 thru Bottle 12 and the appropriate number added to the respective product. The vinegar names are the Option Values for each Bottle so the Values are listed a total of twelve times.

All is well until two flavors are discontinued and six flavors are added.

I assume (I know) that simply deleting the discontinued flavors could munge the order history. Leaving them there is no problem.

The fun comes in getting the extra values into the options since the options and values tables are not directly tied to each other.

Do you have a suggested process order to accomplish this?

THANX

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