Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] oscThumb


Guest

Recommended Posts

Hi all,

 

I've scoured this thread and found no reference to the error I'm recieving... Perhaps I'm being totally stupid and missing the obvious, but if someone could provide a nudge in the right direction, I'd be grateful.

 

I have installed oscThumb and now instead of images displaying, I'm getting an error description in a .jpg image, which reads:

$this->config_cache_directory (/phpThumb/cache) does not exist. Adjust "cache_directory" or "cache_disable_warning" in phpThumb.config.php

 

I have checked that the correct permissions are applied, and the file path is correct too. Am I missing something else?

 

I have made changes to the phpThumb.config.php and I'm still in the same position.

 

Any help would be great!

 

Thanks!

Link to comment
Share on other sites

  • Replies 443
  • Created
  • Last Reply

Top Posters In This Topic

Hi all,

 

I've scoured this thread and found no reference to the error I'm recieving... Perhaps I'm being totally stupid and missing the obvious, but if someone could provide a nudge in the right direction, I'd be grateful.

 

I have installed oscThumb and now instead of images displaying, I'm getting an error description in a .jpg image, which reads:

$this->config_cache_directory (/phpThumb/cache) does not exist. Adjust "cache_directory" or "cache_disable_warning" in phpThumb.config.php

 

I have checked that the correct permissions are applied, and the file path is correct too. Am I missing something else?

 

I have made changes to the phpThumb.config.php and I'm still in the same position.

 

Any help would be great!

 

Thanks!

 

Okay, so I've changed the $PHPTHUMB_CONFIG['document_root'] to $PHPTHUMB_CONFIG['document_root'] = ['/']; // oscThumb: added osCommerce directory

Link to comment
Share on other sites

I am having the same trouble, I have tried every combo of directory setting I can think of in phpthumbs.config.php and still can't get the 'cache directory' error sorted out ...

 

Anyone??

 

 

Hi all,

 

I've scoured this thread and found no reference to the error I'm recieving... Perhaps I'm being totally stupid and missing the obvious, but if someone could provide a nudge in the right direction, I'd be grateful.

 

I have installed oscThumb and now instead of images displaying, I'm getting an error description in a .jpg image, which reads:

$this->config_cache_directory (/phpThumb/cache) does not exist. Adjust "cache_directory" or "cache_disable_warning" in phpThumb.config.php

 

I have checked that the correct permissions are applied, and the file path is correct too. Am I missing something else?

 

I have made changes to the phpThumb.config.php and I'm still in the same position.

 

Any help would be great!

 

Thanks!

Edited by myancey260
Link to comment
Share on other sites

Figured it out.....

 

$PHPTHUMB_CONFIG['document_root'] = '/home/yourhost/public_html/yourdomain/store';

 

worked in place of:

 

$PHPTHUMB_CONFIG['document_root'] = DIR_FS_CATALOG; //

 

I never could get DIR_FS_CATALOG to work, so I just manually input the absolute path, don't know if it was my store or what, but no matter what I put into that variable it never showed up in the phpthumbconfig....

 

 

Does anyone pay attention to this thread??

Link to comment
Share on other sites

oscthumb.php?src=/images/example.jpg&w=140&h=140&f=jpg&q=50&hash=7c992bbb4b419db9376d51340273ff24

 

Below is my GD details from php.info

 

GD Support enabled

GD Version bundled (2.0.34 compatible)

FreeType Support enabled

FreeType Linkage with freetype

FreeType Version 2.1.9

T1Lib Support enabled

GIF Read Support enabled

GIF Create Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XBM Support enabled

 

Why images are not showing from cache folder?

Please, anyone explain this issue.

 

Thank you so much.

Lachit Kashyap

Link to comment
Share on other sites

  • 1 month later...

Looking for some assistance on this Contribution OSCThumb

 

I have installed this 2 times with the same success.

 

here is a reference to what I am dealing with oscthumb problems no image

 

Well my temp directory is being filled with all the image so GD is working well the hash being is there but I am having problem seeing if the it being sent the correct path to load the images. I have been reading and trying this like the cache control...seo...phpthumb.config...$PHPTHUMB_CONFIG['nohotlink_enabled'] all these with no luck. So any help would be great....I have turned on all error reporting in php no luck there no errors...

 

