Zen Cart Logo
Forums / Addon Admin Tools / EasyPopulate 4.0 Support Thread

EasyPopulate 4.0 Support Thread

Sticky

Views: 733,341

Results 3,121 to 3,140 of 3,671
18 Jan 2020, 8:55 PM
#3121
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

EasyPopulate 4.0 Support Thread

zoomnbyu:

Ty for the quick reply. Below is the log text and I'm probably missing something obvious. The xxxx is just my paranoidly covering the admin folder name.

[18-Jan-2020 14:11:49 America/Chicago] Request URI: /zen-cart/xxxxxxxxxx/easypopulate_4.php?export=full, IP address: 68.15.228.173
#1 require() called at [/home2/tsantoro/public_html/zen-cart/xxxxxxxxxx/easypopulate_4_export.php:92]
#2 include_once(/home2/tsantoro/public_html/zen-cart/xxx/easypopulate_4_export.php) called at [/home2/tsantoro/public_html/zen-cart/joinT-mtL-Buses/easypopulate_4.php:286]
--> PHP Warning: require(/home2/tsantoro/public_html/zen-cart/xxxxxxxxxx/includes/modules/easypopulate_4_filelayout.php): failed to open stream: No such file or directory in /home2/tsantoro/public_html/zen-cart/xxxxxxxxxxx/easypopulate_4_export.php on line 92.

[18-Jan-2020 14:11:49 America/Chicago] PHP Fatal error: require(): Failed opening required '/home2/tsantoro/public_html/zen-cart/xxxxxxxxxxxx/includes/modules/easypopulate_4_filelayout.php' (include_path='.:/opt/php56/lib/php') in /home2/tsantoro/public_html/zen-cart/xxxxxxxxxxx/easypopulate_4_export.php on line 92
The software is admin related meaning it belongs in the admin directory (possibly installed some of the files in the catalog side). The files sought were not found and why the 500 error. The export directory can be on the catalog side if so desired, but the other files still need to be in the admin. :)

21 Jan 2020, 8:26 PM
#3122
zoomnbyu avatar

zoomnbyu

New Zenner

Join Date:
Jan 2020
Location:
Omaha, NE
Posts:
4
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Ok, found some missing files. Loaded those but still getting 500 error with log below.

[21-Jan-2020 14:08:59 America/Chicago] Request URI: /zen-cart/index.php?main_page=product_info&cPath=2_19&products_id=22, IP address: 68.15.228.173
#1 define() called at [/home2/tsantoro/public_html/zen-cart/includes/languages/english/meta_tags.php:17]
#2 require_once(/home2/tsantoro/public_html/zen-cart/includes/languages/english/meta_tags.php) called at [/home2/tsantoro/public_html/zen-cart/includes/languages/english.php:635]
#3 include_once(/home2/tsantoro/public_html/zen-cart/includes/languages/english.php) called at [/home2/tsantoro/public_html/zen-cart/includes/init_includes/init_templates.php:55]
#4 require(/home2/tsantoro/public_html/zen-cart/includes/init_includes/init_templates.php) called at [/home2/tsantoro/public_html/zen-cart/includes/autoload_func.php:48]
#5 require(/home2/tsantoro/public_html/zen-cart/includes/autoload_func.php) called at [/home2/tsantoro/public_html/zen-cart/includes/application_top.php:170]
#6 require(/home2/tsantoro/public_html/zen-cart/includes/application_top.php) called at [/home2/tsantoro/public_html/zen-cart/index.php:26]
--> PHP Warning: define() expects at least 2 parameters, 1 given in /home2/tsantoro/public_html/zen-cart/includes/languages/english/meta_tags.php on line 17.

Looked at the referenced meta_tags.php file and all that's on line 17 is keywords.

21 Jan 2020, 10:28 PM
#3123
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

zoomnbyu:

Ok, found some missing files. Loaded those but still getting 500 error with log below.

