phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

markgrahamdunn
This post was updated on .
apparently phpThumb is incompatible with php 5.3 due to the deprecated eregi function:
http://sourceforge.net/tracker/?func=detail&aid=2896552&group_id=106407&atid=643974

however there is a fix to solve this issue.

PROCEED WITH PRECAUTION AND AS ALWAYS MAKE A BACKUP BEFORE YOU COMMENCE !!!!!!

Before you can start, first make a info.php file with <?php phpinfo(); ?> inside, upload it to your server and have a look which php version is installed.

THIS FIX IS ONLY FOR PHP 5.3 AND ABOVE.

phpThumb.zip
Download the php thumb and extract the contents of it ex:
phpthumb.bmp.php
phpthumb.class.php
phpthumb.filters.php
phpthumb.functions.php
phpthumb.gif.php
phpthumb.ico.php
phpThumb.php
phpthumb.unsharp.php

Fire up your ftp program and head to your server and locate the php thumbs folder
core > function > phpThumb

Replace only the php files on your server with the php files you have downloaded.

this should solve the issue and you will be able to generate thumbnails through the backend interface



*** Please note that in very rare occasions you won't be able to generate thumbnails while uploading them in the admin section. this is related to the set_time_limit (explanation of this function: http://php.net/manual/en/function.set-time-limit.php) function being used in the phpThumb.php file (core > functions > phpThumb) commenting this out solved the issue.

comment this if statement from line 38 to 40

//if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
        //set_time_limit(60);  // shouldn't take nearly this long in most cases, but with many filters and/or a slow server...
//}








Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

juliusasling
I'm having problems with the thumbnails even thou I tried both here. I know I have php 5.3, so this would be it - but it didn't do schmuck. Do you know any other thing that could cause the problem, or any other solution?
My website is http://www.juliusasling.se if that could help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

markgrahamdunn
hi,
i can help you out but then i would need your ftp user and pass also your core admin pass b/c in need to dig into the php codes.
could you send these details to my private e-mail mark@grahamdunn.be?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

hallor
In reply to this post by markgrahamdunn
yeah, same problem here. I have php 5.3, downloaded those fixed files and replaced the old one, and nothing happened. no change.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

markgrahamdunn
did you comment this out:
//if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
        //set_time_limit(60);  // shouldn't take nearly this long in most cases, but with many filters and/or a slow server...
//}
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

drose


I followed all the directions as instructed. I'm not getting the proper results.  If someone could please help I would be very greatful. Thanks so much.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

markgrahamdunn
Hi, I will get to you back tomorrow.
In the meantime could your pass me yor ftp acces to my private e-mail adress: [hidden email] and help you from there on.

Regards
mark 

Sent from my iPhone

On 19 Feb 2010, at 20:35, "drose [via Core CMS]" <[hidden email]> wrote:



I followed all the directions as instructed. I'm not getting the proper results.  If someone could please help I would be very greatful. Thanks so much.


View message @ http://n2.nabble.com/phpThumb-fix-only-if-you-are-not-able-to-generate-thumbnails-through-the-admin-interface-tp4284603p4599685.html
To unsubscribe from Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface), click here.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

hallor
In reply to this post by markgrahamdunn
yeah, that worked, sorry I thought I had already tried that :P
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

mlaks
Hi,

i am having the same problem here and i can't fix it. Did you figured out how to correct this?
For me, i was able to correct it changing the files in the php Thumbs for the ones Mark put and setting the time limit in line 39 of phpThumb.php to zero, like this:

if (!phpthumb_functions::FunctionIsDisabled('set_time_limit')) {
        set_time_limit(0);  // shouldn't take nearly this long in most cases, but with many filters and/or a slow server...
}

This allows me to load images and a "xxx_thumbs.jpg" for the thumbnail ok. Even i can't properly see the files in the admin...

Hope this helps, and if someone has a better way to fix it, please tell me.

best,
m.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: phpThumb fix (only if you are not able to generate thumbnails through the admin interface)

Rodrigo Breckenfeld
In reply to this post by markgrahamdunn
it worked for me! Thank u!
Loading...