MattMallory Posted July 21, 2003 Posted July 21, 2003 I received the below errors when I tried to upload my edited Excel file... Warning: move_uploaded_file(/home/thunder/public_html/shop//shop/temp/EP2003Jul20-2109.txt): failed to open stream: No such file or directory in /home/thunder/public_html/shop/admin/includes/functions/general.php on line 789 Warning: move_uploaded_file(): Unable to move '/tmp/phpqbBngk' to '/home/thunder/public_html/shop//shop/temp/EP2003Jul20-2109.txt' in /home/thunder/public_html/shop/admin/includes/functions/general.php on line 789 File uploaded. Temporary filename: /tmp/phpqbBngk User filename: EP2003Jul20-2109.txt Size: 4318 Warning: file(/home/thunder/public_html/shop//shop/temp/EP2003Jul20-2109.txt): failed to open stream: No such file or directory in /home/thunder/public_html/shop/admin/easypopulate.php on line 710 Warning: Invalid argument supplied for foreach() in /home/thunder/public_html/shop/admin/easypopulate.php on line 728 I then tried to "Create Complete tab-delimited .txt file in temp dir" & got these errors... Warning: fopen(/home/thunder/public_html/shop//shop/temp/EP2003Jul20-2210.txt): failed to open stream: No such file or directory in /home/thunder/public_html/shop/admin/easypopulate.php on line 656 Warning: fwrite(): supplied argument is not a valid stream resource in /home/thunder/public_html/shop/admin/easypopulate.php on line 657 Warning: fclose(): supplied argument is not a valid stream resource in /home/thunder/public_html/shop/admin/easypopulate.php on line 658 You can get your file in the Tools/Files under /shop/temp/EPEP2003Jul20-2210.txt Knowledge is Power!
Daemonj Posted July 21, 2003 Posted July 21, 2003 Edit your easypopulate.php file and find the 2 entries for the temp folder. The first should be /shop/temp and the second should be shop/temp. It looks like you have the second with a leading slash. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
MattMallory Posted July 21, 2003 Author Posted July 21, 2003 Edit your easypopulate.php file and find the 2 entries for the temp folder. The first should be /shop/temp and the second should be shop/temp. It looks like you have the second with a leading slash. That was the first thing I changed. I only changed the directory name not any slashes. Below is what I have now... $tempdir = "/shop/temp/"; $tempdir2 = "shop/temp/"; Knowledge is Power!
loxly Posted July 21, 2003 Posted July 21, 2003 Have you changed the permissions on the temp directory to 777? [no external urls in signatures please, kthanks]
MattMallory Posted July 21, 2003 Author Posted July 21, 2003 Have you changed the permissions on the temp directory to 777? Yes I did. Knowledge is Power!
Guest Posted July 21, 2003 Posted July 21, 2003 Is /tmp/phpqbBngk (or whatever appears in the current error) getting created? Sometimes, /tmp won't have the proper permissions. If you are on a shared server, you might have to ask your host to look at this for you. Good luck, Matt
MattMallory Posted July 21, 2003 Author Posted July 21, 2003 Is /tmp/phpqbBngk (or whatever appears in the current error) getting created? Sometimes, /tmp won't have the proper permissions. If you are on a shared server, you might have to ask your host to look at this for you. Good luck, Matt No unfortunitly nothing is getting created in the temp folder. The server is mine & I have root access. I am stumped, thanks for all the help so far. Knowledge is Power!
Guest Posted July 21, 2003 Posted July 21, 2003 There are two folders involved. One is /tmp, which is a subdirectory of /. For this to work, /tmp has to have write permissions of something like 777. There is also a subdirectory of shop called temp. What might be happening is that shop/temp (there is more to this path, but I don't know what it would be for your setup) might be set up correctly, but /tmp is not. Thus, the file would never make it to /tmp (so it can't be found) and thus can't be copied to shop/temp. Hth, Matt
MattMallory Posted July 21, 2003 Author Posted July 21, 2003 There are two folders involved. One is /tmp, which is a subdirectory of /. For this to work, /tmp has to have write permissions of something like 777. There is also a subdirectory of shop called temp. What might be happening is that shop/temp (there is more to this path, but I don't know what it would be for your setup) might be set up correctly, but /tmp is not. Thus, the file would never make it to /tmp (so it can't be found) and thus can't be copied to shop/temp. Hth, Matt Ok, I guess I should have told you my configuration/setup in the first place. I used Fantastico to install osCommerce & I installed it in a directory called shop in the root of my web site. From the sounds of it I should have had a directory called tmp in the root of my site & another called temp in the shop directory. I had neither. I have created a directory "temp" in shop & set it to 777. Do I also need to make a directory called tmp in the root & 777 that also? Knowledge is Power!
Guest Posted July 21, 2003 Posted July 21, 2003 Do I also need to make a directory called tmp in the root & 777 that also?Yes. Either that or change php.ini to use a different directory as a temporary directory. It's probably simpler just to add the directory. It's odd that it's not there already. I think that it says to create the temp directory in shop somewhere in the Easy Populate instructions. However, it has been a while since I read them, so I could well be incorrect. Good luck, Matt
Recommended Posts
Archived
This topic is now archived and is closed to further replies.