Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I managed to get osC 2.2ms2 up and running. Then I installed Easy Populate 2.76 to upload my products. I read and followed the install guide step by step but still can't import.

 

The import file I test with is a modified uploaded file from the database (essentially I take out all the seeded data and add 4 new products). So the file format should not be a problem. I use OpenOffice to do this.

 

I've been searching through both this forum as well as the Dutch one but have not found teh solution ofr my problem.

 

This is the errormessage(s) I'm getting:

Easy Populate 2.76-MS2 - Default Language : Nederlands(4)

 

Filename: test.csv

 

Warning: file(/opt/lampp/htdocs/temp/test.csv) [function.file]: failed to open stream: Onbekend bestand of map in /opt/lampp/htdocs/catalog/admin/easypopulate.php on line 685 (unknown file or directory)

 

Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/catalog/admin/easypopulate.php on line 690

 

These are the lines of code this points to (685 and 690 in red):

 

/admin/easypopulate.php:

$tempdir = "/temp/";

$tempdir2 = "/temp/";

 

// get the entire file into an array

$readed = file(DIR_FS_DOCUMENT_ROOT . $tempdir . $localfile);

}

 

// now we string the entire thing together in case there were carriage returns in the data

$newreaded = "";

foreach ($readed as $read){

$newreaded .= $read;

}

 

Here's my /admin/includes/config.php file:

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://10.0.0.154'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://10.0.0.154');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server.

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/opt/lampp/htdocs/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/opt/lampp/htdocs/catalog/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

File permissions for /opt/lampp/htdocs/catalog/temp are set to 777

 

I've been trying to find the solution and am sure it's pretty easy/obvious but I just can't see it. All help is much appreciated!

 

Thanks in advance,

Wilco

Posted (edited)
I managed to get osC 2.2ms2 up and running. Then I installed Easy Populate 2.76 to upload my products. I read and followed the install guide step by step but still can't import.

 

The import file I test with is a modified uploaded file from the database (essentially I take out all the seeded data and add 4 new products). So the file format should not be a problem. I use OpenOffice to do this.

 

I've been searching through both this forum as well as the Dutch one but have not found teh solution ofr my problem.

 

This is the errormessage(s) I'm getting:

Easy Populate 2.76-MS2 - Default Language : Nederlands(4)

 

.....stuff deleted....

 

 

I've been trying to find the solution and am sure it's pretty easy/obvious but I just can't see it. All help is much appreciated!

 

Thanks in advance,

Wilco

 

It works!

 

The fix for me really was to use Mingle's version 2.74, slightly mod the files as per the readme and I'm in business! Well, not completely but my biggest headache (for now) is solved :)

 

Now, does anyone know of a contrib that allows me to add the payment method "On account" for customers who pay after receipt of the invoice? :)

Edited by wr19026

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...