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 441 to 460 of 628
22 Mar 2022, 6:26 PM
#441
swguy avatar

swguy

Administrator

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

Post #441 by swguy

Success! DBIO succeeded where EZ Populate failed!

Question: would it make sense to default v_dbio_command to ADD when v_products_id = 0?

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.

22 Mar 2022, 6:32 PM
#442
swguy avatar

swguy

Administrator

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

Post #442 by swguy

Oh also a question: after I exported, I copied the last row but when I tried to import I get warnings on the date field:

2022-03-22 11:17:01: [*] products.products_date_added, line #2: Value (2022-03-22 10:44:32) is not a recognized date value; the default value for the field will be used.

Should I just remove this column from the spreadsheet to prevent trouble?
I wonder if v_products_link should also be removed?

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.

9 Aug 2022, 1:09 AM
#443
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #443 by jeking

I searched the ReadMe and this thread but didn't see an answer. I suspect it's there as it's not a very unique question.

How do I change the Master Category? We have linked products and want to change the Master Category.

When I export, I see the v_categories_name column has only the current Master Category. Do I type in the new Master Category and re-import?

Jim
Wheaton Website Services

9 Aug 2022, 7:02 AM
#444
dbltoe avatar

dbltoe

Totally Zenned

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

Post #444 by dbltoe

You might find help in the docs. https://docs.zen-cart.com/user/admin_pages/catalog/products_to_categories/#updating-a-single-products-master-category.

I'm afraid the Accessibility Widget doesn't speak shikawgo. :cool:

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

9 Aug 2022, 11:43 AM
#445
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #445 by jeking

dbltoe:

You might find help in the docs. https://docs.zen-cart.com/user/admin_pages/catalog/products_to_categories/#updating-a-single-products-master-category.

I'm afraid the Accessibility Widget doesn't speak shikawgo. :cool:

Thank you for the help. However, I was looking for a way to do it with this plugin. There are hundreds of products that need updating so was looking to avoid one by one in the admin.

Jim
Wheaton Website Services

9 Aug 2022, 11:48 AM
#446
lat9 avatar

lat9

Administrator

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

Post #446 by lat9

jeking:

I searched the ReadMe and this thread but didn't see an answer. I suspect it's there as it's not a very unique question.

How do I change the Master Category? We have linked products and want to change the Master Category.