[21-Jan-2020 14:08:59 America/Chicago] Request URI: /zen-cart/index.php?main_page=product_info&cPath=2_19&products_id=22, IP address: 68.15.228.173
#1 define() called at [/home2/tsantoro/public_html/zen-cart/includes/languages/english/meta_tags.php:17]
#2 require_once(/home2/tsantoro/public_html/zen-cart/includes/languages/english/meta_tags.php) called at [/home2/tsantoro/public_html/zen-cart/includes/languages/english.php:635]
#3 include_once(/home2/tsantoro/public_html/zen-cart/includes/languages/english.php) called at [/home2/tsantoro/public_html/zen-cart/includes/init_includes/init_templates.php:55]
#4 require(/home2/tsantoro/public_html/zen-cart/includes/init_includes/init_templates.php) called at [/home2/tsantoro/public_html/zen-cart/includes/autoload_func.php:48]
#5 require(/home2/tsantoro/public_html/zen-cart/includes/autoload_func.php) called at [/home2/tsantoro/public_html/zen-cart/includes/application_top.php:170]
#6 require(/home2/tsantoro/public_html/zen-cart/includes/application_top.php) called at [/home2/tsantoro/public_html/zen-cart/index.php:26]
--> PHP Warning: define() expects at least 2 parameters, 1 given in /home2/tsantoro/public_html/zen-cart/includes/languages/english/meta_tags.php on line 17.

> Looked at the referenced meta_tags.php file and all that's on line 17 is keywords.
This is an indication of an incorrect modification of that meta_tags.php file.

A default version of that file has the following for that line. Note the comma and associated single quotes are important:

// Custom Keywords
define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping, store');


This issue is not related to EP4 but instead management/installation of the base Zen Cart software.
22 Jan 2020, 7:20 PM
#3124
zoomnbyu avatar

zoomnbyu

New Zenner

Join Date:
Jan 2020
Location:
Omaha, NE
Posts:
4
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Thanks for the feedback. Will check comma's and such. One question if you know, why would EP care about keywords for a database dump?

Thanks

22 Jan 2020, 8:02 PM
#3125
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

zoomnbyu:

Thanks for the feedback. Will check comma's and such. One question if you know, why would EP care about keywords for a database dump?

Thanks

There is the possibility for every product and category to identify the keywords that will be present when a page is visited. To make that entry easier by way of mass population, EP4 offers that capability. The alternative is to allow Zen Cart to determine what keywords are presented or to manually enter them through the admin.

Thing is though as far as I can see in the EP4 code, with a proper installation of Zen Cart followed by a proper installation of EP4, there is no reason that the catalog side meta_tags.php file should even be accessed. So I'm not sure why the above error even happened from the admin side...

24 Jan 2020, 8:44 PM
#3126
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
741
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

I am trying to do an import using easy populate, but for some reason I am getting this error. i did just upgrad to php 7.3 o that might have something to do with the error. If someone could assist me that would be great

  • Zencart 1.5.6
  • Module Easy Populate 4.0.36.ZC
  • Php 7.3

I believe the file in question might be Admin/easypopulate_4_import.php

error

MySQLi error 1364: Field 'categories_description' doesn't have a default value
When executing:
INSERT INTO categories_description SET 
categories_id   = 3759,
language_id     = 1,
categories_name = 'Battery Straps'
24 Jan 2020, 9:29 PM
#3127
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

chadlly2003:

I am trying to do an import using easy populate, but for some reason I am getting this error. i did just upgrad to php 7.3 o that might have something to do with the error. If someone could assist me that would be great

  • Zencart 1.5.6
  • Module Easy Populate 4.0.36.ZC
  • Php 7.3

I believe the file in question might be Admin/easypopulate_4_import.php

error

MySQLi error 1364: Field 'categories_description' doesn't have a default value
When executing:
INSERT INTO categories_description SET
categories_id = 3759,
language_id = 1,
categories_name = 'Battery Straps'


See if application of the following three commits get you there:
<https://github.com/mc12345678/EasyPopulate-4.0/commit/57dda2b9f82da71c060d82acefc8a42551c6d37c>
<https://github.com/mc12345678/EasyPopulate-4.0/commit/32a9cd215baefa04d3b6957d0a3d2ce914c2b183>
<https://github.com/mc12345678/EasyPopulate-4.0/commit/9d846d3eeb6c9dd389a718b27bd745b7e83045a2>

