Author Topic: After O.S. upgrade I cannot see image list on insert/edit image form  (Read 4096 times)

Offline Drakon

  • Jr. Member
  • **
  • Posts: 45
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.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: After O.S. upgrade I cannot see image list on insert/edit image form
« Reply #1 on: June 06, 2012, 08:09:50 AM »
It looks that content-type detection doesn't work. Check if you have php fileinfo extension installed and check mime_magic setting in Roundcube.

Offline Drakon

  • Jr. Member
  • **
  • Posts: 45
Re: After O.S. upgrade I cannot see image list on insert/edit image form
« Reply #2 on: October 16, 2012, 02:26:25 AM »
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.
« Last Edit: October 17, 2012, 10:03:46 AM by Drakon »

Offline Drakon

  • Jr. Member
  • **
  • Posts: 45
Re: After O.S. upgrade I cannot see image list on insert/edit image form
« Reply #3 on: October 18, 2012, 03:51:41 AM »
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?
« Last Edit: October 18, 2012, 03:53:24 AM by Drakon »

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: After O.S. upgrade I cannot see image list on insert/edit image form
« Reply #4 on: October 18, 2012, 04:01:18 AM »
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.

Offline Drakon

  • Jr. Member
  • **
  • Posts: 45
Re: After O.S. upgrade I cannot see image list on insert/edit image form
« Reply #5 on: October 18, 2012, 06:40:58 AM »
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':
Code: [Select]
$rcmail_config['mime_magic'] = '/usr/share/misc/magic';
The new path:
Code: [Select]
$rcmail_config['mime_magic'] = '/usr/share/misc';
Thanks Alec for your support!!!  ;)