Roundcube Community Forum

Release Support => Pending Issues => Topic started by: jordao on January 15, 2008, 09:20:56 PM

Title: can't view attachments
Post by: jordao on January 15, 2008, 09:20:56 PM
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
Title: Re: can't view attachments
Post by: mr_serge on January 17, 2008, 01:44:58 PM
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
Title: Re: can't view attachments
Post by: jordao on January 17, 2008, 07:14:24 PM
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 !!!
 
Title: Re: can't view attachments
Post by: mr_serge on January 17, 2008, 11:01:55 PM
I still can't understand -- why someone could even think about such idea of dealing with attachments?
Title: Re: can't view attachments
Post by: malc on January 29, 2008, 09:31:48 PM
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ú
Title: Re: can't view attachments
Post by: wizard on February 14, 2008, 02:40:11 AM
Can someone confirm if that fix by malc works and what file he is editing???