Roundcube Community Forum

 

After O.S. upgrade I cannot see image list on insert/edit image form

Started by Drakon, June 06, 2012, 06:24:57 AM

Previous topic - Next topic

Drakon

Hi crew!

After OS upgrade (Ubuntu Server) I cannot see image list on insert/edit image form (TinyMCE component). I have created new e-mail (HTML format) and attached some pictures (JPG,PNG) but I cannot see the dropdown field with images list. I tried this with Firefox 12, Google Chrome and Internet Explorer.

I think that the problem is on Apache config and the upgrade has changed this possibly.

Can you help me?

Thanks in advance!

Jose.

alec

It looks that content-type detection doesn't work. Check if you have php fileinfo extension installed and check mime_magic setting in Roundcube.

Drakon

I have php fileinfo correctly installed.

How I can check my mime_magic setting in Roundcube? I think I have default config:

Quote// Mimetypes supported by the browser.
// attachments of these types will open in a preview window
// either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
$rcmail_config['client_mimetypes'] = null;  # null == default

// mime magic database
$rcmail_config['mime_magic'] = '/usr/share/misc/magic';

// path to imagemagick identify binary
$rcmail_config['im_identify_path'] = null;

// path to imagemagick convert binary
$rcmail_config['im_convert_path'] = null;

// maximum size of uploaded contact photos in pixel
$rcmail_config['contact_photo_size'] = 160;

// Enable DNS checking for e-mail address validation
$rcmail_config['email_dns_check'] = false;

TinyMCE doesn't shows the image list with the files I have uploaded (JPGs) but when I put manually the physic filename created con 'temp' folder, for example, "rcmAttmnt1etv6i" the image is embedded correctly.

I have updated to 0.8.2 and Larry skin and I have the same problem, cannot see image list (screenshot).



Regards.

Drakon

With old default skin same problem. With 0.7.2 same problem.

Fileinfo library is correctly installed, I have test this with php code and works fine.

It's very strange.....  :-\

Can anyone to help us?

alec

If you know PHP you can debug rc_mime_content_type() function in program/include/rcube_shared.inc. It's the place where content-type detection is done. If it doesn't return "image/*" the file isn't displayed on images list in HTML editor.

Drakon

Alec, I solved the problem.

When we upgraded Ubuntu Server to 11.04 LTS version the path of mime misc database was changed.

The default configuration on './config/config.inc.php':
$rcmail_config['mime_magic'] = '/usr/share/misc/magic';

The new path:
$rcmail_config['mime_magic'] = '/usr/share/misc';

Thanks Alec for your support!!!  ;)