The cause is that ZC has not had a default value for new categories, but previous mysql servers (lower versions) have been "ok" with that. But that is no longer the case, and unfortunately a feature I'm trying to add is not to completion so a new version has not been published.
25 Jan 2020, 1:24 AM
#3128
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
741
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

not sure if this was the best way to solve the issue but

I went to the terminal and edited the cnf file

change this sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

to this

sql_mode=

19 Mar 2020, 3:13 AM
#3129
msrwebmaster avatar

msrwebmaster

New Zenner

Join Date:
Sep 2008
Location:
Calgary, AB
Posts:
33
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

If I do NOT include a v_status column/value in the imported csv, it will default to 0 and set the product's status to OFF (Disabled) upon import.
Am I correct in my understanding?
And, am I missing a setting that will default any import to 1/ON/Enabled? Or do I have to ensure a v_status value in the csv?
Thanks.

19 Mar 2020, 7:41 AM
#3130
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

MSRWebMaster:

If I do NOT include a v_status column/value in the imported csv, it will default to 0 and set the product's status to OFF (Disabled) upon import.
Am I correct in my understanding?
And, am I missing a setting that will default any import to 1/ON/Enabled? Or do I have to ensure a v_status value in the csv?
Thanks.
To try to answer factually, would need to be sure to have some context. I have an idea of an expectation, though...

To help with the context, I could use a few pieces of information:
What version of EP4 and/or download date from what source?
Zen Cart version?
Are these new, existing, or a mixture of both product in the file?
What has a test of omitting that column shown/done?

