Zen Cart Logo
Forums / Addon Admin Tools / Easy Populate 1.2.5.4 support

Easy Populate 1.2.5.4 support

Views: 1,301,181

Results 2,781 to 2,800 of 3,834
3 Mar 2010, 3:08 PM
#2781
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Easy Populate 1.2.5.4 support

darkmarauder:

I am trying to import some products, and I have a product file which I have split into seperate tab delimited files.
The first imports without any problems.
The second though brings up the following error:-
Warning: explode() [function.explode]: Empty delimiter in /home/marauder/public_html/testshop/admin/includes/functions/extra_functions/easypopulate_functions.php on line 247
This is at the top of the page, before the admin menu.

Then, where it shows the added/updated items it shows the message on the failed lines 'SKIPPED! - Model: 157 - Category name(s) too long (max. 32)'
This is not correct as the categories all added together total 13 characters (including spaces).

Any help would be great, as I am trying to start using Zen Cart instead of Prestashop and this is my only real holdup!

The first "error" is not that serious - it usually relates to incorrect date formatting in columns such as date_added, etc. This typically happens when you import the txt file into MS Excel, which then sees a date and does its own formatting (another Bill Gates conspiracy). Later, you "save as" a TXT file, but the original formatting for date has been altered.

The second error is a fault within the EP upload file you are using (the .txt file).

Find out the line at which the upoload renders SKIPPED and re-examine it using a PLAIN TEXT EDITOR.. Don't re-open it in MS Excel or other spreadsheet program.

3 Mar 2010, 3:09 PM
#2782
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

darkmarauder:

I am trying to import some products, and I have a product file which I have split into seperate tab delimited files.
The first imports without any problems.
The second though brings up the following error:-
Warning: explode() [function.explode]: Empty delimiter in /home/marauder/public_html/testshop/admin/includes/functions/extra_functions/easypopulate_functions.php on line 247
This is at the top of the page, before the admin menu.

Then, where it shows the added/updated items it shows the message on the failed lines 'SKIPPED! - Model: 157 - Category name(s) too long (max. 32)'
This is not correct as the categories all added together total 13 characters (including spaces).

Any help would be great, as I am trying to start using Zen Cart instead of Prestashop and this is my only real holdup!

Any more of an idea on this issue?

3 Mar 2010, 3:15 PM
#2783
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

schoolboy:

The field for price is purely a NUMERICAL VALUE and must remain as such... no alpha characters allowed, because this value is used to calculate (using arithmetic formulae) a large number of things in your webshop.

You are wanting to add a LINE OF TEXT, explaining the range of pricing available and this HAS TO BE part of your product description as this is where such TEXT STRINGS can be included.

Thank you Schoolboy, I was hoping that you were around here somewhere. That is an easy fix and I guess if I had sat here long enough and thought about it, I would have been able to figure that one out.
Cheers!
Lisa

3 Mar 2010, 5:39 PM
#2785
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

I just deleted the two date columns, same error...

4 Mar 2010, 8:27 AM
#2786
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Can I decide which of the columns I chose to use when uploading via EP ?

I want to be able to add images and the description manually.

I just want to use these;

v_products_model
v_products_name_1
v_products_url_1
v_products_price
v_products_weight
v_products_quantity
v_manufacturers_name
v_categories_name_1
v_categories_name_2
v_categories_name_3
v_tax_class_title
v_status (set to 0)
EOREOR

Can I just use these and remove the rest, or will it through up a hissy fit ?

4 Mar 2010, 8:58 AM
#2787
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Mike_Dean:

Can I decide which of the columns I chose to use when uploading via EP ?

I want to be able to add images and the description manually.

I just want to use these;

v_products_model
v_products_name_1
v_products_url_1
v_products_price
v_products_weight
v_products_quantity
v_manufacturers_name
v_categories_name_1
v_categories_name_2
v_categories_name_3
v_tax_class_title
v_status (set to 0)
EOREOR

Can I just use these and remove the rest, or will it through up a hissy fit ?

This should be fine... bearing in mind that v_status = 0 means that the product will be "disabled" in the store (rendered "invisible", but the product data retained in the dbase.)

4 Mar 2010, 9:01 AM
#2788
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

schoolboy:

This should be fine... bearing in mind that v_status = 0 means that the product will be "disabled" in the store (rendered "invisible", but the product data retained in the dbase.)

Thanks..

I'd want the status at 0, so I can then go though and add images and proper descriptions and set them live as I go.

4 Mar 2010, 6:15 PM
#2789
slafrenier avatar

slafrenier

New Zenner

Join Date:
Feb 2010
Posts:
3
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

I am still pretty new to zencart.
Version 1.3.8, Not upgrading
Addons. MSRP, Bulk Atributes Controller, Easypopulate, fedex is installed, trying to set up origin based shipping. All addons added in last 2 weeks.
Premium5a template was originally installed.

I have checked FAQ area and searched for the error.
I am trying to intsall a new version of easy populate. This is for the origin based shipping module.

I am receiving the following error:

