Guest Posted September 9, 2005 Share Posted September 9, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted September 10, 2005 Share Posted September 10, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted September 10, 2005 Share Posted September 10, 2005 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 <{POST_SNAPBACK}> 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 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.