Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Extra Images - error


seg

Recommended Posts

Hi,

I am operating osComerce 2.2 MS2 and I tried installing the Extra Images contribution: http://www.oscommerce.com/community/contributions,1289/

 

The install was pretty straight forward, except there was a discrepancy in the very last installation instruction.

 

/catalog/product_info.php

 

Find :

 

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>

 

</tr>

 

<?php

 

} else {

 

 

 

After Add :

 

if (DISPLAY_EXTRA_IMAGES == 'true'){

 

if ($product_check['total'] >= 1) {

 

include (DIR_WS_INCLUDES . 'products_extra_images.php');

 

}

 

}

 

My install doesn't have a catalog directory (installed from fantastico) and the product_info.php is slightly different:

 

<?php
} else {
?>
  <tr>
	<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
  </tr>
<?php
}
?>

 

So added it like this:

 

<?php
} else {

  if (DISPLAY_EXTRA_IMAGES == 'true'){

 if ($product_check['total'] >= 1) {

   include (DIR_WS_INCLUDES . 'products_extra_images.php');

 }

}
?>
  <tr>
	<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
  </tr>
<?php
}
?>

 

Sorry for the long description ... on to my problem. I am getting the error:

 

1146 - Table 'XXXXXXXX_XXXX.TABLE_PRODUCTS_EXTRA_IMAGES' doesn't exist

 

SELECT products_extra_image, products_extra_images_id FROM TABLE_PRODUCTS_EXTRA_IMAGES WHERE products_id='154'

 

[TEP STOP]

 

I have checked my database and the table is fully intact, nothing above is missing. Has anyone seen this error? Any help would be greatly appreciated.

 

Thanks!

Link to comment
Share on other sites

Correction .... error message still occuring.

 

The last instruction should be:

/catalog/product_info.php

 

Find :

 

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>

 

</tr>

 

<?php

 

}

 

 

 

After Add :

 

if (DISPLAY_EXTRA_IMAGES == 'true'){

 

if ($product_check['total'] >= 1) {

 

include (DIR_WS_INCLUDES . 'products_extra_images.php');

 

}

 

}

This instruction seems to be wrong in the file uploaded by sebastic.

Edited by seg
Link to comment
Share on other sites

I went through the intructions again and found that I accidentally skiped over an instruction. Everything is now working well. Posted install.txt fix to contribution page.

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...