davidbhall Posted March 24, 2005 Share Posted March 24, 2005 I have tried to upload a txt fle in easypopulate. I got this error. Warning: move_uploaded_file(/home/mblindk/public_html/cart//home/mblindk/public_html/cart/Temp/EP2005Mar23-2008.txt): failed to open stream: No such file or directory in /home/mblindk/public_html/cart/admin/easypopulate_functions.php on line 32 Warning: move_uploaded_file(): Unable to move '/tmp/phpVYpxWC' to '/home/mblindk/public_html/cart//home/mblindk/public_html/cart/Temp/EP2005Mar23-2008.txt' in /home/mblindk/public_html/cart/admin/easypopulate_functions.php on line 32 File uploaded. Temporary filename: /tmp/phpVYpxWC User filename: EP2005Mar23-2008.txt Size: 31515 Warning: file(/home/mblindk/public_html/cart//home/mblindk/public_html/cart/Temp/EP2005Mar23-2008.txt): failed to open stream: No such file or directory in /home/mblindk/public_html/cart/admin/easypopulate.php on line 657 Warning: Invalid argument supplied for foreach() in /home/mblindk/public_html/cart/admin/easypopulate.php on line 680 This is my path in easypopulate.php $tempdir = "/public_html/cart/Temp/"; $tempdir2 = "/public_html/cart/temp/"; When I go into tools and look at the path this is what shows up. /home/mblindk/public_html/cart//temp I see that the double backshash is the problem. My question is what file do I go to in order to eliminate the double backshash. David Quote Link to comment Share on other sites More sharing options...
daddyrabbit Posted March 24, 2005 Share Posted March 24, 2005 I have tried to upload a txt fle in easypopulate. I got this error. Warning: move_uploaded_file(/home/mblindk/public_html/cart//home/mblindk/public_html/cart/Temp/EP2005Mar23-2008.txt): failed to open stream: No such file or directory in /home/mblindk/public_html/cart/admin/easypopulate_functions.php on line 32 Warning: move_uploaded_file(): Unable to move '/tmp/phpVYpxWC' to '/home/mblindk/public_html/cart//home/mblindk/public_html/cart/Temp/EP2005Mar23-2008.txt' in /home/mblindk/public_html/cart/admin/easypopulate_functions.php on line 32 File uploaded. Temporary filename: /tmp/phpVYpxWC User filename: EP2005Mar23-2008.txt Size: 31515 Warning: file(/home/mblindk/public_html/cart//home/mblindk/public_html/cart/Temp/EP2005Mar23-2008.txt): failed to open stream: No such file or directory in /home/mblindk/public_html/cart/admin/easypopulate.php on line 657 Warning: Invalid argument supplied for foreach() in /home/mblindk/public_html/cart/admin/easypopulate.php on line 680 This is my path in easypopulate.php $tempdir = "/public_html/cart/Temp/"; $tempdir2 = "/public_html/cart/temp/"; When I go into tools and look at the path this is what shows up. /home/mblindk/public_html/cart//temp I see that the double backshash is the problem. My question is what file do I go to in order to eliminate the double backshash. David <{POST_SNAPBACK}> $tempdir = "/public_html/cart/Temp/"; $tempdir2 = "/public_html/cart/temp/"; Change to: $tempdir = "/temp/"; $tempdir2 = "/temp/"; Quote Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Link to comment Share on other sites More sharing options...
Brandi Posted April 16, 2005 Share Posted April 16, 2005 This is kind of on the line of a question I have. I'm trying to install easypopulate, and I don't have a /temp directory. As per the instructions in easypopulate manual. 4. Make sure that you have a directory called catalog/temp, and that it's permissions are set to allow writes to that directory (while you're in the catalog directory, execute "chmod 777 temp"). If you have changed the directory structure of your OSC install (i.e. you don't have /catalog/temp/ in your document root anymore), then you'll need to go into easypopulate.php and change the setting of "$tempdir". I've traversed the whole directory structure, via ftp, and have been unable to find any directories called temp. Can I just create this temp directory below /catalog , or do I have to point the "$tempdir" variable to somewhere else in the directory structure. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 16, 2005 Share Posted April 16, 2005 (edited) per the documentation you must create the temp dir and change the file permissions to 777 this is the official support thread, post any and all questions at the end of it. http://www.oscommerce.com/forums/index.php?showtopic=64945 Edited April 16, 2005 by Mibble Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.