I am going crazy as I never been whooped by contrib till now....

 

 

Thanks,

Craig

Link to comment
Share on other sites

Well I have still been working on this and it seems possible that the oscthumbs is point to the wrong path for the cached pics

 

does this seem correct or incorrect I have my cache located default catalog/phpthumb/cache/

 

Below is what I get from view source... which it appears it looking in my old source catlog/images/ directory

 

<td class="infoBoxContents"><center><a href="http://test.obteamsports.com/product_info.php?products_id=1265"><img src="oscthumb.php?src=/images/RIP-IT/2_sm.jpg&w=67&h=100&f=jpg&q=95&hash=37702b0e3864c303bbbfeea7ee5433f9" w="67" h="100" border="0" alt="NEW! RIP-IT DEFENSE WITH BLACKOUT TECHNOLOGY" title="NEW! RIP-IT DEFENSE WITH BLACKOUT TECHNOLOGY">

 

Heck I don't know I a still fishing........

 

Any help would be awesome !!!!!!!!!!!!!!!!!

Link to comment
Share on other sites

  • 1 month later...

Am not sure if this thread is still being monitored. I did install this mod to oSc ver 2.3.1. At product_info page, I receive this error message.

Fatal error: Call to a member function set_type() on a non-object in W:\www\mystore\includes\functions\html_output.php on line 160

line-153  // START oscThumbforoverlaysOWN
line-154  // If you want to call the original function, you can call tep_image_original or call this one with $original=true.
line-155    function tep_image22($src, $alt = '', $width = '', $height = '', $params = '', $original = false, $thumbnail_type = 0) {
line-156    global $oscthumb;
line-157
line-158
line-159
line-160  $oscthumb->set_type ($src, $width, $height, $thumbnail_type); // Detect the type of image we are currently processing
 if ($oscthumb->set_size ($src, $width, $height)==false) return false; // Choose the displayed width and height of the image, and if display something

    $image22 = $oscthumb->process22($src); // Returns the beginning of the image tag, like <img src="oscthumb.php?src=... or <img src="images/logo.gif"



   if (tep_not_null($alt)) {
     $image22 .= ' title="' . tep_output_string($alt) . '"';
   }


 return $image22;
 }
// END oscThumbforoverlays

 

This is installed on my test site. So am looking for some clue/s on what I need to look at or how this can be fixed.

 

Thank you.

Link to comment
Share on other sites

Hello,

 

I have installed the contribution and everything went as well. But know when i have switched the master switch on and try to upload new images to products nothing happens. It's not scaling the image.. What to do? Thanks!

Link to comment
Share on other sites

Same here, i installed everything, update databse, no errors, no image problems nothing, i set my image size in the new parameters, set crop zoom on, then i switch the contribution on and nothing happens, created new produts and nothing new, my thumbs are still the original image shrinked, it's just like before, images are distorted as always, do i need to change any settings in the admin->configuration->images->original parameters? i just need to use the zoom crop function to make thumbs with the same size independently the proportions. But no mather what can´t find a contribution that work. I just double check every step, what i'm i missing? Any ideas? Just run the forum and find no answers.

 

Regards,

rvlt

Link to comment
Share on other sites

  • 3 weeks later...

I was hoping someone can help with an issue I am having with oscThumb contribution! It has been working flawless until I switched to a new hosting company. For some reason the cache for the thumbnails is not working. I kept getting the red x and missing thumbnails on the site. I turned off the error in $PHPTHUMB_CONFIG['cache_disable_warning'] = true to get my thumbnails to show. All other cache settings are working as well as the backup settings. One note is that the new hosting company has to have a redirect to my url and was wondering if somehow that is the issue and I may need to change a few more setting in phpThump.config.php

Link to comment
Share on other sites

After installing oscThumb I could not view images on my site. Checking phpThumb/cache I did not see any images being stored in there.

 

After a lot of googling, reading the forum for solutions, etc. it boiled down to something as simple that I did not have a define in my catalog/includes/configure.php file.

 

Before----

define('DIR_FS_CATALOG', '');

...osThumb won't work

 

After

define('DIR_FS_CATALOG', '/home/myusername/public_html/myshop/');

...osThumb now works

 

