Fresh new install of CKFinder 1.4, and thumbnail generation seems to be borked. I can see it's creating a 'thumbs' directory, and an 'images' directory within that, but not populating it with anything. So thumbnails appear as question marks within CKFinder.
The directory permissions are set to 777.
I'm running Apache 2, PHP 5.2.6, and GD 2.0.34 on Linux (MediaTemple Dedicated Virtual box).
FWIW, when selecting an image within CKFinder, the full version does show up in CKEditor's image dialog.
Thanks for any help!
The directory permissions are set to 777.
I'm running Apache 2, PHP 5.2.6, and GD 2.0.34 on Linux (MediaTemple Dedicated Virtual box).
FWIW, when selecting an image within CKFinder, the full version does show up in CKEditor's image dialog.
Thanks for any help!
Re: Thumbnail generation not working in CKFinder 1.4.
I'm running Apache 2, PHP 5.2.6, and GD 2.0.34 on Linux as well.
Re: Thumbnail generation not working in CKFinder 1.4.
I disabled PHP 'Safe Mode' in Plesk for this particular domain and the thumbnails work fine!
Hope this helps!
Re: Thumbnail generation not working in CKFinder 1.4.
apache2, PHP 5.2.8 (safe_mode Off), GD 2.0.34, OpenBSD 4.5 i386
Re: Thumbnail generation not working in CKFinder 1.4.
I have the same problem. I'm using SunOS, Apache 2.0, CKFinder 1.4.1 and Wygwam. Safe Mode is on and by my provider's policy I can't turn it off, alas.
I also have one other problem which I wonder whether might be Safe Mode-related: I'm not able to create subfolders in CKFinder browse mode. More discussion and a screenshot at: http://getsatisfaction.com/brandonkelly ... _in_wygwam
Re: Thumbnail generation not working in CKFinder 1.4.
I have the same issue. File uploads and is there but no thumbnail is generated. It also doesn't create the _thumbs folder for me. I created that and its made a folder called "Images" inside when I upload an image, but this folder is then empty.
I am running
test.jpg is in my files/images directory (uploaded view ckfinder)
I have edited Thumbnail.php to add
echo "sdgdgd";
ini_set('display_errors', 1);
error_reporting(E_ALL);
at the start of the send response function. It echos sdgdgd to my screen but shows 0 errors. If I try to echo $this->_currentFolder it gives an error so I know that the error displaying is definitely working.
Throwing in a load of echos I've discovered that it thinks my thumbnail setting is disabled.
if (!$_thumbnails->getIsEnabled()) {
echo "thumbs disabled";
$this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_THUMBNAILS_DISABLED);
}
This shouldn't be the case...
$config['Thumbnails'] = Array(
'url' => $baseUrl . '_thumbs',
'directory' => $baseDir . '_thumbs',
'enabled' => true,
'directAccess' => false,
'maxWidth' => 100,
'maxHeight' => 100,
'bmpSupported' => false,
'quality' => 80);
So I remove this check and it continues down. Gets as far as the createFile function.
case 'image/jpeg':
{
echo "<br/>1";
if (@imagetypes() & IMG_JPG) {
echo "<br/>2";
$oImage = @imagecreatefromjpeg($sourceFile) ;
} else {
echo "<br/>3";
$ermsg = 'JPEG images are not supported';
}
}
break;
I get 1 but neither 2 or 3. Removed @ and get
Fatal error: Call to undefined function imagetypes() in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\tlbase\ckfinder\core\connector\php\php5\CommandHandler\Thumbnail.php on line 198
What the hell is going on with this code? I just seems like complete crap. What am I doing wrong here? Can someone confirm that thumbnails actually do work?
Re: Thumbnail generation not working in CKFinder 1.4.
Re: Thumbnail generation not working in CKFinder 1.4.
Wow.. you make a lot of work to debug it. I suppose that GD is missing in your PHP installation:
http://www.php.net/gd
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Thumbnail generation not working in CKFinder 1.4.
Thank you, that has fixed the problem. This seems to be a common issue. Perhaps it should mention in the php installation page that gd2 needs to be enabled (Could do with a quick step 5 here: http://docs.cksource.com/CKFinder/Devel ... stallation for example)
Everything else seems to just work by dropping the files in and setting the config...
Re: Thumbnail generation not working in CKFinder 1.4.
Actually good point, thanks
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Thumbnail generation not working in CKFinder 1.4.
G.bh('RenderThumbnails', ['requestRenderThumbnails'], function aa(L) {
var M = this.hF.files;
if (!M[0]) return;
var N = function (aT) {
var bm = 0;
while (aT) {
bm += aT.o
ffsetTop;
aT = aT.offsetParent;
}
return bm;
},
TO
bm += aT.offsetTop;
Re: Thumbnail generation not working in CKFinder 1.4.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
I got same Issue what I did
I got same Issue what I did just view source and copy location of thumnail image from firebug
and past this URL into browser I got error in path of thumbnail
ckfinder/core/connector/php/connector.php?command=Thumbnail&type=Images¤tFolder=%2Fadventure%2F&langCode=en&hash=731e615f012fefc7&FileName=adventure-isle.jpg&fileHash=201205211840-10
I come to know that I am using wrong folder name of images with Capital I as "Images" rather it is "images" small i
Just Updated my config.php file as blow and it works fine for me.
$config['ResourceType'][] = Array(
'name' => 'images',
'url' => $baseUrl . 'images',
'directory' => $baseDir . 'images',
'maxSize' => 0,
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png',
'deniedExtensions' => '');