Guest Posted February 27, 2004 Posted February 27, 2004 I installed the Easypopulate on my site, But can't seem to get it working right i get the screen where Easypopulate ask you to upload or import the EP file e.t.c. So i tried to upload a Premade Example file. but i am getting this error : --------------------------- Easy Populate 2.72-MS2 - Default Language : English(1) Warning: move_uploaded_file(/home/cricket/public_html/shoppingcart//shoppingcart/example-ep-flie.txt): failed to open stream: No such file or directory in /home/cricket/public_html/shoppingcart/admin/easypopulate_functions.php on line 32 Warning: move_uploaded_file(): Unable to move '/tmp/phpqquwUG' to '/home/cricket/public_html/shoppingcart//shoppingcart/example-ep-flie.txt' in /home/cricket/public_html/shoppingcart/admin/easypopulate_functions.php on line 32 File uploaded. Temporary filename: /tmp/phpqquwUG User filename: example-ep-flie.txt Size: 33546 Warning: file(/home/cricket/public_html/shoppingcart//shoppingcart/example-ep-flie.txt): failed to open stream: No such file or directory in /home/cricket/public_html/shoppingcart/admin/easypopulate.php on line 651 Warning: Invalid argument supplied for foreach() in /home/cricket/public_html/shoppingcart/admin/easypopulate.php on line 674 ------------------------------------ I also tried to change this to an Excel File but it still isnt working !!! I tried searching for a solution it in the forums but dint find any !! PLEASE HELP Thanks
Guest Posted February 27, 2004 Posted February 27, 2004 did you set the properties on the folders properly? your temp needs 777 for ep to work also, download a file first, so you get the right format for ep.
Guest Posted February 28, 2004 Posted February 28, 2004 Thanx for the reply. But when i installed oscommerce I dint have the directories : 'Catalog/Temp' That is y I changed ''easypopulate.php ="$tempdir".'' to the main root directory of my shopping cart : http://www.cricketcraze.com/shoppingcart. Should i change the properties of the main Shopping Cart Folder to "777" ??? Or should i make another folder which is Catalog and has the sub-folder "temp" ? :unsure: And where shoudl i download the file from ? I had a sample file which c came with the EP zip file that is what i was using !!!
Guest Posted February 28, 2004 Posted February 28, 2004 You don't have a directory called temp...you have to create that yourself...and you have to set the permissions on it to 777. Should i change the properties of the main Shopping Cart Folder to "777" ??? NO! No, no no, and again ... NO! If you do that, you will allow every man and his dog the ability to alter or delete that directory! In the ep config file, just change the directory path to the directory into which you inserted the new "temp" directory. Using ep, under "Download EP and Froogle files", click on the "Download Complete tab-delimited .txt file to edit" to download your sample file. This will show you the correct format to use for your own file to upload. I don't know why, but I personally found that if you tried to upload the sample file you just downloaded, you will get the errors you mentioned. Create some products in your sample file...say 5 or 6, and then attempt to re upload it using ep. From the easypopulate.php file: //******************************* //******************************* // C O N F I G U R A T I O N // V A R I A B L E S //******************************* //******************************* // **** Temp directory **** // if you changed your directory structure from stock and do not have /catalog/temp/, then you'll need to change this accordingly. // I do not have the default "/catalog/temp/" structure. Here is what my dir path reads: $tempdir = "/temp/"; $tempdir2 = "/temp/"; Note, this should be a relative url, and not an absolute one. Try that...and if you are still having probs...let me know. I'll help if I can.
supergrizz Posted March 1, 2004 Posted March 1, 2004 Warning: move_uploaded_file(/home/cricket/public_html/shoppingcart//shoppingcart/example-ep-flie.txt): failed to open stream: No such file or directory in /home/cricket/public_html/shoppingcart/admin/easypopulate_functions.php on line 32 Warning: move_uploaded_file(): Unable to move '/tmp/phpqquwUG' to '/home/cricket/public_html/shoppingcart//shoppingcart/example-ep-flie.txt' in /home/cricket/public_html/shoppingcart/admin/easypopulate_functions.php on line 32 Hey yaktaa, I think your problem is this... even if you do put a 'temp' dir in your shoppingcart dir, EP is not finding it because it is not starting at the root dir. I had the same problem. Hence the weird double slash '//shoppingcart/' thing. What I would do is create the temp dir and chmod it to 777 as instructed, and then change the tempdir code in easypopulate.php to this: $tempdir = "temp/"; $tempdir2 = "temp/"; That way, using the relative path, EP will be able to find your temp dir. It worked like a charm for me. Good luck. DC
Guest Posted March 6, 2004 Posted March 6, 2004 Thanks for the replies !!! I got that problem fixed but now i have another problem !!! :( When i uploaded some products through EP. it added the products but they vrnt benig displayed in my cart !!! then i uploaded a file which had : category, model, qty, price. it started showed me this : File uploaded. Temporary filename: /tmp/phpqmgphM User filename: EP2004Feb25-2109.txt Size: 440 | as | CA-GOLD | 89.99 | 10 !New Product! | as | CA-INZI | 499.99 | 10 !New Product! | as | CA-BALST | 49.99 | 10 !New Product! | as | BDM-HYPER | 42 | 10 !New Product! | as | BDM-GOOD | 35.99 | 10 !New Product! | as | SL-800 | 39.99 | 10 !New Product! | as | SL-700 | 34.99 | 10 !New Product! | as | SL-600 | 35.99 | 10 !New Product! | as | SL-500 | 29.99 | 10 !New Product! | as | SL-400 | 29.99 | 10 !New Product! | as | SL-300 | 29.99 | 10 !New Product! | as | SL-200 | 39.99 | 10 !New Product! | as | SL-100 | 34.99 | 10 !New Product! | | | | No products_model field in record. This line was not imported <---- why is this showing this ??? Now what is happening is that on my cart its showing the category and the number of products next to it " as (12) " but when i click on it i cant see the products anywhere !!! I cant see them in the admin area either !!! http://cricketcraze.com/shoppingcart/ Please Help !!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.