Fatal error: Call to undefined function ep_datoriser() in /home/your_store/public_html/admin/easypopulate.php on line 1757

Found a reference to this in this thread changed my date format to yyyy/mm/dd. I am still receiving the error.

Any help would be appreciated. Thanks

4 Mar 2010, 6:59 PM
#2790
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

slafrenier:

I am trying to intsall a new version of easy populate. This is for the origin based shipping module.

Easy Populate does not have any relationship with shipping modules/data. It is for product data only.

4 Mar 2010, 7:47 PM
#2791
mochajava avatar

mochajava

New Zenner

Join Date:
Mar 2010
Posts:
12
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

When I go to "Split EP file" I keep getting this error

Warning: fopen(/home/pleasure/public_html/zencart/zencart/temp/zencart.txt) [function.fopen]: failed to open stream: No such file or directory in /home/pleasure/public_html/zencart/zencart/admin/easypopulate.php on line 1126

Warning: fgets(): supplied argument is not a valid stream resource in /home/pleasure/public_html/zencart/zencart/admin/easypopulate.php on line 1129

Warning: fgets(): supplied argument is not a valid stream resource in /home/pleasure/public_html/zencart/zencart/admin/easypopulate.php on line 1141

Warning: fclose(): supplied argument is not a valid stream resource in /home/pleasure/public_html/zencart/zencart/admin/easypopulate.php on line 1168

8 Mar 2010, 2:08 AM
#2792
lovejonesboutique avatar

lovejonesboutique

New Zenner

Join Date:
Oct 2009
Location:
Georgia
Posts:
14
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Hello All;

I have installed EP and cannot find what is the next step after uploading my product data files through admin.

I have set up my spreadsheet according to all the directions, and have uploaded the file successfully. But I get a warning after uploading the file:

Warning: explode() [function.explode]: Empty delimiter in /home/lovejon1/public_html/lovejonesboutique-toys.com/admin/includes/functions/extra_functions/easypopulate_functions.php on line 247

Im not sure what this exactly means. Is there anyone that can help me solve this issue, as well as explain to me what are the next steps I should follow after I have uploaded the files.

Thank you,
Joann Garcia
https://www.lovejonesboutique.com
ZC 1.3.8

8 Mar 2010, 8:58 AM
#2793
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Hi LovejonesBoutique

This is the same error as I was getting when I first started using Easy Populate.
If you hear anything, or solve this, please post back on here as I'm still struggling!

8 Mar 2010, 10:17 AM
#2794
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Warning: explode() [function.explode]: Empty delimiter in /home/lovejon1/public_html/lovejonesboutique-toys.com/admin/includes/functions/extra_functions/easypopulate_functions.php on line 247

In the EP Functions file, let's look at the content between lines 225 and 273 -:

