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?
Started by lat9 on 1 Jul 2016, 6:09 PM · Views: 104,846
New Zenner
When will the new 1.5.2 version be available for download?
Administrator
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.
Administrator
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.
Administrator
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.
New Zenner
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 ?
Administrator
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.
New Zenner
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
New Zenner
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
Administrator
Administrator
@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?
New Zenner
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
Administrator
@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.
Administrator
Correction found for the issue reported by @lynbor; see https://github.com/lat9/dbio/commit/cd61b97ef1377e489f44a111fb7bb295aebedbea for details.
Zen Follower
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.
Zen Follower
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:
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
Zen Follower
Okay, perhaps the problem lies here, because we use umlauts the db collation is the Real deal aka UTF-8 not utf8, no they are not the same thing: https://www.iana.org/assignments/character-sets/character-sets.xhtml Preferred name is UTF-8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Zen Follower
So this reveals something: https://medium.com/@adamhooper/in-mysql-never-use-utf8-use-utf8mb4-11761243e434
So is your dbio using 3 bytes encoding?
Zen Follower
There is a ready made library for utf-8 support: https://github.com/tchwork/utf8/blob/master/src/Patchwork/PHP/Shim/Iconv.php
Zen Follower
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.
Administrator
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:
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.
Tell staff why this post should be reviewed.