Roundcube Community Forum

 

can't view attachments

Started by jordao, January 15, 2008, 09:20:56 PM

Previous topic - Next topic

jordao

Hi.

Everytime i click on attachments to open them, roundcube returns only strange and senseless text (see example image).

The following errors are writen onto the log directory:

[16-Jan-2008 01:58:13] PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jordao/public_html/cubo/config/main.inc.php:1) in /home/jordao/public_html/cubo/program/include/main.inc on line 76
[16-Jan-2008 01:58:13] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jordao/public_html/cubo/config/main.inc.php:1) in /home/jordao/public_html/cubo/program/steps/mail/get.inc on line 64
[16-Jan-2008 01:58:13] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jordao/public_html/cubo/config/main.inc.php:1) in /home/jordao/public_html/cubo/program/steps/mail/get.inc on line 65
[16-Jan-2008 01:58:13] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jordao/public_html/cubo/config/main.inc.php:1) in /home/jordao/public_html/cubo/program/steps/mail/get.inc on line 66
[16-Jan-2008 01:58:13] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jordao/public_html/cubo/config/main.inc.php:1) in /home/jordao/public_html/cubo/program/steps/mail/get.inc on line 67
[16-Jan-2008 01:58:13] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jordao/public_html/cubo/config/main.inc.php:1) in /home/jordao/public_html/cubo/program/steps/mail/get.inc on line 72
[16-Jan-2008 01:58:13] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jordao/public_html/cubo/config/main.inc.php:1) in /home/jordao/public_html/cubo/program/steps/mail/get.inc on line 73
[16-Jan-2008 01:58:13] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jordao/public_html/cubo/config/main.inc.php:1) in /home/jordao/public_html/cubo/program/steps/mail/get.inc on line 111

Can anyone please help me, because i can't view or download any type of attachments

mr_serge

It is a bug for IE users.
Please report it also in this thread, because I want to solve this problem in other way -- just by letting save attachments directly without opening them in new window:
http://roundcubeforum.net/forum/index.php?topic=2549.0

jordao

Hi.

It is not only with IE. I've tried it with firefox, and the same thing happens...

Although in firefox, if you right click it and choose "save target as", it will download it to a location in your computer, but only if when it ask you to save you delete the .html that happears on the end of the attachment filename.

Even weirder !!!
 

mr_serge

I still can't understand -- why someone could even think about such idea of dealing with attachments?

malc

disculpen pero tengo que escribirlo es español :-[

function rcube_language_prop($lang, $prop='lang')
 {
 global $INSTALL_PATH;
 static $rcube_languages, $rcube_language_aliases, $rcube_charsets;

// if (empty($rcube_languages))
//  @include($INSTALL_PATH.'program/localization/index.inc');
 
//  check if we have an alias for that language
// if (!isset($rcube_languages[$lang]) && isset($rcube_language_aliases[$lang]))
//  $lang = $rcube_language_aliases[$lang];
 
 // try the first two chars
// if (!isset($rcube_languages[$lang]) && strlen($lang)>2)
//  {
//  $lang = substr($lang, 0, 2);
//  $lang = rcube_language_prop($lang);
//  }

// if (!isset($rcube_languages[$lang]))
  $lang = 'es';

 // language has special charset configured
// if (isset($rcube_charsets[$lang]))
//  $charset = $rcube_charsets[$lang];
// else
  $charset = 'UTF-8';  


 if ($prop=='charset')
  return $charset;
 else
  return $lang;
 }

para ingles pon:

$lang = 'en';
y solucionado :D

saludos desde Perú

wizard

Can someone confirm if that fix by malc works and what file he is editing???