jonah Posted April 3, 2003 Share Posted April 3, 2003 I am trying to use the multiple images part of Easy Populate with Loaded5. I uncommented the lines in easypopulate.php and get an error. I am using 2.53, and tried some of the earlier versions and got the same error. Someone please help. Here is the error code: Parse error: parse error, unexpected '.' in /home/cutljmhx/public_html/admin/easypopulate.php on line 1533 Here is the section of code in question: Thank you. Quote Link to comment Share on other sites More sharing options...
FastFreddy Posted April 4, 2003 Share Posted April 4, 2003 Remove the first ".": $query .= $v_products_mimage . '", "' . $v_products_bimage . '", "' . $v_products_subimage1 . '", "' . $v_products_bsubimage1 . '", "' . $v_products_subimage2 . '", "' . $v_products_bsubimage2 . '", "' . $v_products_subimage3 . '", "' . $v_products_bsubimage3 . '", "'; Quote Apples...why did they have to be apples? Link to comment Share on other sites More sharing options...
JenRed Posted April 4, 2003 Share Posted April 4, 2003 I am having an upload problem! I downloaded the file, added a few products and then tried to upload. Then I followed the docs troubleshooting tips and tried to simply download a file, make no changes and then upload but each time I try to upload a file all I get is a screen that says: Easy Populate 2.53 - Default Language : English(1) and nothing else! When I tried it with the file where I had added a couple of products, they hadn't been added to my store. Any ideas what is happening here??? thanks Jen Quote I haven't lost my mind - I have it backed up on disk somewhere. Link to comment Share on other sites More sharing options...
tcpinhead Posted April 9, 2003 Share Posted April 9, 2003 fast freddy, I am having the same troubles with the mimage and bimage fields. By removing the first dot I get then this: Parse error : parse error, unexpected T_VARIABLE in /Library/WebServer/Documents/shop/admin/easypopulate.php on line 1541 What exactly does it take to activate these fields. I was able to do it in an older version by just duplicating every instance of v_products_image and creating mimage and bimage but I would like to stick closer to the updated version. I am currently using (trying) 2.53. Thanks Terral Quote Link to comment Share on other sites More sharing options...
tcpinhead Posted April 9, 2003 Share Posted April 9, 2003 I was able to fix the parse error by adding the ; after the query. This however did not enable the mimage and bimage in the output. Thanks for any help. Quote Link to comment Share on other sites More sharing options...
loxly Posted April 10, 2003 Share Posted April 10, 2003 I'm not at home right now, and will do this when I get there, but in the meantime maybe someone can compare these lines to what is in 2.4 beta 7. The sames lines would be there just without the extra image lines for the mopics mod. mimage and bimage will be in there. d Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
tcpinhead Posted April 10, 2003 Share Posted April 10, 2003 Loxly, I compared the two but am not sure what to do now. I also tried duplicating the products_image lines throughout the file and changing them to mimage and bimage. It worked on my old file 2.41b5 but crashed hard in the new one. 2.53 $v_products_id = $max_product_id; echo "<font color='green'> !New Product!</font><br>"; $query = "INSERT INTO products ( products_image, #products_mimage, #products_bimage, #products_subimage1, #products_bsubimage1, #products_subimage2, #products_bsubimage2, #products_subimage3, #products_bsubimage3, products_model, products_price, products_status, products_last_modified, products_date_added, products_date_available, products_tax_class_id, products_weight, products_quantity, manufacturers_id) VALUES ( '$v_products_image',"; // unmcomment these lines if you are running the image mods /* $query .= . $v_products_mimage . '", "' . $v_products_bimage . '", "' . $v_products_subimage1 . '", "' . $v_products_bsubimage1 . '", "' . $v_products_subimage2 . '", "' . $v_products_bsubimage2 . '", "' . $v_products_subimage3 . '", "' . $v_products_bsubimage3 . '", "' */ $query .=" '$v_products_model', '$v_products_price', '$v_db_status', CURRENT_TIMESTAMP, $v_date_added, $v_date_avail, '$v_tax_class_id', '$v_products_weight', '$v_products_quantity', '$v_manufacturer_id') "; $result = tep_db_query($query); 2.41b7: $v_products_id = $max_product_id; echo "<font color='green'> !New Product!</font><br>"; $query = 'INSERT INTO products ( products_image, products_model, products_price, products_status, products_last_modified, products_date_added, products_date_available, products_tax_class_id, products_weight, products_quantity, manufacturers_id) VALUES ( "' . $v_products_image . '", "' . $v_products_model . '", "' . $v_products_price . '", ' . $v_db_status . ', CURRENT_TIMESTAMP, ' . $v_date_added . ', ' . $v_date_avail . ', "' . $v_tax_class_id . '", "' . $v_products_weight .'", "' . $v_products_quantity .'", ' . $v_manufacturer_id.')'; $result = tep_db_query($query); Quote Link to comment Share on other sites More sharing options...
loxly Posted April 10, 2003 Share Posted April 10, 2003 Loxly,I compared the two but am not sure what to do now. I also tried duplicating the products_image lines throughout the file and changing them to mimage and bimage. It worked on my old file 2.41b5 but crashed hard in the new one. 2.53 $v_products_id = $max_product_id; echo "<font color='green'> !New Product!</font><br>"; $query = "INSERT INTO products ( products_image, #products_mimage, #products_bimage, #products_subimage1, #products_bsubimage1, #products_subimage2, #products_bsubimage2, #products_subimage3, #products_bsubimage3, Did you uncomment these lines? Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
tcpinhead Posted April 10, 2003 Share Posted April 10, 2003 Yes, I did uncomment all the lines relating to the images. Then I get the unexpected '.' parse error as mentioned above. If I remove the first dot then I get an unexpected T_VARIABLE. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2003 Share Posted April 22, 2003 I too was getting this error and have been playing around all afternoon, and now its working or at least its letting me get to the code, here it is, not sure how different it is to what has already been posted though, cant really remember what i fixed :oops: //unmcomment these lines if you are running the image mods $query .= $v_products_mimage . '", "' . $v_products_bimage . '", "' . $v_products_subimage1 . '", "' . $v_products_bsubimage1 . '", "' . $v_products_subimage2 . '", "' . $v_products_bsubimage2 . '", "' . $v_products_subimage3 . '", "' . $v_products_bsubimage3 . '", "' . $v_products_subimage4 . '", "' . $v_products_bsubimage4 . '", "' . $v_products_subimage5 . '", "' . $v_products_bsubimage5 . '", "' . $v_products_subimage6 . '", "' . $v_products_bsubimage6 . '", "'; Problem now is that when i download my file the extra fields are not there :( Fixed one problem probably caused another! Quote Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2003 Share Posted April 23, 2003 hi there i belive i did follow all the installation tips and i got teh followin error before i post it i will explain what i did a) changed the $temp in the easy populate to be $tempdir = "temp/"; $tempdir2 = "temp/"; since i am installing teh catalog on the main b)my temp is installed in the main root so it is /temp c)the temp has 777 permission the message i am getting is as follow :- Warning: move_uploaded_file(/home/compusel/public_htmltemp/EP2003Apr22-2008.txt) [function.move-uploaded-file]: failed to create stream: No such file or directory in /home/compusel/public_html/admin/includes/functions/general.php on line 789 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpn8KQWg' to '/home/compusel/public_htmltemp/EP2003Apr22-2008.txt' in /home/compusel/public_html/admin/includes/functions/general.php on line 789 File uploaded. Temporary filename: /tmp/phpn8KQWg User filename: EP2003Apr22-2008.txt Size: 50319 Warning: file(/home/compusel/public_htmltemp/EP2003Apr22-2008.txt) [function.file]: failed to create stream: No such file or directory in /home/compusel/public_html/admin/easypopulate.php on line 649 Warning: Invalid argument supplied for foreach() in /home/compusel/public_html/admin/easypopulate.php on line 653 Upload complete Pls help i shoud lunch the store soon "500 products " and i did not update any yet thanks storeman Quote Link to comment Share on other sites More sharing options...
loxly Posted April 23, 2003 Share Posted April 23, 2003 Did you change the temp/ dir locally or live? and one of the needs to be /temp/ and the other temp/ Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
rebel Posted April 23, 2003 Share Posted April 23, 2003 I am having difficulty, can someone please help. I have installed ep as directed, I downloaded the default setup catalog file as .txt, when I try to upload it back to db I get 1054 error products_mimage doesn't exist in field list error. Any help! Quote Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2003 Share Posted April 23, 2003 i deb i changed teh temp directory live and yes i have teh two temp as you discribed is that wrong? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2003 Share Posted April 23, 2003 Hi deb i did another trick , i did create an empty folder by the name of catalog and inside it anotehr fodler by temp , it did upgrade teh file however i got teh following message File uploaded. Temporary filename: /tmp/phpC2ZkyX User filename: EP2003Apr22-2210.txt Size: 50320 | MG200MMS | matrox/mg2 | Matrox G20 | Reinforcin | www.matrox | Matrox G20 | Unterst?tz | www.matrox | 500 | 23 | 0000-00-00 | 2/17/2003 | 30 | Matrox | Hardware | Graphics C | | | | | | Taxable Go | Active Updated 1054 - Unknown column 'products_mimage' in 'field list' UPDATE products SET products_price="467.29" ,products_image="matrox/mg200mms.gif" ,products_mimage="" ,products_bimage="" ,products_subimage1="" ,products_bsubimage1="" ,products_subimage2="" ,products_bsubimage2="" ,products_subimage3="" ,products_bsubimage3="" ,products_weight="23" ,products_tax_class_id="1" ,products_date_available= "0000-00-00 00:00:00" ,products_date_added= "2/17/2003 23:50" ,products_last_modified=CURRENT_TIMESTAMP ,products_quantity="30" ,manufacturers_id=1 , products_status=1 WHERE (products_id = "1") [TEP STOP] actually i am getting confused thanks for all your help Quote Link to comment Share on other sites More sharing options...
loxly Posted April 23, 2003 Share Posted April 23, 2003 Are you using the three iamges and MoPics contributions? If you are not, it is looking for the tables and not finding them. Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2003 Share Posted April 23, 2003 Hi again deb one more thing i noticed , when i created both directroies , i made the permission to 777 , howver every time you check it goes back to 755 , any idea?? thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2003 Share Posted April 23, 2003 hi debra i am not using them , how can i deactivate that ? Quote Link to comment Share on other sites More sharing options...
loxly Posted April 23, 2003 Share Posted April 23, 2003 Hi again deb one more thing i noticed , when i created both directroies , i made the permission to 777 , howver every time you check it goes back to 755 , any idea?? thanks That is a big problem. The directory HAS to be 777. Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2003 Share Posted April 23, 2003 ok debra i chnaged back the temp directory to be in the main and the $temp to be /temp/ and teh other oen to be temp / this time the permission stays at 777 , howeevr i still get the error for teh other contribution , how can i comment them , and in which file ? thanks Quote Link to comment Share on other sites More sharing options...
rebel Posted April 23, 2003 Share Posted April 23, 2003 can someone plz help Quote Link to comment Share on other sites More sharing options...
loxly Posted April 23, 2003 Share Posted April 23, 2003 They should be commented out in the Easy Populate.php file in the original download. If they are not, then search for mimage and put # in front of that line and the image names after it. There are 3 places that this needs to be done. Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2003 Share Posted April 23, 2003 thanks debra it is working now they werenot commented i have to go and comment them , would be able to let the author of the contribution know about this ? "i downloaded version 2.53 " thanks again for your help another small thing when you are uploadinng teh file it does not upload to the category i mena it does uload all teh products but does not create a category ? any idea why ? thanks Quote Link to comment Share on other sites More sharing options...
loxly Posted April 23, 2003 Share Posted April 23, 2003 Did you put a category name in the category column? Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
Guest Posted April 24, 2003 Share Posted April 24, 2003 hi debraa i figured it out , it was a silly mistake :oops: i had one of the categories name exactly as a subcategory name under a diffrent category thanks 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.