function ep_datoriser($date_time) {
	global $ep_date_format; // d-m-y etc..
	global $ep_raw_time; // user's prefered time (eg for specials to start) if no time in upload
	
	$raw_date_exist = preg_match("/^([0-2]0[0-9]{2}-[0-1][0-9]-[0-3][0-9])( [0-2][0-9]:[0-5][0-9]:[0-5][0-9]$)?/", $date_time);
	if (!$raw_date_exist) {
		// not raw... we can only assume it is an excel date..
		// separate dates from times
		$exist_time = preg_match("/^2?0?[0-9]?[0-9][\.\/-][0-3]?[0-9][\.\/-]2?0?[0-9]?[0-9] ([0-2]?[0-9]:[0-5][0-9]).*$/", $date_time, $excel_time); // no seconds..
		$exist_date = preg_match("/^(2?0?[0-9]?[0-9][\.\/-][0-3]?[0-9][\.\/-]2?0?[0-9]?[0-9]).*$/", $date_time, $excel_date);
		//echo $excel_time[1] . '<br >';
		//echo $excel_date[1] . '<br ><br />';
		// if (!zen_not_null($exist_date)) // we fail to get a date! error msg rqd, and/or substitute action??
		
		// check for which of 3 possible date separators we have..
		// this sucks, I know... but it works for now
		if (zen_not_null(strpos($excel_date[1], '-'))) $separator = '-';
		if (zen_not_null(strpos($excel_date[1], '.'))) $separator = '.';
		if (zen_not_null(strpos($excel_date[1], '/'))) $separator = '/';
		
		//echo 'separator is: ' . $separator . '<br />';
		$format_bits = explode('-', $ep_date_format);
		$date_bits = explode($separator, $excel_date[1]);
		foreach ($format_bits as $key => $bit) {
			$$bit = $date_bits[$key]; // $y = 05 or 2005, $m = 09 or 9, $d = 03 or 3 for eg. Can only work if d,m,y order from excel is same as config
			$$bit = strlen($$bit) < 2 ? '0' . $$bit : $$bit; // 4 is now 04 for eg. - expand this as a rudimentary check - should never occur on $y var
			$$bit = strlen($$bit) > 2 ? substr($$bit,-2, 2) : $$bit; // 2005 is now 05 - expand this as a rudimentary check - should only occur on $y var
			//echo $$bit . '<br />';
			// another rudimentary check could be for $m vals > 12 = error too!
		}
		// create default raw time... if user left space off, put it on..
		if (substr($ep_raw_time,0, 1) != ' ') $ep_raw_time = ' ' . $ep_raw_time;
		// is it really a raw time? if not, make it midnight..
		$exist_raw_time = preg_match("/ [0-2][0-9]:[0-5][0-9]:[0-5][0-9]/", $ep_raw_time); // true if is raw time
		$ep_raw_time = zen_not_null($exist_raw_time) ? $ep_raw_time : ' 00:00:00';
		
		// if time supplied from excel, use it instead..
		$ep_raw_time = zen_not_null($exist_time) ? ' ' . $excel_time[1] : $ep_raw_time;
		
		//echo '<br />'.$ep_raw_time . '<br />';
		$raw_date = '20' . $y . '-' . $m . '-' . $d . $ep_raw_time; // needs updating at the end of the century ;-)
		//echo $raw_date . '<br /><br />';
	} else {
		// the date is raw, so return it
		$raw_date = $date_time;
		//echo $date . ' is raw...<br />';
	}
	return $raw_date;

You will see they manage the DATE functions.

So if you get the error (at the top) and the line referred to is between 225 and 273, then there is something wrong in the FORMAT of a date in your TXT file.

Typically, we use a SPREADSHEET program to manage our TXT files. While this makes life easier in most respects, spreadsheets have a habit (expecially MS Excel) of making radical assumptions about the content parsed into the sheet.

If it sees what look like a DATE, it will re-format that into the default date format.

If you have configured your EP to render DATE as YYYY : MM : DD , then it will write it as follows in a date field:

2008-02-01 08:16:01 (where 16:01 is the time).

Now you import this into Excel and it is likely to do the following:

1/2/2008

Then when you SAVE AS TXT, it probably retains this formatting - or could even go haywire and render it as something else...

So even though your sheet is now TAB DELIMITED TEXT, the format of the DATES is incompatible with EP.

**If you start out with EP date formatting as **
2008-02-01 08:16:01

You need to ensure it STAYS as
2008-02-01 08:16:01

8 Mar 2010, 11:35 AM
#2795
computoz avatar

computoz

New Zenner

Join Date:
Jun 2009
Posts:
3
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

When I try an access the tempEP directory, I get a 403 forbidden error. I checked the error logs and I can see the following error "(13)Permission denied: /domains/y/o/website/public_html/tempEP/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable". I have checked and there isn't a .htaccess file in that folder and there wasn't one included on the easy populate installation zip file. Can anyone help?

8 Mar 2010, 12:00 PM
#2796
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

computoz:

When I try an access the tempEP directory, I get a 403 forbidden error. I checked the error logs and I can see the following error "(13)Permission denied: /domains/y/o/website/public_html/tempEP/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable". I have checked and there isn't a .htaccess file in that folder and there wasn't one included on the easy populate installation zip file. Can anyone help?

What type of SERVER are you on? (windoze - linux ???)

What VERSION of Easy Populate (tempEP is not the foldername for 1.2.5.4

8 Mar 2010, 12:08 PM
#2797
computoz avatar

computoz

New Zenner

Join Date:
Jun 2009
Posts:
3
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Hi, I managed to fix it by chmoding the directory correctly, thanks for the response though.

9 Mar 2010, 12:12 AM
#2798
lovejonesboutique avatar

lovejonesboutique

New Zenner

Join Date:
Oct 2009
Location:
Georgia
Posts:
14
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

You will see they manage the DATE functions.

So if you get the error (at the top) and the line referred to is between 225 and 273, then there is something wrong in the FORMAT of a date in your TXT file.

Thanks for your response Schoolboy, I figured this much as I began to research this topic. However, my spreadsheet contains no date columns. Would I have to format the following columns with numbers in excel, or in EP.

My columns which contain numbers are:
v_products_model
v_products_weight
v_products_price (formatted in excel as currency)

9 Mar 2010, 10:59 AM
#2799
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

This may seem like a silly question, but if I'm uploading images via EP then do those images need to already reside on the server side (eg do I have to FTP them across before hand) or will it use the images that are in the images directory on my local test site.. ??

eg if I have (for example) widgets/widgets.jpg (which is from the image directory locally), will it upload it, or would I have to have that directory and file already FTP'd to the server ??? :unsure:

Cheers,
Mike

9 Mar 2010, 12:10 PM
#2800
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Mike_Dean:

This may seem like a silly question, but if I'm uploading images via EP then do those images need to already reside on the server side (eg do I have to FTP them across before hand) or will it use the images that are in the images directory on my local test site.. ??

eg if I have (for example) widgets/widgets.jpg (which is from the image directory locally), will it upload it, or would I have to have that directory and file already FTP'd to the server ??? :unsure:

Cheers,
Mike

Answered my own question with a test... It must already reside on the server.. which come to think of it, seems obvious...