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,847

Results 261 to 280 of 628
21 Aug 2019, 10:38 AM
#261
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

Post #261 by hasher

Hi Lat9

I made what I think is a perfect copy of the import files. I have changed the encoding to UTF-8 , Office 365 version of only shows UTF8 encoding but no UTF8 BOM . So im not sure if it is saving to UTF8 BOM encoding without giving me an option . If its an encoding issue the I guess I need to get a different copy of a CSV editor.

I have tried chnaging the seperator and have included the logs in my files. Current error is "The current import-file is missing these (v_products_id, v_products_model) required columns; the import is disallowed."

Part in logs that worries me is "2019-08-21 10:19:56: importGetHeader, using headers:
Array
(
[0] => PK ¡O¬}° ñ xl/workbook.xmlMNÃ0…¯bù 8uH‘¢$‹.@•@°6Τ±ê?µÇÇq$¬<oæóÓ›i.Ï_ΝÉÕhjl飯r#ó`ÓlphDLOÌ
)
"

Which seems to be its not reading encoding right ! I could be wrong :)

https://yadi.sk/d/kHp37h4B4zHp8A

Thanks for any help !

Paul

21 Aug 2019, 11:09 AM
#262
lat9 avatar

lat9

Administrator

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

Post #262 by lat9

Hasher:

Hi Lat9

I made what I think is a perfect copy of the import files. I have changed the encoding to UTF-8 , Office 365 version of only shows UTF8 encoding but no UTF8 BOM . So im not sure if it is saving to UTF8 BOM encoding without giving me an option . If its an encoding issue the I guess I need to get a different copy of a CSV editor.

I have tried chnaging the seperator and have included the logs in my files. Current error is "The current import-file is missing these (v_products_id, v_products_model) required columns; the import is disallowed."

Part in logs that worries me is "2019-08-21 10:19:56: importGetHeader, using headers:
Array
(
[0] => PK ¡O¬}° ñ xl/workbook.xmlMNÃ0…¯bù 8uH‘¢$‹.@•@°6Τ±ê?µÇÇq$¬<oæóÓ›i.Ï_ΝÉÕhjl飯r#ó`ÓlphDLOÌ
)
"

Which seems to be its not reading encoding right ! I could be wrong :)

https://yadi.sk/d/kHp37h4B4zHp8A

Thanks for any help !

Paul
Since you're using Excel, you can change DbIo's encoding to use **latin1 **instead of **utf8 **(the default). I believe that will correct your issues.

21 Aug 2019, 12:02 PM
#263
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

Post #263 by hasher

Hi Lat9 ,

I changed to Latin1 and the import log does look better but I am now getting the message" "The current import-file is missing these (v_products_id) required columns; the import is disallowed." Uploaded a new log file if this helps. Do you use OpenOffice ?

https://yadi.sk/d/p9Ix-IZWuJ_FdA

21 Aug 2019, 12:35 PM
#264
lat9 avatar

lat9

Administrator

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

Post #264 by lat9

Hasher:

Hi Lat9 ,

I changed to Latin1 and the import log does look better but I am now getting the message" "The current import-file is missing these (v_products_id) required columns; the import is disallowed." Uploaded a new log file if this helps. Do you use OpenOffice ?

https://yadi.sk/d/p9Ix-IZWuJ_FdA
That log doesn't tell me anything.:( Would you post a zip of the to-be-imported CSV?

21 Aug 2019, 1:09 PM
#266
lat9 avatar

lat9

Administrator

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

Post #266 by lat9

The issue is that the .csv input is being stored with **UTF-8 BOM **encoding. I was able to import that CSV after opening it in Notepad++, clicking the "Encoding" tab, clicking Convert to UTF-8 and saving.

21 Aug 2019, 1:17 PM
#267
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

Post #267 by hasher

Thanks Lat9 !

Excel is just being a bit*h ! Impressed with your work !

21 Aug 2019, 1:26 PM
#268
lat9 avatar

lat9

Administrator

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

Post #268 by lat9

Hasher:

Thanks Lat9 !

Excel is just being a bit*h ! Impressed with your work !
Yep, it's a love/hate relationship! Thanks for the compliment.:blush:

22 Aug 2019, 6:37 AM
#269
torvista avatar

torvista

Totally Zenned

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

Post #269 by torvista

Excel is just being a bit*h
Excel is prehistoric/useless when dealing with encodings.
If you use Libreoffice you have full control of this on import and export of csv, I use this for all my work regarding import/export.

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

26 Aug 2019, 8:38 AM
#270
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

Post #270 by hasher

If I am adding a new product and the category I selected doesn't exist . Will it then be created ? I would try but I don't want to break anything :p

26 Aug 2019, 10:55 AM
#271
lat9 avatar

lat9

Administrator

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

Post #271 by lat9

Hasher:

If I am adding a new product and the category I selected doesn't exist . Will it then be created ? I would try but I don't want to break anything :p
There is a configuration setting (Products: Auto-Create Categories on Import) that controls whether or not categories are automatically created on an import (default false).

I recommend using the **Import (Check Only) **action as the first step of any import, so you can "see" what will be done via an import prior to actually performing it. Clicking on the "View Import Details" link will identify any messages associated with the import ... essentially performing all the checking steps without actually performing any database manipulations.

