Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

EasyPopulate 2.4, now with Froogle support!


wasson65

Recommended Posts

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:

error.jpg

 

Thank you.

Link to comment
Share on other sites

  • Replies 285
  • Created
  • Last Reply

Top Posters In This Topic

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 . '", "';

Apples...why did they have to be apples?

Link to comment
Share on other sites

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

I haven't lost my mind - I have it backed up on disk somewhere.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

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);

Link to comment
Share on other sites

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?

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

  • 2 weeks later...

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Are you using the three iamges and MoPics contributions? If you are not, it is looking for the tables and not finding them.

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...