Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

EasyPopulate help needed


spindrift

Recommended Posts

Posted

I just downloaded EasyPopulate, and installed as per the text manual.

I created the catalog/temp directory, and set attributes to 777

 

Calling the page directly or via the new link in 'Admin>Catalog' produces this error message:

 

Fatal error: Cannot redeclare tep_get_tax_class_title() (previously declared in /home/mapabili/public_html/catalog/admin/includes/functions/general.php:1088) in /home/mapabili/public_html/catalog/admin/easypopulate_functions.php on line 34

 

 

I tried deleting easypopulate_functions.php from the server and got this:

 

Warning: main(easypopulate_functions.php) [function.main]: failed to create stream: No such file or directory in /home/mapabili/public_html/catalog/admin/easypopulate.php on line 310



Warning: main() [function.main]: Failed opening 'easypopulate_functions.php' for inclusion (include_path='') in /home/mapabili/public_html/catalog/admin/easypopulate.php on line 310

 

Any help would be appreciated.

 

Tim in Ireland.

Posted
If you're still having a problem let me know, I've just worked this out myself

 

I still haven't solved this - I would be grateful if you would tell me the answer to the problem !!!

 

Tim in Ireland.

Posted

Ok,

 

Like I said I just recently had this problem and I haven't really tested it well yet so this may or may not be the fix.

 

1. Put easy easypopulate_functions back to where it was

2. Open /admin/easypopulate_functions and go directly to the bottom of the file. You should see this:

 

function tep_get_tax_class_title($tax_class_id) {

if ($tax_class_id == '0') {

 return TEXT_NONE;

} else {

 $classes_query = tep_db_query("select tax_class_title from " . TABLE_TAX_CLASS . " where tax_class_id = '" . $tax_class_id . "'");

 $classes = tep_db_fetch_array($classes_query);



 return $classes['tax_class_title'];

}

}

 

Make it look like this: (comment out the whole section)

 

 

//function tep_get_tax_class_title($tax_class_id) {

//	if ($tax_class_id == '0') {

//  return TEXT_NONE;

//	} else {

//  $classes_query = tep_db_query

//("select //tax_class_title from " . TABLE_TAX_CLASS . " where 

//tax_class_id = '" . $tax_class_id . "'");

//  $classes = tep_db_fetch_array($classes_query);

//

//  return $classes['tax_class_title'];

//	}

//}

 

Or just delete the section, but that makes me nervous incase I need it later.

 

I THINK that since the error says that it can't REdeclare that this section is redundant.

 

Remember, test this well!

Posted

OK, I did that, and the 'Easy Populate 2.60 - Default Language : English(1)' page comes up OK in the Admin page.

 

Tried to download the options:

a/ 'Download Complete tab-delimited .txt file to edit' gives this error:

 

Fatal error: Call to undefined function: tep_array_merge() in /home/mapabili/public_html/catalog/admin/easypopulate.php on line 948

 

b/ 'Download Model/Price/Qty tab-delimited .txt file to edit' works OK.

 

c/ 'Download Model/Category tab-delimited .txt file to edit' gives this error:

 

Fatal error: Call to undefined function: tep_array_merge() in /home/mapabili/public_html/catalog/admin/easypopulate.php on line 1047

 

d/ I didn't try the Froogle option as don't know what it is.

 

Tried the 'Create EP and Froogle Files in Temp Dir (/catalog/temp/)' as follows:

 

a/ 'Create Complete tab-delimited .txt file in temp dir' - same as above.

 

b/ 'Create Model/Price/Qty tab-delimited .txt file in temp dir' give this:

 

Warning: fopen(/home/mapabili/public_html/catalog//catalog/temp/EP2003Jul21-1111.txt) [function.fopen]: failed to create stream: No such file or directory in /home/mapabili/public_html/catalog/admin/easypopulate.php on line 656



Warning: fwrite(): supplied argument is not a valid stream resource in /home/mapabili/public_html/catalog/admin/easypopulate.php on line 657



Warning: fclose(): supplied argument is not a valid stream resource in /home/mapabili/public_html/catalog/admin/easypopulate.php on line 658

You can get your file in the Tools/Files under /catalog/temp/EPEP2003Jul21-1111.txt

 

c/ 'Create Model/Category tab-delimited .txt file in temp dir' - same as above.

 

d/ Didn't try Froogling.

 

Are there any clues here ??

 

Tim in Ireland.

Posted

tep_array_merge is no longer in OSC, so you should replace all references to it with array_merge (i.e. delete tep_).

 

It looks like your TempDir declaration is wrong. You should only have one / at a time in the path. You probably should only have one catalog as well, but that depends on your install.

 

Hth,

Matt

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...