26 Aug 2019, 1:06 PM
#272
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

Post #272 by hasher

lat9:

There is a configuration setting (Products: Auto-Create Categories on Import) that controls whether or not categories are automatically created on an import (default false).

I recommend using the **Import (Check Only) **action as the first step of any import, so you can "see" what will be done via an import prior to actually performing it. Clicking on the "View Import Details" link will identify any messages associated with the import ... essentially performing all the checking steps without actually performing any database manipulations.

Been using the Check Only feature . Very good Idea!

I sent a PM Lat9 about something else !

26 Aug 2019, 7:23 PM
#273
lat9 avatar

lat9

Administrator

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

Post #273 by lat9

Hasher:

Been using the Check Only feature . Very good Idea!

I sent a PM Lat9 about something else !
To give credit where credit is due, it was @torvista that originally suggested that "Check only" feature!

8 Sep 2019, 7:50 PM
#274
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Post #274 by lankeeyankee

Hi Cindy,

I've searched this thread and re-read the docs but haven't found an answer. I am trying to use dbio to link products to different categories but have not had any success yet. What happens is it just moves the products to the newly specified category. Am I missing something or is this not an available function of dbio?


Zen Cart and it's community are the best!!

8 Sep 2019, 8:34 PM
#275
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Post #275 by lankeeyankee

I see a workaround. I need to add the products to the new linked category, which makes that the new master category. I then need to edit the csv to change the category back to the original and re-upload and import to set the master category back to the original.


Zen Cart and it's community are the best!!

15 Sep 2019, 2:10 PM
#276
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

Post #276 by hasher

Hi All,

I am having trouble importing product attributes , I have faithfully copied the exported file. When I do an import (check only) a blank page with "WARNING: An Error occurred, please refresh the page and try again.If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields." appears.

Looking in the server debug log I have found this error

[15-Sep-2019 12:29:06 UTC] Request URI: /admin/dbio_manager.php?action=file, IP address: 220.000.152.100
#1  trigger_error() called at [/home/u241385883/domains/rm/public_html/includes/classes/db/mysql/query_factory.php:171]
#2  queryFactory->show_error() called at [/home/u241385883/domains/rm/public_html/includes/classes/db/mysql/query_factory.php:143]
#3  queryFactory->set_error() called at [/home/u241385883/domains/rm/public_html/includes/classes/db/mysql/query_factory.php:270]
#4  queryFactory->Execute() called at [/home/u241385883/domains/rm/public_html/admin/includes/classes/dbio/DbIoHandler.php:931]
#5  DbIoHandler->importCsvRecord() called at [/home/u241385883/domains/rm/public_html/admin/includes/classes/dbio/DbIo.php:265]
#6  DbIo->dbioImport() called at [/home/u241385883/domains/rm/public_html/admin/dbio_manager.php:223]
--> PHP Fatal error: 1062:Duplicate entry '0' for key 'PRIMARY' :: INSERT INTO products_attributes_download (`products_attributes_filename`, `products_attributes_maxdays`, `products_attributes_maxcount`)
VALUES ('9', 7, 15) ==> (as called by) /home/u241385883/domains/rm/public_html/admin/includes/classes/dbio/DbIoHandler.php on line 931 <== in /home/u241385883/domains/rm/public_html/includes/classes/db/mysql/query_factory.php on line 171.

Here is a link to a sample CSV file I created . Any help is appreciated :)

https://yadi.sk/d/TscaBWdKATapHA

15 Sep 2019, 2:46 PM
#277
lat9 avatar

lat9

Administrator

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

Post #277 by lat9

Hmm, I'll need some time to investigate. I'm not sure that I've previously tested with downloads. I've grabbed that CSV for inspection.

15 Sep 2019, 5:38 PM
#278
lat9 avatar

lat9

Administrator

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

Post #278 by lat9

lat9:

Hmm, I'll need some time to investigate. I'm not sure that I've previously tested with downloads. I've grabbed that CSV for inspection.
Confirmed as a bug; follow this GitHub issue for resolution.

21 Sep 2019, 6:49 PM
#279
lat9 avatar

lat9

Administrator

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

Post #279 by lat9

I've just submitted v1.5.7 of the DbIo to the Zen Cart moderators for review; I'll post back when it's available for download.

 This release contains changes associated with the following GitHub issues:

#136: ProductsAttribsRaw: Include manufacturer's name in the export.
#147: Enable resizing of multi-select dropdowns.
#148: ProductsAttribsRaw: Correct MySQL error when adding a download attribute.

29 Sep 2019, 4:46 PM
#280
lat9 avatar

lat9

Administrator

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

Post #280 by lat9

lat9:

I've just submitted v1.5.7 of the DbIo to the Zen Cart moderators for review; I'll post back when it's available for download.

 This release contains changes associated with the following GitHub issues:

#136: ProductsAttribsRaw: Include manufacturer's name in the export.
#147: Enable resizing of multi-select dropdowns.
#148: ProductsAttribsRaw: Correct MySQL error when adding a download attribute.
v1.5.7a (I'd forgotten to update the release date) is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2091