Hope that helps someone......

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Link to comment
Share on other sites

  • 1 month later...

Have been happily using this contrib for a long time now, but just this week GoogleBot has been generating crawl errors due the the image filename encryption. How can the file encryption be turned off?

I have set it to 'off' in the admin side, but all images are still remaining encrypted.

Any help will be gratefully appreciated.

Thanks,

Rob.

Link to comment
Share on other sites

Hello, I have problem with oscThumb I install this http://addons.oscommerce.com/info/6480

but when I turn on oscThumb image width and height in product info and boxes is the same can some one to help me I use this code for product info image:

<?php echo tep_image_lightbox_link(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name']) . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), PRODUCT_INFO_IMAGE_WIDTH, PRODUCT_INFO_IMAGE_HEIGHT) . '</a><br />';
include(DIR_WS_MODULES . 'additional_images.php');
}
?>

a233aeb00fee193c2b49605dedbc64de3f9ce9c8b6c9690b55f62523c6a526855g.jpg

 

Thank you

Link to comment
Share on other sites

  • 4 weeks later...

Hi your contribution sounds great but where is the download for v2.3.1? -

your zips are empty in the main - the addon section says use Use package 1.1.2 without errors which is empty - can you tell me where its possible to download your contribution for v2.3.1?

Thanks in advance

Link to comment
Share on other sites

I can´t understand this, maybe someone here can help me.

 

I installed enverything following the readme file with zero problems.

I set the two new parameters (product image width and height) to 190x230 the size i want image to be displayed in product_info.php, i also set the same size to the Small Image parameters for the product lists, i want to use zoom crop function to adjust images variable sizes to the the thumb size.

 

My problem is my thumbs are being created to small (+-20% of the original size and not based on the values i set), the only way to get the size i want is by turning "on" the "Allow thumbnails larger than original" also when i click on product_info.php thumbs the popup opens the small thumb and not the original image size, doesn´t this contribution maintain the original image to be displayed? Or i'm not thinking this the right way.

 

My example:

 

Thumb size set up: 190x230

Original image example: 850x752 (this image thumb will be 170x150 and it should be 190x230 zoom croped)

 

And also, i should get the original size in the popup no? Instead it opens the thumb size (170x150).

 

 

If someone can help me, i search the all post and no one has nothing similar, some complete details on setting image parameters or a admin print screen would help.

 

Thanks,

Edited by rvlt
Link to comment
Share on other sites

  • 1 month later...

Hi, I'm having some trouble with oscThumb. It is working and generating the thumbnails perfectly. I'm just having one problem. If it is generating images on a page and I do not let it finish (takes awhile), I will get an Internal Server Error 500. It will show this error on all pages until it is done generating the images.

 

Is there any way around this? I have caching turned on but it still wants to generate images almost every time.

 

We use 1&1 shared hosting. You can view the site at scopestop.com

Link to comment
Share on other sites

  • 3 weeks later...

I had similar phpThumb no image showing issues.... Try setting all the JPEG QUALITY settings to 100, then test. Once I did this the missing images began appearing again, then I was able to re-set the quality any other varables without issue. Odd, but worked for me.

 

oscThumb 1.12 with the core phpThumb 1.7.10 update applied, on mysql5/php5 server. 2.2Rc2a

-Dave

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Since installing oscThumb, it seems that images are very slow to load. Does anyone have any suggestions how I can make the images load faster? Could there be some type of setting I overlooked?

 

 

Also, in the July 20, 2011 update to the contribution, it states:

 

phpThumb has an exploit command vulnerability.

I just took the last phpThumb 1.7.10

and update accordingly to the doc prodided :

 

catalog/phpThumb/phpThumb.php: set the error reporting to (E_ERROR | E_PARSE) instead of E_ALL.

catalog/phpThumb/phpThumb.config.php: the following parameters have been modified:

 

$PHPTHUMB_CONFIG['document_root']: from osCommerce constant

$PHPTHUMB_CONFIG['cache_directory']: from configuration parameter

$PHPTHUMB_CONFIG['high_security_password']: from configuration parameter

 

You should replace your current version of phpThumb with the one provided in the zip file.

 

Does the entire contribution need to be updated or just the two files mentioned? Are there changes to other files than the ones listed?

 

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