<![CDATA[ Image thumbnails are not displaying in FCKeditor - MODX Community Forums]]> https://forums.modx.com/thread/?thread=46348 <![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-527086 I also had this issue of thumbnails not displaying after a migration.

The very strange is that both the manager/media/browser/mcpuk and the assets/plugin/tinymce3241 folders were same as those used by another website on the same hosting, the later working perfectly.
Of course I had set the MODx Configuration correctly.
The name of the pictures was displaying, but not the thumbnails themselves.

After having tried all tricks in this thread and spent one or two on this issue, it was still not working, even if clearing MODx and browser caches. Until I had the idea to also transfer the thumbnails that were created when I imported the pictures in the manager, those files whose name starts by ".thumb_". This solved the issue.

As you see, unfortunately, FCKEditor doesn't create the new thumbnails it requires if existing pictures don't have their.]]>
Jul Jun 17, 2015, 12:50 PM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-527086
<![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267935 e-stonia Aug 11, 2010, 05:20 PM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267935 <![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267934 e-stonia Jul 13, 2010, 05:38 PM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267934 <![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267933
cases.

On same hosting there’s two same version (1.0.3) MODx working fine. One in

subdirectory works just fine (creating/showing .thumbnails) and one in

root directory doesn’t create .thumbnail files.

No thumbnails created and just absolutely nothing seen on editor - even no

placeholders so it just looks like the assets/images folder is empty. When

log in via FTP then the uploaded images are there (jpg, gif and png) but

.thumb images not there (my FTP shows hidden files so problem not there).

Correct permissions and correct server path as files upload.

Can’t be server issue as at same server everything works.

Also tried allstarone’s Thumbnail.php modification but that also didn’t

help:(]]>
e-stonia Jun 30, 2010, 04:55 PM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267933
<![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267932 Quote from: allstarone at Oct 03, 2007, 11:07 AM

Hi everyone,

I had the same problem, for me, it turned out to be a function which, for security reasons, is banned on our servers.

If you can’t see images in the file browser, you may want to try this:

Open the following file:

manager/media/browser/mcpuk/connectors/php/Commands/Thumbnail.php

Around line 98 - 100 should be the following bit of code:


                header("Content-type: $iconMime",true);
                readfile($icon);


Change it to this (providing you can use fopen):

		header("Content-type: $iconMime",true);
		//readfile($icon);
		$fp = @fopen($icon,"rb");
		fpassthru($fp);
		fclose($fp);


That got it working for me.

Chris Cook
www.leadingedgehosting.co.uk

Thanks for this. This solved my issue! My server was hardened by an outside company who disabled some php settings that posed a risk to the server which included magic mime due to "a hacker could compromise the server by uploading a .jpeg file as an executable". This work around worked perfectly and is apparantly much safer!

Thanks!
]]>
myan24 Nov 05, 2007, 09:59 AM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267932
<![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267931
I had the same problem, for me, it turned out to be a function which, for security reasons, is banned on our servers.

If you can’t see images in the file browser, you may want to try this:

Open the following file:

manager/media/browser/mcpuk/connectors/php/Commands/Thumbnail.php

Around line 98 - 100 should be the following bit of code:


                header("Content-type: $iconMime",true);
                readfile($icon);


Change it to this (providing you can use fopen):

		header("Content-type: $iconMime",true);
		//readfile($icon);
		$fp = @fopen($icon,"rb");
		fpassthru($fp);
		fclose($fp);


That got it working for me.

Chris Cook
www.leadingedgehosting.co.uk]]>
allstarone Oct 03, 2007, 06:07 AM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267931
<![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267930
I’ve got a problem with thumbnails/FCKEditor, too. However: it does create thumbnails, but not in all directories. Example: assets/images doesn’t work, but when I create a subfolder there, it works fine with that.
The funny (?) thing about that is that the same configuration works fine on another account on the same server. And I think it has also worked on this one before.

Any ideas?


/edit:
Works fine now. The reason was a file name which had some special chars (umlauts) in it (Anfänger.jpg).
This behaviour ought to be fixed in the future...]]>
yahooooo Oct 02, 2007, 06:19 AM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267930
<![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267929
to find out if you have the same problem try this: get the path of a thumbnail e.g.
[tt]http://www.yourwebsite.de/manager/media/browser/mcpuk/connectors/php/connector.php?Command=Thumbnail&Type=images&CurrentFolder=/icons/&FileName=seifenblasen.jpeg&ExtraParams=[/tt]

if you get an error message like this:
[tt]Fatal error: mime_magic could not be initialized, magic file /usr/share/file/magic.mime is not available in /yourpath/manager/media/browser/mcpuk/connectors/php/Commands/Thumbnail.php on line 108[/tt]
you’ve the same misconfiguration as me...

on my system was a php configuration problem. there was a wrong path to the magic.mime file (php.ini »mime_magic.magicfile«). I’ve read in another forum that the file is stored in a subfolder. in my configuration it was [tt]/usr/share/file/magic.mime[/tt] but it is in [tt]/usr/share/misc/file/magic.mime[/tt].]]>
CBieser Aug 08, 2006, 11:21 AM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=3#dis-post-267929
<![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=2#dis-post-267928
Im glad Im with shosting.co.uk! (Blatant plug intended, nice site design btw)

J]]>
0ad Apr 11, 2006, 04:17 AM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=2#dis-post-267928
<![CDATA[Re: Image thumbnails are not displaying in FCKeditor]]> https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=2#dis-post-267927
This morning I copied the image URL into a web browser

http://www.cheapflightsguy.com/manager/media/browser/mcpuk/connectors/php/connector.php?Command=Thumbnail&Type=images&CurrentFolder=/&FileName=headimage3.jpg&ExtraParams=

And it came up with an error about magic.mime not being installed so I added the following section into my php.ini on the webserver and it works perfectly now smiley smiley smiley

[mime.magic]
mime_magic.magicfile = "c:\php\magic.mime"

Anyone trying this dont forget to restart IIS after changing the PHP.INI

Thanks]]>
onesmarthost Apr 11, 2006, 02:23 AM https://forums.modx.com/thread/46348/image-thumbnails-are-not-displaying-in-fckeditor?page=2#dis-post-267927