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 201 to 220 of 628
5 Mar 2019, 12:54 PM
#201
slitter avatar

slitter

New Zenner

Join Date:
Jun 2005
Posts:
39
Plugin Contributions:
0

Post #201 by slitter

When will the new 1.5.2 version be available for download?

5 Mar 2019, 12:59 PM
#202
lat9 avatar

lat9

Administrator

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

Post #202 by lat9

slitter:

When will the new 1.5.2 version be available for download?
Thanks for the reminder!:smile:

I'll get that packaged up and report back.

5 Mar 2019, 1:18 PM
#203
lat9 avatar

lat9

Administrator

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

Post #203 by lat9

lat9:

Thanks for the reminder!:smile:

I'll get that packaged up and report back.
I've just submitted v1.5.2 of the DbIo to the Zen Cart plugins for review; I'll post back here once it's available for download (https://www.zen-cart.com/downloads.php?do=file&id=2091).

 This release contains changes associated with the following GitHub issues:

#124: Recognize utf8mb4 DB_CHARSET as a valid match to a CHARSET of utf-8
#125: Recognize a field-type of double.
#126: Accept negative integer values.

5 Mar 2019, 8:57 PM
#204
lat9 avatar

lat9

Administrator

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

Post #204 by lat9

lat9:

I've just submitted v1.5.2 of the DbIo to the Zen Cart plugins for review; I'll post back here once it's available for download (https://www.zen-cart.com/downloads.php?do=file&id=2091).

 This release contains changes associated with the following GitHub issues:

#124: Recognize utf8mb4 DB_CHARSET as a valid match to a CHARSET of utf-8
#125: Recognize a field-type of double.
#126: Accept negative integer values.
That was fast!:smile: DbIo 1.5.2 is now available for download.

6 Mar 2019, 2:33 PM
#205
slitter avatar

slitter

New Zenner

Join Date:
Jun 2005
Posts:
39
Plugin Contributions:
0

Post #205 by slitter

Thanks for the update.. just wondering if it is possible to combine Order information from Orders, Orders Products, Orders Attributes, Order Total, Order history tables and combine them with Customer information such as Customer name, Customer address ##etc etc ##into ONE CSV file ?

6 Mar 2019, 4:58 PM
#206
lat9 avatar

lat9

Administrator

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

Post #206 by lat9

slitter:

Thanks for the update.. just wondering if it is possible to combine Order information from Orders, Orders Products, Orders Attributes, Order Total, Order history tables and combine them with Customer information such as Customer name, Customer address ##etc etc ##into ONE CSV file ?
That's a tall order as there are (as you've identified) a significant number of tables to pull together. I'll give it some consideration, but will caution you not to expect anything soon.

3 Apr 2019, 3:43 PM
#207
lynbor avatar

lynbor

New Zenner

Join Date:
Sep 2004
Location:
Iowa
Posts:
93
Plugin Contributions:
0

Post #207 by lynbor