I would think (haven't gone to search the code) that for imports it would be possible to provide a default value that is overridden by the imported file having a "replacement" column record. Or there is always the possibility of adding yet another configuration setting or similar.

19 Mar 2020, 11:44 AM
#3131
keith_z avatar

keith_z

New Zenner

Join Date:
Jul 2014
Location:
Arkansas
Posts:
40
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

MSRWebMaster:

If I do NOT include a v_status column/value in the imported csv, it will default to 0 and set the product's status to OFF (Disabled) upon import.
Am I correct in my understanding?
And, am I missing a setting that will default any import to 1/ON/Enabled? Or do I have to ensure a v_status value in the csv?
Thanks.

This is true. I have found that you must include the v_status column with a value of 1.

19 Mar 2020, 11:51 AM
#3132
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

keith z:

This is true. I have found that you must include the v_status column with a value of 1.

To possibly provide some form of improvement, the questions previously asked still stand and are applicable here as well.

25 Mar 2020, 1:15 PM
#3133
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: EasyPopulate 4.0 Support Thread

EasyPopulate V4 - Version: 4.0.36.ZC with zen-cart-v1.5.6c

Import error:

MySQLi error 1364: Field 'categories_description' doesn't have a default valueWhen executing:
INSERT INTO categories_description SET 
                                        categories_id   = 2,
                                        language_id     = 1,
                                        categories_name = '1/12 SCALE FURNITURE'
MySQLi error 1366: Incorrect integer value: '' for column 'products_sort_order' at row 1
When executing:
INSERT INTO products SET
                            products_model                    = 'J0844MH',
                            products_type                     = 1,
                            products_price                    = '108.19', products_image            = 'J0844MH.jpg',
                            products_weight                    = 0.6,
                            products_discount_type          = 0,
                            products_discount_type_from     = 0,
                            product_is_call                 = 0,
                            products_sort_order             = '',
                            products_quantity_order_min     = 0,
                            products_quantity_order_units   = 0,
                            products_priced_by_attribute    = 0,
                            product_is_always_free_shipping    = 0,
                            products_tax_class_id            = 0,
                            products_date_available            = NULL, 
                            products_date_added                = '1970-01-01 10:00:00',
                            products_last_modified            = CURRENT_TIMESTAMP,
                            products_quantity                = 7,
                            master_categories_id            = 2,
                            manufacturers_id                = 1,
                            products_status                    = 0,
                            metatags_title_status            = 0,
                            metatags_products_name_status    = 0,
                            metatags_model_status            = 0,
                            metatags_price_status            = 0,
                            metatags_title_tagline_status    = 0

I tried this code from this patch https://github.com/mc12345678/EasyPopulate-4.0/compare/mc12345678:v4.0.36.ZC...v4.0.36-categories_description_import_patch
but import page did not load
I probably did not edit easypopulate_4_import.php correctly, the patch is different to the full file (not a full file)
maybe someone can edit code for easypopulate_4_import.php and send me link (attached file)

Import file:

[TABLE="width: 1280"]
  [TR]
  [TD="width: 64"]v_products_model[/TD]
  [TD="width: 64"]v_products_image[/TD]
  [TD="width: 64"]v_products_name_1[/TD]
  [TD="width: 64"]v_products_description_1[/TD]
  [TD="width: 64"]v_products_url_1[/TD]
  [TD="width: 64"]v_specials_price[/TD]
  [TD="width: 64"]v_specials_last_modified[/TD]
  [TD="width: 64"]v_specials_expires_date[/TD]
  [TD="width: 64"]v_products_price[/TD]
  [TD="width: 64"]v_products_weight[/TD]
  [TD="width: 64"]v_last_modified[/TD]
  [TD="width: 64"]v_date_added[/TD]
  [TD="width: 64"]v_products_quantity[/TD]
  [TD="width: 64"]v_manufacturers_name[/TD]
  [TD="width: 64"]v_categories_name_1[/TD]
  [TD="width: 64"]v_categories_name_2[/TD]
  [TD="width: 64"]v_categories_name_3[/TD]
  [TD="width: 64"]v_categories_name_4[/TD]
  [TD="width: 64"]v_categories_name_5[/TD]
  [TD="width: 64"]v_products_type[/TD]
 [/TR]
 [TR]
  [TD]J0844MH[/TD]
  [TD]J0844MH.jpg[/TD]
  [TD]George Washington Double End Desk - mahogany- 1:12 scale[/TD]
  [TD="colspan: 5"]<p>The George Washington  Double ended desk knee hole ,called a partners Desk hole desk has 3 drawers  on each side with a single long drawer in the centre. There are 3 faux  drawers on either end. The 8 legs are fluted and the drawers are decorated with  a ######## bead molding around all sides. the top of the desk has a shelf at both  ends. The desk measures 3 inches high x 6 inches wide x 2 and is available in  a mahogany finish.</p>[/TD]
  [TD="align: right"]108.19[/TD]
  [TD="align: right"]0.6[/TD]
  [TD="class: xl63, align: center"]########[/TD]
  [TD="class: xl63, align: center"]########[/TD]
  [TD="align: right"]7[/TD]
  [TD]JBM Miniatures[/TD]
  [TD]1/12 SCALE FURNITURE[/TD]
  [TD="colspan: 3"]All 1/12 SCALE FURNITURE[/TD]
  [TD][/TD]
  [TD="align: right"]1[/TD]
 [/TR]
 [TR]
  [TD]J0844MH[/TD]
  [TD]J0844MH.jpg[/TD]
  [TD]George Washington Double End Desk - mahogany- 1:12 scale[/TD]
  [TD="colspan: 5"]<p>The George Washington  Double ended desk knee hole ,called a partners Desk hole desk has 3 drawers  on each side with a single long drawer in the centre. There are 3 faux  drawers on either end. The 8 legs are fluted and the drawers are decorated with  a ######## bead molding around all sides. the top of the desk has a shelf at both  ends. The desk measures 3 inches high x 6 inches wide x 2 and is available in  a mahogany finish.</p>[/TD]
  [TD="align: right"]108.19[/TD]
  [TD="align: right"]0.6[/TD]
  [TD="class: xl63, align: center"]########[/TD]
  [TD="class: xl63, align: center"]########[/TD]
  [TD="align: right"]7[/TD]
  [TD]JBM Miniatures[/TD]
  [TD]1/12 SCALE FURNITURE[/TD]
  [TD]1/12 SCALE FURNITURE BY ROOMS[/TD]
  [TD]STUDIES[/TD]
  [TD][/TD]
  [TD][/TD]
  [TD="align: right"]1[/TD]
[/TR]
[/TABLE]
25 Mar 2020, 2:59 PM
#3134
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

vandiermen:

EasyPopulate V4 - Version: 4.0.36.ZC with zen-cart-v1.5.6c

Import error:

MySQLi error 1364: Field 'categories_description' doesn't have a default valueWhen executing:
INSERT INTO categories_description SET
categories_id = 2,
language_id = 1,
categories_name = '1/12 SCALE FURNITURE'
MySQLi error 1366: Incorrect integer value: '' for column 'products_sort_order' at row 1
When executing:
INSERT INTO products SET
products_model = 'J0844MH',
products_type = 1,
products_price = '108.19', products_image = 'J0844MH.jpg',
products_weight = 0.6,
products_discount_type = 0,
products_discount_type_from = 0,
product_is_call = 0,
products_sort_order = '',
products_quantity_order_min = 0,
products_quantity_order_units = 0,
products_priced_by_attribute = 0,
product_is_always_free_shipping = 0,
products_tax_class_id = 0,
products_date_available = NULL,
products_date_added = '1970-01-01 10:00:00',
products_last_modified = CURRENT_TIMESTAMP,
products_quantity = 7,
master_categories_id = 2,
manufacturers_id = 1,
products_status = 0,
metatags_title_status = 0,
metatags_products_name_status = 0,
metatags_model_status = 0,
metatags_price_status = 0,
metatags_title_tagline_status = 0

> 
> I tried this code from this patch <https://github.com/mc12345678/EasyPopulate-4.0/compare/mc12345678:v4.0.36.ZC...v4.0.36-categories_description_import_patch> 
> but import page did not load 
> I probably did not edit easypopulate_4_import.php correctly, the patch is different to the full file (not a full file)   
> maybe someone can edit code for easypopulate_4_import.php  and send me link (attached file)
> 
> Import file:
> ```
[TABLE="width: 1280"]
[TR]
[TD="width: 64"]v_products_model[/TD]
[TD="width: 64"]v_products_image[/TD]
[TD="width: 64"]v_products_name_1[/TD]
[TD="width: 64"]v_products_description_1[/TD]
[TD="width: 64"]v_products_url_1[/TD]
[TD="width: 64"]v_specials_price[/TD]
[TD="width: 64"]v_specials_last_modified[/TD]
[TD="width: 64"]v_specials_expires_date[/TD]
[TD="width: 64"]v_products_price[/TD]
[TD="width: 64"]v_products_weight[/TD]
[TD="width: 64"]v_last_modified[/TD]
[TD="width: 64"]v_date_added[/TD]
[TD="width: 64"]v_products_quantity[/TD]
[TD="width: 64"]v_manufacturers_name[/TD]
[TD="width: 64"]v_categories_name_1[/TD]
[TD="width: 64"]v_categories_name_2[/TD]
[TD="width: 64"]v_categories_name_3[/TD]
[TD="width: 64"]v_categories_name_4[/TD]
[TD="width: 64"]v_categories_name_5[/TD]
[TD="width: 64"]v_products_type[/TD]
[/TR]
[TR]
[TD]J0844MH[/TD]
[TD]J0844MH.jpg[/TD]
[TD]George Washington Double End Desk - mahogany- 1:12 scale[/TD]
[TD="colspan: 5"]<p>The George Washington  Double ended desk knee hole ,called a partners Desk hole desk has 3 drawers  on each side with a single long drawer in the centre. There are 3 faux  drawers on either end. The 8 legs are fluted and the drawers are decorated with  a ######## bead molding around all sides. the top of the desk has a shelf at both  ends. The desk measures 3 inches high x 6 inches wide x 2 and is available in  a mahogany finish.</p>[/TD]
[TD="align: right"]108.19[/TD]
[TD="align: right"]0.6[/TD]
[TD="class: xl63, align: center"]########[/TD]
[TD="class: xl63, align: center"]########[/TD]
[TD="align: right"]7[/TD]
[TD]JBM Miniatures[/TD]
[TD]1/12 SCALE FURNITURE[/TD]
[TD="colspan: 3"]All 1/12 SCALE FURNITURE[/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]J0844MH[/TD]
[TD]J0844MH.jpg[/TD]
[TD]George Washington Double End Desk - mahogany- 1:12 scale[/TD]
[TD="colspan: 5"]<p>The George Washington  Double ended desk knee hole ,called a partners Desk hole desk has 3 drawers  on each side with a single long drawer in the centre. There are 3 faux  drawers on either end. The 8 legs are fluted and the drawers are decorated with  a ######## bead molding around all sides. the top of the desk has a shelf at both  ends. The desk measures 3 inches high x 6 inches wide x 2 and is available in  a mahogany finish.</p>[/TD]
[TD="align: right"]108.19[/TD]
[TD="align: right"]0.6[/TD]
[TD="class: xl63, align: center"]########[/TD]
[TD="class: xl63, align: center"]########[/TD]
[TD="align: right"]7[/TD]
[TD]JBM Miniatures[/TD]
[TD]1/12 SCALE FURNITURE[/TD]
[TD]1/12 SCALE FURNITURE BY ROOMS[/TD]
[TD]STUDIES[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[/TR]
[/TABLE]

When following that link, on the right side of the screen are three dots. At least in Microsoft edge when clicking on the three dots a dropdown menu is presented which includes to view the file. That takes you to: https://github.com/mc12345678/EasyPopulate-4.0/blob/5b71a7e75ea7fe4a0aa175f124785e7507e28797/admin/easypopulate_4_import.php

From there you can get the "Raw" file which is just the text of the file that can then be copied and pasted as appropriate. That location is: https://raw.githubusercontent.com/mc12345678/EasyPopulate-4.0/5b71a7e75ea7fe4a0aa175f124785e7507e28797/admin/easypopulate_4_import.php

And there is a short explanation of navigating GitHub. :)

But understand that any other changes/tweaks that may have been applied and are not in the file at that point/location will be overwritten if this file is used in its entirety instead of just incorporating the changes that were shown in the original link.

25 Mar 2020, 3:06 PM
#3135
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

vandiermen:

EasyPopulate V4 - Version: 4.0.36.ZC with zen-cart-v1.5.6c

Import error:

MySQLi error 1364: Field 'categories_description' doesn't have a default valueWhen executing:
INSERT INTO categories_description SET
categories_id = 2,
language_id = 1,
categories_name = '1/12 SCALE FURNITURE'
MySQLi error 1366: Incorrect integer value: '' for column 'products_sort_order' at row 1
When executing:
INSERT INTO products SET
products_model = 'J0844MH',
products_type = 1,
products_price = '108.19', products_image = 'J0844MH.jpg',
products_weight = 0.6,
products_discount_type = 0,
products_discount_type_from = 0,
product_is_call = 0,
products_sort_order = '',
products_quantity_order_min = 0,
products_quantity_order_units = 0,
products_priced_by_attribute = 0,
product_is_always_free_shipping = 0,
products_tax_class_id = 0,
products_date_available = NULL,
products_date_added = '1970-01-01 10:00:00',
products_last_modified = CURRENT_TIMESTAMP,
products_quantity = 7,
master_categories_id = 2,
manufacturers_id = 1,
products_status = 0,
metatags_title_status = 0,
metatags_products_name_status = 0,
metatags_model_status = 0,
metatags_price_status = 0,
metatags_title_tagline_status = 0

> 
> I tried this code from this patch <https://github.com/mc12345678/EasyPopulate-4.0/compare/mc12345678:v4.0.36.ZC...v4.0.36-categories_description_import_patch> 
> but import page did not load 
> I probably did not edit easypopulate_4_import.php correctly, the patch is different to the full file (not a full file)   
> maybe someone can edit code for easypopulate_4_import.php  and send me link (attached file)
> 
> Import file:
> ```
[TABLE="width: 1280"]
[TR]
[TD="width: 64"]v_products_model[/TD]
[TD="width: 64"]v_products_image[/TD]
[TD="width: 64"]v_products_name_1[/TD]
[TD="width: 64"]v_products_description_1[/TD]
[TD="width: 64"]v_products_url_1[/TD]
[TD="width: 64"]v_specials_price[/TD]
[TD="width: 64"]v_specials_last_modified[/TD]
[TD="width: 64"]v_specials_expires_date[/TD]
[TD="width: 64"]v_products_price[/TD]
[TD="width: 64"]v_products_weight[/TD]
[TD="width: 64"]v_last_modified[/TD]
[TD="width: 64"]v_date_added[/TD]
[TD="width: 64"]v_products_quantity[/TD]
[TD="width: 64"]v_manufacturers_name[/TD]
[TD="width: 64"]v_categories_name_1[/TD]
[TD="width: 64"]v_categories_name_2[/TD]
[TD="width: 64"]v_categories_name_3[/TD]
[TD="width: 64"]v_categories_name_4[/TD]
[TD="width: 64"]v_categories_name_5[/TD]
[TD="width: 64"]v_products_type[/TD]
[/TR]
[TR]
[TD]J0844MH[/TD]
[TD]J0844MH.jpg[/TD]
[TD]George Washington Double End Desk - mahogany- 1:12 scale[/TD]
[TD="colspan: 5"]<p>The George Washington  Double ended desk knee hole ,called a partners Desk hole desk has 3 drawers  on each side with a single long drawer in the centre. There are 3 faux  drawers on either end. The 8 legs are fluted and the drawers are decorated with  a ######## bead molding around all sides. the top of the desk has a shelf at both  ends. The desk measures 3 inches high x 6 inches wide x 2 and is available in  a mahogany finish.</p>[/TD]
[TD="align: right"]108.19[/TD]
[TD="align: right"]0.6[/TD]
[TD="class: xl63, align: center"]########[/TD]
[TD="class: xl63, align: center"]########[/TD]
[TD="align: right"]7[/TD]
[TD]JBM Miniatures[/TD]
[TD]1/12 SCALE FURNITURE[/TD]
[TD="colspan: 3"]All 1/12 SCALE FURNITURE[/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]J0844MH[/TD]
[TD]J0844MH.jpg[/TD]
[TD]George Washington Double End Desk - mahogany- 1:12 scale[/TD]
[TD="colspan: 5"]<p>The George Washington  Double ended desk knee hole ,called a partners Desk hole desk has 3 drawers  on each side with a single long drawer in the centre. There are 3 faux  drawers on either end. The 8 legs are fluted and the drawers are decorated with  a ######## bead molding around all sides. the top of the desk has a shelf at both  ends. The desk measures 3 inches high x 6 inches wide x 2 and is available in  a mahogany finish.</p>[/TD]
[TD="align: right"]108.19[/TD]
[TD="align: right"]0.6[/TD]
[TD="class: xl63, align: center"]########[/TD]
[TD="class: xl63, align: center"]########[/TD]
[TD="align: right"]7[/TD]
[TD]JBM Miniatures[/TD]
[TD]1/12 SCALE FURNITURE[/TD]
[TD]1/12 SCALE FURNITURE BY ROOMS[/TD]
[TD]STUDIES[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[/TR]
[/TABLE]

As far as the data being entered, the v_categories_name columns don't look right... Where populated they have the same language in each column. EP4 uses the _1, _2, etc... flag as a language identifier. An item that is in a sub-category is identified by separating the parent category from its child category with a carat (^), so the second entry looks like in v_categories_name_1, the entry should be: "1/12 SCALE FURNITURE^1/12 SCALE FURNITURE BY ROOMS^STUDIES" so that the product would be associated with the studies category that is a child of the 1/12 scale furniture by rooms category that is a child/sub-category of 1/12 scale furniture.

I assume this file was collected from some other variation of Easy Populate and was not generated directly from EP4.

2 Apr 2020, 10:09 PM
#3136
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

I, for the first time since EP came out, wanted to try and circumvent adding products from the admin and tried adding a product to a downloaded Full EP file a specific category. I left the product id empty since it hadn't been created yet, and it didn't import. Is there a formula to add NEW products using EP by adding them to a current spreadsheet?

2 Apr 2020, 11:23 PM
#3137
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

Carbonless:

I, for the first time since EP came out, wanted to try and circumvent adding products from the admin and tried adding a product to a downloaded Full EP file a specific category. I left the product id empty since it hadn't been created yet, and it didn't import. Is there a formula to add NEW products using EP by adding them to a current spreadsheet?
There "is" though it depends on what setting you have for the primary id (assuming using a more recent version of EP4 that offers a selection). If you have the selection, then blank_new as the setting will create a new product when the products_id is left blank. If you choose products_model (the default/classic primary key) then a new product is made when there is a new products_model that hasn't existed. For products_id as a key, then a new product is created if a products_id is used that didn't previously exist noting that a row of data with a blank products_id will be ignored.

At any time if a primary key is used and that product already exists in the database and not specifically deleting data, then when that row is processed for adding/updating if the category is different than what already exists that row of data will be linked to the original product and the data of the original product will be updated to the row being read.

3 Apr 2020, 12:03 AM
#3138
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

[HTML][HTML][QUOTE=mc12345678;1367176]There "is" though it depends on what setting you have for the primary id (assuming using a more recent version of EP4 that offers a selection). If you have the selection, then blank_new as the setting will create a new product when the products_id is left blank. If you choose products_model (the default/classic primary key) then a new product is made when there is a new products_model that hasn't existed. For products_id as a key, then a new product is created if a products_id is used that didn't previously exist noting that a row of data with a blank products_id will be ignored.

At any time if a primary key is used and that product already exists in the database and not specifically deleting data, then when that row is processed for adding/updating if the category is different than what already exists that row of data will be linked to the original product and the data of the original product will be updated to the row being read.[/QUOTE]

hmmm... I do have the primary key as model and entered the model as NEW PRODUCT! - Model: blank_new | | 1 | einsteins- | Colombian | Not just t | | | | | 55 | 6 | 0 | 25 | 1 | 1 | 0 | 1 | | | 0 | Coffee | Coffee^Pre | --none-- | 1 | | | | | | | | | 
No product yet that I can fine.  I will experiment some further.  Thank you!
```\[/HTML]\[/HTML]
3 Apr 2020, 10:41 AM
#3139
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

Carbonless:

[HTML][HTML]

hmmm... I do have the primary key as model and entered the model as NEW PRODUCT! - Model: blank_new | | 1 | einsteins- | Colombian | Not just t | | | | | 55 | 6 | 0 | 25 | 1 | 1 | 0 | 1 | | | 0 | Coffee | Coffee^Pre | --none-- | 1 | | | | | | | | |
No product yet that I can fine. I will experiment some further. Thank you!


Although the data returned from that view can be difficult to decipher, it appears that a new product was added that has the products_model of 'blank_new'. If the columns line up to what I might expect, this new product is expected in the sub-category Pre under the category Coffee. Though it may also be that the product has been added to the category of Coffee even though that category has sub-categories. In a standard store, this will cause problems on the front end if the product is active. Some sort of modification to the applicable header_php.php file would be necessary to support product and categories both co-existing and active. The easier way to offer help would be to provide the first line along with the line in question from the csv file.
5 Jun 2020, 2:21 PM
#3140
gohealth avatar

gohealth

New Zenner

Join Date:
Nov 2011
Location:
Brisbane, Australia
Posts:
35
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Hi,
I'm using the Attrib-Basic-EP file to try and get my attributes loaded. I have used the tool to load a number of products and am now using the Attrib-Basics-EP file I exported as a template to populate (it does have some good entries as my store does have some products with attributes already). Before editing and adding more, I thought I would test the update. The upload of the exported file, unchanged, returned the message:

MySQLi error 1054: Unknown column 'p.products_model' in 'where clause'
When executing:
SELECT * FROM products WHERE (
p.products_model = '1392')

I see the syntax error in that products was not referenced as 'p', but the upload has created the SQL as p.products_model. Is this a bug?

Note, I originally tried this with products_id still the primary key. However, I have changed products_model to be the primary key and still get the same error.

Running ZC 1.5.6c on PHP 7.3