Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi,

 

I get the following error, using easy populate to upload products.

 

 

 

Warning: move_uploaded_file($DOCUMENT_ROOT/temp/EP2005Sep09-1402.txt): failed to open stream: No such file or directory in /home/gravit2/public_html/zawadi/admin/easypopulate_functions.php on line 32

 

Warning: move_uploaded_file(): Unable to move '/tmp/php02iPsK' to '$DOCUMENT_ROOT/temp/EP2005Sep09-1402.txt' in /home/gravit2/public_html/zawadi/admin/easypopulate_functions.php on line 32

 

 

File uploaded.

Temporary filename: /tmp/php02iPsK

User filename: EP2005Sep09-1402.txt

Size: 4704

 

Warning: file($DOCUMENT_ROOT/temp/EP2005Sep09-1402.txt): failed to open stream: No such file or directory in /home/gravit2/public_html/zawadi/admin/easypopulate.php on line 667

 

Warning: Invalid argument supplied for foreach() in /home/gravit2/public_html/zawadi/admin/easypopulate.php on line 690

 

 

 

I've tried a few things to try to understand what is causing this. The first area of confusion is the reference in the install instructions to:

 

6. Open your /catalog/admin/includes/configure.php file and set DOCUMENT_ROOT TO $DOCUMENT_ROOT DO THIS!! IT IS VERY IMPORTANT FOR YOUR SUCCESS. IF YOU DO NOT FLLOW THIS YOU WILL HAVE PROBLEMS!

 

 

For me personally this isn't clear. the line reads like this in the file:

 

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

 

Do these insturctions mean, change this 'DIR_FS_DOCUMENT_ROOT' to $DOCUMENT_ROOT? Or to just put a $ sign in front of DOCUMENT_ROOT? Or change the path after it to $DOCUMENT_ROOT? As you can see, I changed the path but I tried the other ways also.

 

 

 

Also I do have a temp directory and it is Chmod'd to 777. I do not have a catalog directory as OSC is installed in the root directory of my site. So I did go into easy populate.php and change the temp directory to exactly this... /temp/

 

Is that correct?

 

 

Not sure what to do... I have 216 products to upload tonight....

 

Thanks for you help...

 

Zbooks

Posted

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

 

is wrong. if you read in the instructions it does not have '$DOCUMENT_ROOT' IT HAS $DOCUMENT_ROOT

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

 

is wrong.  if you read in the instructions it does not have '$DOCUMENT_ROOT' IT HAS $DOCUMENT_ROOT

 

 

Thanks. This seems to be working now. Just getting hung on all the ' I have in my product descriptions. I'll take them out or escape them and see what happens.

 

Thanks again.

 

ZB

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...