Just installed ZC 1.56a. a nice clean new install and then added DbIo. I'm attempting to merge to product databases into one. I used DbIo to export products from the other 2 ZC installations, both of which are v1.5.5b. Using excel on the two exported CSV files I changed the product_ID column to have unique numbers so there wouldn't be any conflict. It all looks good in the CSV file, but when I attempt to import I get a bazillion errors of "Value (1) is not an integer" (the number in the parenthesis changes with the number in the field it identifies. It looks like there are about 7 columns that generate this error message even though, there is definitely and "integer" in those fields. And the CSV appears to be correctly formated as far as numbers NOT having quotes around them and no extra spaces etc.. So how to I get DbIo or MySql to stop rejecting my integers?

elltx.com ELLTX Computer Services
hostingwithservice.com Designing Results Hosting Services
designingresults.com Designing Results Web Design Services

3 Apr 2019, 4:52 PM
#208
lynbor avatar

lynbor

New Zenner

Join Date:
Sep 2004
Location:
Iowa
Posts:
93
Plugin Contributions:
0

Post #208 by lynbor

lynbor:

Just installed ZC 1.56a. a nice clean new install and then added DbIo. I'm attempting to merge to product databases into one. I used DbIo to export products from the other 2 ZC installations, both of which are v1.5.5b. Using excel on the two exported CSV files I changed the product_ID column to have unique numbers so there wouldn't be any conflict. It all looks good in the CSV file, but when I attempt to import I get a bazillion errors of "Value (1) is not an integer" (the number in the parenthesis changes with the number in the field it identifies. It looks like there are about 7 columns that generate this error message even though, there is definitely and "integer" in those fields. And the CSV appears to be correctly formated as far as numbers NOT having quotes around them and no extra spaces etc.. So how to I get DbIo or MySql to stop rejecting my integers?

Here is the displayed error message after attempting the import
.
The DbIo import from file "/hm//public_html/zc/chnk-Dd-fsH/dbio/dbio.Products.upload2.csv" was completed with 6707 errors and 518 warnings. 0 records were inserted or updated.

And here is a portion of the log

2019-04-03 16:43:42: [] products.products_type, line #2: Value (1) is not an integer
2019-04-03 16:43:42: [
] products.products_virtual, line #2: Value (0) is not an integer
2019-04-03 16:43:42: [] products.products_date_added, line #2: Value (0000-00-00 00:00:00) is not a recognized date value; the default value for the field will be used.
2019-04-03 16:43:42: [
] products.products_status, line #2: Value (1) is not an integer
2019-04-03 16:43:42: [] products.products_priced_by_attribute, line #2: Value (0) is not an integer
2019-04-03 16:43:42: [
] products.product_is_free, line #2: Value (0) is not an integer
2019-04-03 16:43:42: [] products.product_is_call, line #2: Value (0) is not an integer
2019-04-03 16:43:42: [
] products.products_quantity_mixed, line #2: Value (1) is not an integer
2019-04-03 16:43:42: [] products.product_is_always_free_shipping, line #2: Value (0) is not an integer
2019-04-03 16:43:42: [
] products.products_qty_box_status, line #2: Value (1) is not an integer
2019-04-03 16:43:42: [] products.products_sort_order, line #2: Value (10) is not an integer
2019-04-03 16:43:42: [
] products.products_discount_type, line #2: Value (2) is not an integer
2019-04-03 16:43:42: [] products.products_discount_type_from, line #2: Value (0) is not an integer
2019-04-03 16:43:42: [
] products.products_mixed_discount_quantity, line #2: Value (1) is not an integer

And here is a portion of the CSV data I'm trying to import.

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,8968,468-9120-16,468-9120-16.jpg,20.51,0,0000-00-00 00:00:00,6/25/2018 8:35,,2,1,1037,1,1,0,0,0,1,0,1,0,10,2,0,20.51,1,1,1,1,1,1

AS you can see, line 2, the first two items are in fact integers. Arugh!

elltx.com ELLTX Computer Services
hostingwithservice.com Designing Results Hosting Services
designingresults.com Designing Results Web Design Services

3 Apr 2019, 6:47 PM
#209
lat9 avatar

lat9

Administrator

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

Post #209 by lat9

PM sent.

3 Apr 2019, 7:27 PM
#210
lat9 avatar

lat9

Administrator

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

Post #210 by lat9

@lynbor, thanks for a copy of that product-import CSV. I took the first line, stripping all others, and added the DbIo command ADD as the last column, so that the added product won't overwrite my test setup.

I did receive:

✗ products.products_date_added, line #2: Value (0000-00-00 00:00:00) is not a recognized date value; the default value for the field will be used.
✗ Product not inserted at line number 2; category id (0) has categories.
✗ products.products_date_added, line #3: Value (0000-00-00 00:00:00) is not a recognized date value; the default value for the field will be used.
✗ Product not inserted at line number 3; category id (0) has categories.
✗ products.products_date_added, line #4: Value (0000-00-00 00:00:00) is not a recognized date value; the default value for the field will be used.
✗ Product not inserted at line number 4, no match found for categories_name (Irontite).

Where the category-related issues are due to differences between my categories and yours, but I'm not seeing the "Value is not an integer". Are you using the same version of DbIo and its parameters (set in Configuration->DbIo Manager Settings) for both the store from which you're exporting and the store to which you're importing?

3 Apr 2019, 8:45 PM
#211
lynbor avatar

lynbor

New Zenner

Join Date:
Sep 2004
Location:
Iowa
Posts:
93
Plugin Contributions:
0

Post #211 by lynbor

lat9:

@lynbor, thanks for a copy of that product-import CSV. I took the first line, stripping all others, and added the DbIo command ADD as the last column, so that the added product won't overwrite my test setup.

I did receive:

✗ products.products_date_added, line #2: Value (0000-00-00 00:00:00) is not a recognized date value; the default value for the field will be used.
✗ Product not inserted at line number 2; category id (0) has categories.
✗ products.products_date_added, line #3: Value (0000-00-00 00:00:00) is not a recognized date value; the default value for the field will be used.
✗ Product not inserted at line number 3; category id (0) has categories.
✗ products.products_date_added, line #4: Value (0000-00-00 00:00:00) is not a recognized date value; the default value for the field will be used.
✗ Product not inserted at line number 4, no match found for categories_name (Irontite).

> Where the category-related issues are due to differences between my categories and yours, but I'm not seeing the "Value is not an integer".  Are you using the same version of DbIo and its parameters (set in ***Configuration->DbIo Manager Settings***) for both the store from which you're exporting and the store to which you're importing?

I installed DbIo from the same file to all three shopping cart programs.  The only setting change I made was to the version I'm importing into I turned on the ability for products to be able to create catagories.  Otherwise they are all from the same install files.  Also, i'm importing into a brand new fresh full install without sample data in the database. (not sure if that matters)  It's just weird that it thinks those numbers are not integers.  How is that even possible?

elltx.com ELLTX Computer Services
hostingwithservice.com Designing Results Hosting Services
designingresults.com Designing Results Web Design Services

4 Apr 2019, 11:32 AM
#212
lat9 avatar

lat9

Administrator

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

Post #212 by lat9

@lynbor, I still don't have an answer regarding the results you're seeing and have requested that a full DbIo debug be generated and sent to me directly.

13 Apr 2019, 2:07 AM
#214
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Post #214 by oopsibrickedit

Hi,

I installed DbIo on ZC 1.5.0 which runs non english language. Copied the language files to my language folders and DBIo seemed to work. Then I started to make around 1700 product import preparations and spent all most a day of doing so. Now I am little frustrated because I get this error:

The current import-file is missing these (v_products_id) required columns; the import is disallowed.

I use ; as a delimeter but changed that on the settings to be correct first thing. I also converted to , delimeter but no change. v_products_id is first column in my csv file. This is very frustrating because I have a tight time frame regarding these products and now I have 0 of them for sale and selling season goes by hour by hour... Any help would be greatly appreciated.

13 Apr 2019, 2:57 AM
#215
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Post #215 by oopsibrickedit

I turned out debugging but it revealed nothing I could see, then I made an export from the folder where I was going to import products and it revealed something very peculiar:

Attachment 18409

Actually that is all most funny but I am so pissed of I am not laughing. See Wikipedia and find out what an Integer is

13 Apr 2019, 3:56 PM
#219
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Post #219 by oopsibrickedit

Sorry if I was very snappy earlier, haven't slept for ages and totally lost it.

There is a ready made library for iconv utf-8 support: https://github.com/tchwork/utf8/blob/master/src/Patchwork/PHP/Shim/Iconv.php

Seems it could possibly be incorporated to support other encodings. this is from forceutf8 at encoding.php:

* It may fail to convert characters to UTF-8 if they fall into one of these scenarios:
   *
   * 1) when any of these characters:   ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞß
   *    are followed by any of these:  ("group B")
   *                                    ¡¢£¤¥¦§¨©ª«¬##®¯°±²³´µ¶•¸¹º»¼½¾¿
   * For example:   %ABREPRESENT%C9%BB. «REPRESENTÉ»
   * The "«" (%AB) character will be converted, but the "É" followed by "»" (%C9%BB)
   * is also a valid unicode character, and will be left unchanged.
   *
   * 2) when any of these: àáâãäåæçèéêëìíîï  are followed by TWO chars from group B,
   * 3) when any of these: ðñòó  are followed by THREE chars from group B.

