|
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... //} |
|
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 |
|
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? |
|
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.
|
|
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... //} |
|
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.
|
|
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
|
|
In reply to this post by markgrahamdunn
yeah, that worked, sorry I thought I had already tried that :P
|
|
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. |
|
In reply to this post by markgrahamdunn
it worked for me! Thank u!
|
| Powered by Nabble | See how NAML generates this page |
