Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Temp directory


veni

Recommended Posts

I have all of my files hosted locally on my PC. The Temp directory used to be at

D:\www\e-commerce\temp but I recently changed my DocumnetRoot directory and now the temp file resides at Z:\www\e-commerce\temp

 

Everything works well except easypopulate I can no longer Import files the following error is displayed

Warning: move_uploaded_file(D:/Wamp/www/e-commerce/temp/=NEW=.txt) [function.move-uploaded-file]: failed to open stream: No such file or directory in Z:\www\e-commerce\admin\easypopulate_functions.php on line 43

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'd:/Wamp/tmp\php75.tmp' to 'D:/Wamp/www/e-commerce/temp/=NEW=.txt' in Z:\www\e-commerce\admin\easypopulate_functions.php on line 43

File uploaded.
Temporary filename: d:/Wamp/tmp\php75.tmp
User filename: =NEW=.txt
Size: 1405

Warning: file(D:/Wamp/www/e-commerce/temp/=NEW=.txt) [function.file]: failed to open stream: No such file or directory in Z:\www\e-commerce\admin\easypopulate.php on line 805

Warning: Invalid argument supplied for foreach() in Z:\www\e-commerce\admin\easypopulate.php on line 844

What lines or line must I change and in what file must I specify that the new temp dir in now at Z:\www\e-commerce\temp

Link to comment
Share on other sites

Have a look in your admin.

 

I tried changing the easypopulate.php

 

$tempdir = DIR_FS_DOCUMENT_ROOT . "temp/";

 

TO

 

$tempdir = DIR_FS_DOCUMENT_ROOT . "Z:/www/e-commerce/temp";

 

But it still does not work.

Link to comment
Share on other sites

I tried changing the easypopulate.php

 

$tempdir = DIR_FS_DOCUMENT_ROOT . "temp/";

 

TO

 

$tempdir = DIR_FS_DOCUMENT_ROOT . "Z:/www/e-commerce/temp";

 

But it still does not work.

What does that have to do with your admin?

 

Look in admin ---> cache

Link to comment
Share on other sites

What does that have to do with your admin?

 

Look in admin ---> cache

 

My problem is now fixed this was solution

Admin---> Includes ---> configure.php

 

CHANGED

 

define('DIR_FS_DOCUMENT_ROOT', 'D:/Wamp/www/e-commerce/');

define('DIR_FS_ADMIN', 'D:/Wamp/www/e-commerce/admin/');

define('DIR_FS_CATALOG', 'D:/Wamp/www/e-commerce/');

 

TO

 

define('DIR_FS_DOCUMENT_ROOT', 'Z:/www/e-commerce/');

define('DIR_FS_ADMIN', 'Z:/www/e-commerce/admin/');

define('DIR_FS_CATALOG', 'Z:/www/e-commerce/');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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