The database in question is ancient and has been around since early 2000 and db-tables use utf-8(so it supports newly named utf8mb4 if I have understood right) and must accomodate all sorts of peculiar strings because related to technical products and language is not english to begin with. DB is ancient, converted possibly many times to support those and I suspect it contains åö䩪«¬##® etc chars. So the db connection is utf-8 in configure.php
and I am not sure if you try to import öä宩ª strings to it and have mysql db connection of utf8 and db tables utf-8 with myisam. What will happen? mysql utf8 connection means 3-byte character support right? So I am in terrible trouble if I try to squeeze 3 byte stuff which requires special chars in 4 byte environment?

I guess myisam is a good enough storage engine still for lots of reads and less writes. I have still no proper testing environment so can not simply test things out. Thanks to our very sluggish hosting operator.

Db currently anyways works and shows special characters right. Reason I must understood this thorough is that we are planning (or my boss is planning) to accomodate extra 30-70K products into that db. This tool would be a great help say for transferring few thousand products at a time. Next part is perhaps more complex but I tried to start with this.

Sorry for lengthy post.

15 Apr 2019, 10:50 AM
#220
lat9 avatar

lat9

Administrator

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

Post #220 by lat9

OopsIbrickedIT:

Hi,

I installed DbIo on ZC 1.5.0 which runs non english language. Copied the language files to my language folders and DBIo seemed to work. Then I started to make around 1700 product import preparations and spent all most a day of doing so. Now I am little frustrated because I get this error:

The current import-file is missing these (v_products_id) required columns; the import is disallowed.

I use ; as a delimeter but changed that on the settings to be correct first thing. I also converted to , delimeter but no change. v_products_id is first column in my csv file. This is very frustrating because I have a tight time frame regarding these products and now I have 0 of them for sale and selling season goes by hour by hour... Any help would be greatly appreciated.

OopsIbrickedIT:

I turned out debugging but it revealed nothing I could see, then I made an export from the folder where I was going to import products and it revealed something very peculiar:

Attachment 18409

Actually that is all most funny but I am so pissed of I am not laughing. See Wikipedia and find out what an Integer is
It sounds like (from the first referenced post) that you're importing those products. You'll need to add a column named v_dbio_command and fill each column with the DbIo command **ADD **to force the import of those products.

For the second referenced post, you've run into the same issue as @lynbor; see post #213 for the correction.