rajboy Posted November 26, 2003 Share Posted November 26, 2003 Hi. I have tried using easy populate to enter some test records into my oscommerce store. However, i get the following error everytime. ****** Warning: Unable to create '/home/httpd/vhosts/accesscube.com/httpdocs/store/catalog//temp/raj2.txt': Permission denied in /home/httpd/vhosts/accesscube.com/httpdocs/store/catalog/admin/easypopulate_functions.php on line 32 Warning: Unable to move '/tmp/phpHqNtwM' to '/home/httpd/vhosts/accesscube.com/httpdocs/store/catalog//temp/raj2.txt' in /home/httpd/vhosts/accesscube.com/httpdocs/store/catalog/admin/easypopulate_functions.php on line 32 File uploaded. Temporary filename: /tmp/phpHqNtwM User filename: raj2.txt Size: 2562 Warning: file("/home/httpd/vhosts/accesscube.com/httpdocs/store/catalog//temp/raj2.txt") - No such file or directory in /home/httpd/vhosts/accesscube.com/httpdocs/store/catalog/admin/easypopulate.php on line 720 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/accesscube.com/httpdocs/store/catalog/admin/easypopulate.php on line 738 ***** The simple text file i uploaded was : v_products_model v_products_image v_products_name_1 v_products_description_1 v_products_url_1 v_products_head_title_tag_1 v_products_head_desc_tag_1 v_products_head_keywords_tag_1 v_products_name_2 v_products_description_2 v_products_url_2 v_products_head_title_tag_2 v_products_head_desc_tag_2 v_products_head_keywords_tag_2 v_products_name_3 v_products_description_3 v_products_url_3 v_products_head_title_tag_3 v_products_head_desc_tag_3 v_products_head_keywords_tag_3 v_products_price v_products_weight v_date_avail v_date_added v_products_quantity v_manufacturers_name v_categories_name_1 v_categories_name_2 v_categories_name_3 v_categories_name_4 v_categories_name_5 v_categories_name_6 v_categories_name_7 v_categories_name_8 v_categories_name_9 v_categories_name_10 v_tax_class_title v_status EOREOR drag24 kingdom.gif Dragon Power Swords "This is a test addition to the osCommerce Store using EasyPopulate. Just trying to add one product first, just to see if all these fields and categories in the store is working correctly." www.comnet.com.sg/ ChitLeng for life Test Addition to Store Leng Dragon Dragon Power Swords "This is a test addition to the osCommerce Store using EasyPopulate. Just trying to add one product first, just to see if all these fields and categories in the store is working correctly." www.comnet.com.sg/ ChitLeng for life Test Addition to Store Leng Dragon Dragon Power Swords "This is a test addition to the osCommerce Store using EasyPopulate. Just trying to add one product first, just to see if all these fields and categories in the store is working correctly." www.comnet.com.sg/ ChitLeng for life Test Addition to Store Leng Dragon 155.6 10 12/22/2003 0:00 6/22/2003 0:00 1000 Canon Hardware Software Taxable Goods Active EOREOR drag25 test.gif Second Test Product This is a second test addition. Doing it in excel and will then save this as a delimited file. Encounter errors when edit directly from text files. www.comnet.com.sg/ Satu Hati Test add 2nd test product Second Test Product This is a second test addition. Doing it in excel and will then save this as a delimited file. Encounter errors when edit directly from text files. www.comnet.com.sg/ Satu Hati Test add 2nd test product Second Test Product This is a second test addition. Doing it in excel and will then save this as a delimited file. Encounter errors when edit directly from text files. www.comnet.com.sg/ Satu Hati Test add 2nd test product 123.8 23 12/22/2003 0:00 6/22/2003 0:00 100 Hitachi Hardware Voucher Active EOREOR *********** tab delimited file...the above only contain two records. I f i can successfully insert this into my store, then i can go ahead with the whole transfer process of my other 1000 records. Any ideas guys???pls help.....:).....thanx guys... Link to comment Share on other sites More sharing options...
Guest Posted November 26, 2003 Share Posted November 26, 2003 ... Link to comment Share on other sites More sharing options...
Guest Posted November 26, 2003 Share Posted November 26, 2003 Two things come to mind. 1) you do not have the TEMP folder in your catalog folder or it exists but with the wrong permissions, or 2) Your settings inside of the easypopulate.php file are set to the default (which is wrong) and you need to edit them. For number 1 you will need to be sure you have a TEMP folder in your catalog folder AND that it is CHMOD to 777. For number 2 youo need to edit your easypopulate file, find the variable area around line 190 (for the ms2 version) and be sure that you change the temp folder settings as listed here below. The default is: // **** Temp directory **** // if you changed your directory structure from stock and do not have /catalog/temp/, then you'll need to change this accordingly. // $tempdir = "catalog/temp/"; $tempdir2 = "/catalog/temp/"; What you want is: // **** Temp directory **** // if you changed your directory structure from stock and do not have /catalog/temp/, then you'll need to change this accordingly. // $tempdir = "temp/"; $tempdir2 = "/temp/"; The abouve example shows the catalog folder in the path. But this then wants the path to be something like catalog/catalog/temp when it really needs to be just catalog/temp. Check those things out and you should be good to go! Good luck. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.