When I export, I see the v_categories_name column has only the current Master Category. Do I type in the new Master Category and re-import?
Jim, see the online documentation (https://github.com/lat9/dbio/blob/master/pages/usage_notes/productshandler.md) regarding some of the intricacies of the Products Handler, including how to (a) change the master category or (b) unlink a product from a category.

9 Aug 2022, 3:50 PM
#447
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #447 by jeking

lat9:

Jim, see the online documentation (https://github.com/lat9/dbio/blob/master/pages/usage_notes/productshandler.md) regarding some of the intricacies of the Products Handler, including how to (a) change the master category or (b) unlink a product from a category.

Yes, that is what I was looking for. Thank you!

Here's my confusion. One of the products in question is in two categories. I see this on the product page in the admin. When I export all products, there is only one category in the v_categories_name column in the csv, the current master category. In order to change it, do I need to enter the other category name in the v_categories_name and re-import?

Jim
Wheaton Website Services

10 Aug 2022, 3:52 PM
#448
lat9 avatar

lat9

Administrator

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

Post #448 by lat9

jeking:

Yes, that is what I was looking for. Thank you!

Here's my confusion. One of the products in question is in two categories. I see this on the product page in the admin. When I export all products, there is only one category in the v_categories_name column in the csv, the current master category. In order to change it, do I need to enter the other category name in the v_categories_name and re-import?
Per that documentation referenced:

If the product is being updated, then the v_categories_name (if included) identifies the product's new master_categories_id.  The product's previous master_categories_id becomes a linked category.
10 Aug 2022, 7:04 PM
#449
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #449 by jeking

lat9:

Per that documentation referenced:

If the product is being updated, then the v_categories_name (if included) identifies the product's new master_categories_id. The product's previous master_categories_id becomes a linked category.


Thanks, I'll give that a try.

Jim
Wheaton Website Services

19 Jan 2023, 9:51 PM
#450
lat9 avatar

lat9

Administrator

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

Post #450 by lat9

Version 2.0.0 of DbIo is now available from the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2091

This release contains updates for the following GitHub issues:

#209: DbIo manager, checkboxes can't be selected via labels
#207: Product Export: debug for empty trim on metatags
#206: Remove duplicate language constants for dbio_customize tool
#205: Unable to resize select windows in Safari
#203: PHP notice/warning when there's an error or it's not "ok to proceed"
#202: Drop support for Zen Cart versions prior to zc157
#201: PHP 8.2: explicitly declaring variables
#199: Use zen_cfg_read_only for the DbIo version 'setting'
#198: PHP 8.16: PHP deprecated, auto_detect_line_endings is deprecated
#197: Add shipping cost value to DbIoOrders output

20 Jan 2023, 8:33 AM
#451
printchic avatar

printchic

New Zenner

Join Date:
May 2009
Posts:
66
Plugin Contributions:
0

Post #451 by printchic

lat9:

Version 2.0.0 of DbIo is now available from the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2091

This release contains updates for the following GitHub issues:

#209: DbIo manager, checkboxes can't be selected via labels
#207: Product Export: debug for empty trim on metatags
#206: Remove duplicate language constants for dbio_customize tool
#205: Unable to resize select windows in Safari
#203: PHP notice/warning when there's an error or it's not "ok to proceed"
#202: Drop support for Zen Cart versions prior to zc157
#201: PHP 8.2: explicitly declaring variables
#199: Use zen_cfg_read_only for the DbIo version 'setting'
#198: PHP 8.16: PHP deprecated, auto_detect_line_endings is deprecated
#197: Add shipping cost value to DbIoOrders output

Downloaded this plugin and followed the directions to upload the files. I also manually tried uploading file to proper folders to make sure nothing was missed. When I log into ADMIN and I click the HOME link on the right upper side of page where it says:

Home    Storefront    Support    Version    Account    Logoff

Nothing installed. My setup is as follows;

Zen-cart 1.58
New Install
Windows 11
Php 7.4 (also tried on 8.0)
Template: Clone of Bootstrap (also switched to regular bootstrap and tried clicking HOME)

20 Jan 2023, 1:39 PM
#452
lat9 avatar

lat9

Administrator

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

Post #452 by lat9

Any debug-logs present?

20 Jan 2023, 8:38 PM
#453
printchic avatar

printchic

New Zenner

Join Date:
May 2009
Posts:
66
Plugin Contributions:
0

Post #453 by printchic

lat9:

Any debug-logs present?

NOTE: I replaced my directory name with "privatedir" to prevent visit to store (privacy reasons).

mystore[20-Jan-2023 02:52:53 America/New_York] Request URI: /privatedir/, IP address: 173.231.210.61
#1 include(/home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php) called at [/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php:78]
#2 require(/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php) called at [/home/jwsuok/public_html/privatedir/includes/application_top.php:198]
#3 require(/home/jwsuok/public_html/privatedir/includes/application_top.php) called at [/home/jwsuok/public_html/privatedir/index.php:25]
--> PHP Warning: Use of undefined constant DIR_FS_ADMIN - assumed 'DIR_FS_ADMIN' (this will throw an Error in a future version of PHP) in /home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php on line 6.

[20-Jan-2023 02:52:53 America/New_York] Request URI: /privatedir/, IP address: 173.231.210.61
#1 include(/home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php) called at [/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php:78]
#2 require(/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php) called at [/home/jwsuok/public_html/privatedir/includes/application_top.php:198]
#3 require(/home/jwsuok/public_html/privatedir/includes/application_top.php) called at [/home/jwsuok/public_html/privatedir/index.php:25]
--> PHP Warning: Use of undefined constant DIR_FS_ADMIN - assumed 'DIR_FS_ADMIN' (this will throw an Error in a future version of PHP) in /home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php on line 9.

[20-Jan-2023 02:52:53 America/New_York] Request URI: /privatedir/, IP address: 173.231.210.61
#1 include(/home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php) called at [/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php:78]
#2 require(/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php) called at [/home/jwsuok/public_html/privatedir/includes/application_top.php:198]
#3 require(/home/jwsuok/public_html/privatedir/includes/application_top.php) called at [/home/jwsuok/public_html/privatedir/index.php:25]
--> PHP Warning: Use of undefined constant DIR_FS_ADMIN - assumed 'DIR_FS_ADMIN' (this will throw an Error in a future version of PHP) in /home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php on line 10.

20 Jan 2023, 8:41 PM
#454
printchic avatar

printchic

New Zenner

Join Date:
May 2009
Posts:
66
Plugin Contributions:
0

Post #454 by printchic

lat9:

Any debug-logs present?

Here is the logs. I removed my store's directory name and replaced it with "privatedir" so it's not public. If you need to know it i can message you.

mystore[20-Jan-2023 02:52:53 America/New_York] Request URI: /privatedir/, IP address: 173.231.210.61
#1 include(/home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php) called at [/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php:78]
#2 require(/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php) called at [/home/jwsuok/public_html/privatedir/includes/application_top.php:198]
#3 require(/home/jwsuok/public_html/privatedir/includes/application_top.php) called at [/home/jwsuok/public_html/privatedir/index.php:25]
--> PHP Warning: Use of undefined constant DIR_FS_ADMIN - assumed 'DIR_FS_ADMIN' (this will throw an Error in a future version of PHP) in /home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php on line 6.

[20-Jan-2023 02:52:53 America/New_York] Request URI: /privatedir/, IP address: 173.231.210.61
#1 include(/home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php) called at [/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php:78]
#2 require(/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php) called at [/home/jwsuok/public_html/privatedir/includes/application_top.php:198]
#3 require(/home/jwsuok/public_html/privatedir/includes/application_top.php) called at [/home/jwsuok/public_html/privatedir/index.php:25]
--> PHP Warning: Use of undefined constant DIR_FS_ADMIN - assumed 'DIR_FS_ADMIN' (this will throw an Error in a future version of PHP) in /home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php on line 9.

[20-Jan-2023 02:52:53 America/New_York] Request URI: /privatedir/, IP address: 173.231.210.61
#1 include(/home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php) called at [/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php:78]
#2 require(/home/jwsuok/public_html/privatedir/includes/init_includes/init_file_db_names.php) called at [/home/jwsuok/public_html/privatedir/includes/application_top.php:198]
#3 require(/home/jwsuok/public_html/privatedir/includes/application_top.php) called at [/home/jwsuok/public_html/privatedir/index.php:25]
--> PHP Warning: Use of undefined constant DIR_FS_ADMIN - assumed 'DIR_FS_ADMIN' (this will throw an Error in a future version of PHP) in /home/jwsuok/public_html/privatedir/includes/extra_datafiles/dbio_file_database_names_admin.php on line 10.

21 Jan 2023, 12:07 AM
#455
lat9 avatar

lat9

Administrator

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

Post #455 by lat9

Sigh, I'll give it a look ... but I've tested in zc158.

FWIW, that constant "should" be defined in /YOUR_ADMIN/includes/defined_paths.php, which is one of the most earliest-running php scripts.

24 Jan 2023, 5:18 AM
#456
printchic avatar

printchic

New Zenner

Join Date:
May 2009
Posts:
66
Plugin Contributions:
0

Post #456 by printchic

printchic:

Here is the logs. I removed my store's directory name and replaced it with "privatedir" so it's not public. If you need to know it i can message you.

I have DBIO working now on my site. I basically deleted all files that were automatically uploaded by dbio once I renamed the admin folder to my admin name and restored my to my previous backup version. I decided to try again tonight and I manually uploaded all the files in the dbio package. Then clicked the "home" link. I didn't see anything indicating that it had installed but when I checked under Tools the Database I/O Manager link is there.

Just updating that this problem is resolved.

24 Jan 2023, 12:40 PM
#457
lat9 avatar

lat9

Administrator

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

Post #457 by lat9

FWIW, the admin side messaging for plugin installations/upgrades can get (as you saw) lost ... for whatever reason. Thanks for the update that all's well.

30 Jan 2023, 2:09 AM
#458
phil_soth avatar

phil_soth

Zen Follower

Join Date:
Sep 2013
Location:
Warren, Oregon
Posts:
117
Plugin Contributions:
0

Post #458 by phil_soth

ZC 1.5 8
Database I/O (DbIo) Manager v2.0.0-beta3 (2023-01-02)
PHP Version 7.4.33

I have recently installed Dbio, having used Apsona until recently. I have read through this entire thread, and the most applicable set of instructions to import Products seems to come around page 11 or so, from 2017. Is there a more recent set of instructions?

I have a couple of hundred items to add to ZenCart; can I add them as a separate csv file, or do I append them to a downloaded file?

What about the Product ID value..I thought I undertstood it from the 2017 conversation, but since then a couple of posts indicate something different needed to be done. I understand that all fields need to be included in the upload, but which ones don't take a value or if a default value (blank or zero or whatever) which ones are they?

Your help is appreciated, and I apologize upfront for my lack of knowledge.

30 Jan 2023, 12:03 PM
#459
lat9 avatar

lat9

Administrator

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

Post #459 by lat9

Phil Soth:

ZC 1.5 8
Database I/O (DbIo) Manager v2.0.0-beta3 (2023-01-02)
PHP Version 7.4.33

I have recently installed Dbio, having used Apsona until recently. I have read through this entire thread, and the most applicable set of instructions to import Products seems to come around page 11 or so, from 2017. Is there a more recent set of instructions?

I have a couple of hundred items to add to ZenCart; can I add them as a separate csv file, or do I append them to a downloaded file?

What about the Product ID value..I thought I undertstood it from the 2017 conversation, but since then a couple of posts indicate something different needed to be done. I understand that all fields need to be included in the upload, but which ones don't take a value or if a default value (blank or zero or whatever) which ones are they?

Your help is appreciated, and I apologize upfront for my lack of knowledge.
There's additional on-line documentation on the plugin's GitHub repository. For the ProductsHandler: https://github.com/lat9/dbio/blob/master/pages/usage_notes/productshandler.md.

Note, too, that v2.0.0 of DbIo was released on 2023-01-19. I can't remember which specific updates occurred between the release and your beta version.

15 May 2023, 11:06 AM
#460
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #460 by ryk

Using DBIO 2.0.0

Not sure if this has happened to anyone else or been mentioned before, but had an issue where the import was generating multiple duplicate categories with a single product in each - but only on some categories, not all.

The client supplied data was a bit off "ideal", but after a bit of head-scratching, realised that all the offending category names exceeded the VARCHAR value set for the category name. Increasing that cured the problem, and the 10000+ products correctly imported on the next attempt.

Notifying in case it's something that could be planned for within the code, but if it happens to you, the solution is simple.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !