Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product listing


FWR Media

Recommended Posts

I have the same problem as described in post #5, that was subsequently solved in post #9. Seemed like a simple fix... I have tried everything I can think of and cannot get this to work. This addon works fine on the Full Site. On my dev server the mobile site it's different though. It saves thumbs, though it doesn't seem to be using them, just generating them. When I move the changes onto my live server no pages containing pics will display, the server times out on the mobile side, and displays <img> boxes with alt text for the Full side.

 

Here are the basics:

 

 

- PHP 5.3.3

 

- OSC 2.3.3

 

- iOSC Mobile Version for OSC 2.3.3.

 

-KissIT Image Thumbnailer

 

- Contribution support V. 2.3. for iOSC 6.x -> KissIT_image_thumbnailer

 

...and the error:

Warning: getimagesize(images/no_image_available_150_150.gif) [function.getimagesize]: failed to open stream: No such file or directory in /home/username/public_html/catalog/includes/modules/kiss_image_thumbnailer/classes/Image_Helper.php on line 77

 

 

Just so its clear: Yes I tried the fix in post #9, and just about every piece of code tweak mentioned in this thread. I'm kinda out of ideas.

 

Any one have an idea? Any help would be greatly appreciated.

Edited by [email protected]
Link to comment
Share on other sites

There is no "catalog/images/no_image_available_150_150.gif" file.

Edited by Gergely

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

I have the same problem as described in post #5, that was subsequently solved in post #9. Seemed like a simple fix... I have tried everything I can think of and cannot get this to work. This addon works fine on the Full Site. On my dev server the mobile site it's different though. It saves thumbs, though it doesn't seem to be using them, just generating them. When I move the changes onto my live server no pages containing pics will display, the server times out on the mobile side, and displays <img> boxes with alt text for the Full side.

 

Here are the basics:

 

 

- PHP 5.3.3

 

- OSC 2.3.3

 

- iOSC Mobile Version for OSC 2.3.3.

 

-KissIT Image Thumbnailer

 

- Contribution support V. 2.3. for iOSC 6.x -> KissIT_image_thumbnailer

 

...and the error:

 

 

 

Just so its clear: Yes I tried the fix in post #9, and just about every piece of code tweak mentioned in this thread. I'm kinda out of ideas.

 

Any one have an idea? Any help would be greatly appreciated.

 

Hello Mike @,

 

To get the Kissit thumbnail contribution to work with Mobile OsC 6.0 you need to add the Mobile OsC support for KissIT_image_thumbnailer included in the Contribution support V. 2.0rev1 for iOSC 6.x:

http://addons.oscommerce.com/info/8578

 

See also Mobile OsC 6.0 documentation: Troubleshooting.doc, Section D

 

I didn't test this for iOSC 5.x, but it should work too.

 

regards

Rainer

Edited by raiwa
Link to comment
Share on other sites

It seems while going through my profile I inadvertently changed my name to my email addres... oops.

 

There is no "catalog/images/no_image_available_150_150.gif" file.

 

I have the following images:

-images/no_image_available_150_150.gif

-images/no_image_available_150_150.png

-images/no_image_available_150_150.jpg

-images/mobile/no_image_available_150_150.gif

-images/mobile/no_image_available_150_150.png

-images/mobile/no_image_available_150_150.jpg

 

 

Hello Mike @,

 

To get the Kissit thumbnail contribution to work with Mobile OsC 6.0 you need to add the Mobile OsC support for KissIT_image_thumbnailer included in the Contribution support V. 2.0rev1 for iOSC 6.x:

http://addons.oscommerce.com/info/8578

- KissIT Image Thumbnailer

 

- Contribution support V. 2.3. for iOSC 6.x -> KissIT_image_thumbnailer

Yep, got it... Or is there an issue with v2.3 and I need to use v2.1 rev1 instead?

 

 

See also Mobile OsC 6.0 documentation: Troubleshooting.doc, Section D

I'll look this up...

 

 

 

edit:

 

See also Mobile OsC 6.0 documentation: Troubleshooting.doc, Section D

This just sends me to all the install documentation included with the 'Support' and 'Kissit' addons, I've been though theses steps already. Edited by [email protected]
Link to comment
Share on other sites

It seems while going through my profile I inadvertently changed my name to my email addres... oops.

 

 

 

I have the following images:

-images/no_image_available_150_150.gif

-images/no_image_available_150_150.png

-images/no_image_available_150_150.jpg

-images/mobile/no_image_available_150_150.gif

-images/mobile/no_image_available_150_150.png

-images/mobile/no_image_available_150_150.jpg

 

 

 

 

Yep, got it... Or is there an issue with v2.3 and I need to use v2.1 rev1 instead?

 

RAIWA: NO, sorry I made a mess with the versions, KissIT_image_thumbnailer is the same in Contribution support V. 2.3 and v2.1 rev1.

 

I'll look this up...

 

 

 

edit:

 

This just sends me to all the install documentation included with the 'Support' and 'Kissit' addons, I've been though theses steps already.

 

RAIWA: Just wanted to say that it's explained there that you need to add the support for Kissit

Link to comment
Share on other sites

RAIWA: Just wanted to say that it's explained there that you need to add the support for Kissit

 

...

 

 

- KissIT Image Thumbnailer

 

- Contribution support V. 2.3. for iOSC 6.x -> KissIT_image_thumbnailer

 

I know what your saying. I'm saying that I have done what you have suggested. I mentioned it twice above. I have walked back through the install process a couple time. I'll probably just have to do a fresh re-install of iOSC, KissIT, and mobile support KissIT on the dev server and see If it still comes up.

 

I originally thought that allow_url_fopen may not have been on, or my upload limits were unusually small, but my php.ini is configure correctly as far as I an tell. Unfortunately googling "getimagesize" and "no_image_available_150_150.gif" just brings up this thread and several other OSC websites having the same issue, and haven't fixed it yet.

 

I'll keep troubleshooting and see if I come up with something. If I figure it out I'll report back. Until then I am open to any suggestions.

Link to comment
Share on other sites

  • 2 weeks later...

This addon is still only working on my Full Site and not the Mobile. The Mobile site just shows all "image_not_available" images. Except the fancybox popup, that shows the correct image.

 

 

 

I took a new clean install:

 

Fresh, untouched OSC v2.3.3

 

1st -> Installed Mobile OSC 6, clean, no mods,

------> then 6.0 rev 2, clean, no mods

------> then 6.0 rev 3, clean, no mods

------> then 6.0 rev 4, clean, no mods

------> then 6.0 rev 5, clean, no mods

------> then 6.0 rev 6, clean, no mods

 

Checked install, Apahe error log came back clean, no functionality issues.

 

2nd -> Installed KissIT_image_thumbnailer_r9

 

Checked install, Apahe error log came back clean, no functionality issues.

 

3rd -> Installed Contribution support V. 2.0rev1 for iOSC 6.x / KissIT_image_thumbnailer

 

Nothing else installed. The only thing changed, is configure.php points to an existing database, and all the product images / manufacturers logos associated with DB were saved in images AND mobile/images.

 

I checked all my permissions.

 

Everything seems to be correct but it's still not working. I really wanted this addon to work. I could have used the speed increase for a picture heavy site, but I don't have a lot of energy left I am willing to devote to getting this to work.

 

Anyone have a suggestion?

Link to comment
Share on other sites

At this point I would think it has to be a typo in the configure.php file. I wonder if someone would do me a favor and post theirs with their sensitive info omitted?

 

Preferably someone who has gotten this addon to work on a mobile site...

Edited by nitrew
Link to comment
Share on other sites

I forgot to mention. The only error in the Apache log currently is

 

File does not exist: .../mobile/includes/ajax.js, referer ...mobile/catalog_mb.php

 

I have Ajax Enabled set to false in the Mobile site config.

 

For this try to remove in catalog_mb.php

line 69-70:

if(AJAX_ENABLED =='true')
include(DIR_MOBILE_CLASSES . 'categories_js.php');

Link to comment
Share on other sites

At this point I would think it has to be a typo in the configure.php file. I wonder if someone would do me a favor and post theirs with their sensitive info omitted?

 

Preferably someone who has gotten this addon to work on a mobile site...

 

@@nitrew

 

If you wish you can post me your configure.php without the database info at the bottom in a private message, I'll check then.

Please post also your store URL to see what's wrong there.

 

kind regards

Rainer

Link to comment
Share on other sites

For this try to remove in catalog_mb.php

line 69-70:

if(AJAX_ENABLED =='true')
include(DIR_MOBILE_CLASSES . 'categories_js.php');

Commenting this out doesn't work. To stop the AJAX error you have to comment out line 26 and 27 in split_page_results_ajax.php

Like this:

?>
<!-- <script language="javascript" src="includes/ajax.js"></script> -->
<!-- <script language="javascript" src="includes/split_page_results_ajax.js"></script> -->
<script type="text/javascript">
function onWindowLoad() {
generateNextPageURL();
window.setTimeout("preloadData()",1000);
}
window.onload=onWindowLoad;

You could just delete those two lines. Those files don't exist in a clean install of OSC v2.3.3, so no harm, no foul.

Link to comment
Share on other sites

  • 1 month later...

I installed this contribution, and at first I noticed that it worked for my transparency gif but not for my jpeg images. I found that the reason is it needs both IMAGE_WIDTH and IMAGE_HEIGHT parameters in the database, while I had only set IMAGE_WIDTH.

 

One suggestion, since I'll have to edit the source code before I can use it:

Don't fill the rest of the image with a background (I know you can't have transparency with jpg), since the image may be used on different colored backgrounds. Pick the dimension that has the largest proportional difference and use that to scale the image proportionaly.

Link to comment
Share on other sites

  • 5 weeks later...

Just installed this contribution on my development 2.3.3.4 store and all went wel upto the changes for product_info.php. When I change the file as stated in the latest release of the mod I lose all functionality of the bxgallery and the images become huge as per the attached screenshot.

 

I have checked the install several times and all is as per the instructions. Any Ideas?

 

The changes to product_info.php are as below:

 

Open catalog/product_info.php in your flat file editor

 

Find ( about line 88 ) ...

$pi_entry .= '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $pi['image']) . '</a>';

Replace with ...

$pi_entry .= '" target="_blank" rel="fancybox">' . tep_image( DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT ) . '</a>';

Find ( about lines 104 - 106 )

$('#piGal ul').bxGallery({

maxwidth: 300,

maxheight: 200,

Replace with ...

$('#piGal ul').bxGallery({

maxwidth: <?php echo KISSIT_MAIN_PRODUCT_IMAGE_WIDTH; ?>,

maxheight: <?php echo KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT; ?>,

Find ( about line 118 )...

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), null, null, 'hspace="5" vspace="5"') . '</a>'; ?>

Replace with ...

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="fancybox">' . tep_image( DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5"' ) . '</a>'; ?>

 

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

@@burt Yes, as per the instructions in the install:

Open catalog/includes/configure.php in your flat file editor

 

Add the following lines immediately ABOVE the closing ?> at the bottom of the file ( set to your own choice of image size )

// Width and height of the main product_info.php image

define ( 'KISSIT_MAIN_PRODUCT_IMAGE_WIDTH', 300 );

define ( 'KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT', 200 );

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

Whoops - My Bad!

 

I had the permissions of catalog/includes/configure.php set to 444 which was preventing filezilla writing the modified file back to the server, and I didnt notice the failed transfer!

 

Sorted this out and now it works.....

 

Something to watch for - Ill leave it at 644 until I have finished modding....

 

Thanks

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

  • 2 weeks later...

I've looked all through the code, and my ignorance fails me.

How can I get this to work on the ADMIN side?

 

It seems to me, everything comes down to $src or $this

I'm not sure how those constants are set.

It looks like the change needs to happen in Image_Helper.php

Whatever the case, is there any way to have this working on the Admin Side?

 

I've tried changing the image path up one directory, but it still does not find a valid image.

Link to comment
Share on other sites

@@gadlol

With some heavy assistance from John (Or should I say with little assistance from myself), we have this puzzle figured:

Upload the standard files to your admin section.

 

Original Code in html_output.php

// New HTML image wrapper function modified for KISS Image Thumbnailer by FWR Media
 function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
   // If width and height are not numeric then we can't do anything with it
   if ( !is_numeric ( $width ) || !is_numeric ( $height ) ) return tep_image_legacy( $src, $alt, $width, $height, $parameters );
   require_once DIR_WS_MODULES . 'kiss_image_thumbnailer/classes/Image_Helper.php';
   $attributes = array( 'alt' => $alt, 'width' => $width, 'height' => $height );
   $image = new Image_Helper( array( 'src'                   => $src,
                                     'attributes'            => $attributes,
                                     'parameters'            => $parameters,
                                     'default_missing_image' => DIR_WS_IMAGES . 'no_image_available_150_150.gif',
                                     'isXhtml'               => true,
                                     'thumbs_dir_path'       => DIR_WS_MODULES . 'kiss_image_thumbnailer/thumbs/',
                                     'thumb_quality'         => 75,
                                     'thumb_background_rgb' => array( 'red'   => 255,
                                                                      'green' => 255,
                                                                      'blue'  => 255 ) ) );
   if ( false === $image_assembled = $image->assemble() ) {
     return tep_image_legacy( $src, $alt, $width, $height, $parameters );
   }
   return $image_assembled;
 } // end function

 

New code within your ./admin/includes/functions/html_output.php

// New HTML image wrapper function modified for KISS Image Thumbnailer by FWR Media
 function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
   // If width and height are not numeric then we can't do anything with it
   if ( !is_numeric ( $width ) || !is_numeric ( $height ) ) return tep_image_legacy( $src, $alt, $width, $height, $parameters );
   require_once DIR_WS_MODULES . 'kiss_image_thumbnailer/classes/Image_Helper.php';
   $attributes = array( 'alt' => $alt, 'width' => $width, 'height' => $height );
   $image = new Image_Helper( array( 'src'                   => '../..'.$src,
                                     'attributes'            => $attributes,
                                     'parameters'            => $parameters,
                                     'default_missing_image' => '../'.DIR_WS_IMAGES . 'no_image_available_150_150.gif',
                                     'isXhtml'               => true,
                                     'thumbs_dir_path'       => '../'.DIR_WS_MODULES . 'kiss_image_thumbnailer/thumbs/',
                                     'thumb_quality'         => 75,
                                     'thumb_background_rgb' => array( 'red'   => 255,
                                                                      'green' => 255,
                                                                      'blue'  => 255 ) ) );
   if ( false === $image_assembled = $image->assemble() ) {
     return tep_image_legacy( $src, $alt, $width, $height, $parameters );
   }
   return $image_assembled;
 } // end function

 

Edited by newburns
Link to comment
Share on other sites

I almost had it working perfectly for the admin side. Any idea how to make the class CREATE a thumbnail if there is not one present?

It works as long as the thumbnail is present in the directory, but it doesn't work if there is not. This is an issue for images like "icon_status_red.gif"

Link to comment
Share on other sites

Hi All,

 

I have just installed this add-on to my cart (2.3.1) to replace an older thumbnailer and it was so easy to install and is now generating images alot faster than the last one i was using, so thank you FWR!! Well Done!!

 

But! lol, always a BUT!

 

It is working for about 98% of the images but not all, it seems to generate a thumb at 0kbs, like a dummy file, I have tried to delete the generated image and refresh the page but it seems to do it on the same images. I have looked at the images and they seem to look ok "named well" so i am stuck to find the problem.

 

see attached image

post-281185-0-34654400-1387340794_thumb.jpg

 

 

any help would be appreciated.

 

Kind regards,

 

Ben

Edited by DogFoodIT
Link to comment
Share on other sites

  • 3 weeks later...

I feel two steps back and half-a-step closer.

This addon is semi working for the admin side, but I am missing images like the Green/Red circles for Active/Inactive. Is it not compatible with .GIF images?

osc 2.3.3.4

Link to comment
Share on other sites

Hi All,

 

I have just installed this add-on to my cart (2.3.1) to replace an older thumbnailer and it was so easy to install and is now generating images alot faster than the last one i was using, so thank you FWR!! Well Done!!

 

But! lol, always a BUT!

 

It is working for about 98% of the images but not all, it seems to generate a thumb at 0kbs, like a dummy file, I have tried to delete the generated image and refresh the page but it seems to do it on the same images. I have looked at the images and they seem to look ok "named well" so i am stuck to find the problem.

 

see attached image

post-281185-0-34654400-1387340794_thumb.jpg

 

 

any help would be appreciated.

 

Kind regards,

 

Ben

 

Fix to my problem is here: http://www.oscommerce.com/forums/topic/388022-kissit-image-thumnailer/page__st__40#entry1647749

page 3 in this thread.

 

download new image.php and upload it.

 

Thanks Robert, fantastic contrib. BIG Thumbs up mate.

Edited by DogFoodIT
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...