Roundcube Community Forum

Release Support => Pending Issues => Topic started by: neilh on March 13, 2007, 08:51:54 AM

Title: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: neilh on March 13, 2007, 08:51:54 AM
Hi there,

Please excuse me if this has already been covered somewhere; I have looked fairly extensively for the answer and not found it though!

I am trying to get a roundcube install up and running, but the problem I am encountering is a lot of the back-end AJAX functionality isn't actually doing much I suspect. I have tested on IE7, Opera and Firefox, with no luck.

When you click on a Folder on the left hand side, to change to that folder, the "Loading..." messages comes up for a second or so, but no mails are shown in the folder, even though they are there. However, if you right-click the link, and choose Open, you get the list - presumably via a non AJAX route. Also dragging/dropping messages to folders doesn't work in IE7 (but does seem to in Opera/FF). In addition to this, other things which rely on the javascript libraries such as sorting aren't working either. Anyone got any ideas?

Here's some info:

* I am using a version I got from SVN on 7th March 2007
* The IMAP server it's connecting to is Courier IMAPd
* RoundCube Cacheing is turned off!

Here is my main.inc.php, with some details changed to protect the guilty!!

Code: [Select]
<?php

/*
 +-----------------------------------------------------------------------+
 | Main configuration file                        |
 |                                    |
 | This file is part of the RoundCube Webmail client           |
 | Copyright (C) 2005, RoundCube Dev. - Switzerland           |
 | Licensed under the GNU GPL                      |
 |                                    |
 +-----------------------------------------------------------------------+

*/

$rcmail_config = array();


// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
$rcmail_config['debug_level'] = 1;

// enable caching of messages and mailbox data in the local database.
// this is recommended if the IMAP server does not run on the same machine
$rcmail_config['enable_caching'] = FALSE;

// lifetime of message cache
// possible units: s, m, h, d, w
$rcmail_config['message_cache_lifetime'] = '10d';

// automatically create a new RoundCube user when log-in the first time.
// a new user will be created once the IMAP login succeeds.
// set to false if only registered users can use this service
$rcmail_config['auto_create_user'] = TRUE;

// the mail host chosen to perform the log-in
// leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL connection, enter ssl://hostname:993
$rcmail_config['default_host'] = 'localhost';

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 143;

// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['username_domain'] = '';

// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['mail_domain'] = 'mail.blah.com';

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '';

// Query to resolve user names and e-mail addresses from the database
// %u will be replaced with the current username for login.
// The query should select the user's e-mail address as first col
$rcmail_config['virtuser_query'] = 'select Address from MailUsers,MailUserMap,EmailAddressMap,EmailAddresses where MailUsers.id= MailUser_id && MailUserMap.E
mailNode_id=EmailAddressMap.EmailNode_id && EmailAddresses.id=EmailAddress_id && MailServer_id=5 && Username=\'%u\''
;

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = '';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 25;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

// Log sent messages
$rcmail_config['smtp_log'] = TRUE;

// these cols are shown in the message list
// available cols are: subject, from, to, cc, replyto, date, size, encoding
$rcmail_config['list_cols'] = array('subject''from''date''size');

// relative path to the skin folder
$rcmail_config['skin_path'] = 'skins/default/';

// use this folder to store temp files (must be writebale for apache user)
$rcmail_config['temp_dir'] = 'temp/';

// use this folder to store log files (must be writebale for apache user)
$rcmail_config['log_dir'] = 'logs/';

// session lifetime in minutes
// $rcmail_config['session_lifetime'] = 10;
$rcmail_config['session_lifetime'] = 30;

// check client IP in session athorization
$rcmail_config['ip_check'] = TRUE;

// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
$rcmail_config['des_key'] = '\}-%v: $Tf@R/a &vLQF\'Og-';

// the default locale setting
$rcmail_config['locale_string'] = 'en';

// use this format for short date display

$rcmail_config['date_short'] = 'D H:i';

// use this format for detailed date/time formatting
$rcmail_config['date_long'] = 'd.m.Y H:i';

// use this format for today's date display
$rcmail_config['date_today'] = 'H:i';

// add this user-agent to message headers when sending
$rcmail_config['useragent'] = 'RoundCube Webmail/0.1b';

// use this name to compose page titles
$rcmail_config['product_name'] = 'RoundCube Webmail';

// only list folders within this path
//$rcmail_config['imap_root'] = 'INBOX.';

// store draft message is this mailbox
// leave blank if draft messages should not be stored
$rcmail_config['drafts_mbox'] = 'Drafts';

// store spam messages in this mailbox
$rcmail_config['junk_mbox'] = 'Junk E-mail';

// store sent message is this mailbox
// leave blank if sent messages should not be stored
$rcmail_config['sent_mbox'] = 'Sent Items';

// move messages to this folder when deleting them
// leave blank if they should be deleted directly
$rcmail_config['trash_mbox'] = 'Deleted Items';

// display these folders separately in the mailbox list.
// these folders will automatically be created if they do not exist
#$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
$rcmail_config['default_imap_folders'] = array('INBOX','Drafts''Sent Items''Junk E-mail''Clean E-mail','Deleted Items');

// protect the default folders from renames, deletes, and subscription changes
$rcmail_config['protect_default_folders'] = TRUE;

// Set TRUE if deleted messages should not be displayed
// This will make the application run slower
$rcmail_config['skip_deleted'] = FALSE;

// Set true to Mark deleted messages as read as well as deleted
// False means that a message's read status is not affected by marking it as deleted
$rcmail_config['read_when_deleted'] = TRUE;

// When a Trash folder is not present and a message is deleted, flag
// the message for deletion rather than deleting it immediately. Setting this to
// false causes deleted messages to be permanantly removed if there is no Trash folder
$rcmail_config['flag_for_deletion'] = TRUE;

// Make use of the built-in spell checker. It is based on GoogieSpell.
$rcmail_config['enable_spellcheck'] = TRUE;

// For a locally installed Nox Spell Server, please specify the URI to call it.
// Get Nox Spell Server from [url]http://orangoo.com/labs/?page_id=72[/url]
// Leave empty to use the Google spell checking service, what means
// that the message content will be sent to Google in order to check spelling
$rcmail_config['spellcheck_uri'] = '';

// These languages can be selected for spell checking.
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
// Leave empty for default set of Google spell check languages
$rcmail_config['spellcheck_languages'] = NULL;

// path to a text file which will be added to each sent message
// paths are relative to the RoundCube root folder
$rcmail_config['generic_message_footer'] = '';

// this string is used as a delimiter for message headers when sending
// leave empty for auto-detection
$rcmail_config['mail_header_delimiter'] = NULL;

// in order to enable public ldap search, create a config array
// like the Verisign example below. if you would like to test,
// simply uncomment the Verisign example.
/**
 * example config for Verisign directory
 *
 * $rcmail_config['ldap_public']['Verisign'] = array('hosts'     => array('directory.verisign.com'),
 *                          'port'     => 389,
 *                          'base_dn'    => '',
 *                          'search_fields' => array('Email' => 'mail', 'Name' => 'cn'),
 *                          'name_field'  => 'cn',
 *                          'mail_field'  => 'mail',
 *                          'scope'     => 'sub',
 *                          'fuzzy_search' => 0);
 */

// don't allow these settings to be overriden by the user
$rcmail_config['dont_override'] = array();

// list of configuration option names that need to be available in Javascript.
$rcmail_config['javascript_config'] = array('read_when_deleted''flag_for_deletion');

// try to load host-specific configuration
$rcmail_config['include_host_config'] = FALSE;


/***** these settings can be overwritten by user's preferences *****/

// show up to X items in list view
$rcmail_config['pagesize'] = 25;

// use this timezone to display date/time
$rcmail_config['timezone'] = 0;

// daylight savings are On
$rcmail_config['dst_active'] = TRUE;

// prefer displaying HTML messages
$rcmail_config['prefer_html'] = TRUE;

// compose html formatted messages by default
$rcmail_config['htmleditor'] = TRUE;
// show pretty dates as standard
$rcmail_config['prettydate'] = TRUE;

// default sort col
$rcmail_config['message_sort_col'] = 'date';

// default sort order
$rcmail_config['message_sort_order'] = 'DESC';

// save compose message every 300 seconds (5min)
$rcmail_config['draft_autosave'] = 300;

// default setting if preview pane is enabled
$rcmail_config['preview_pane'] = FALSE;

// end of config file
?>

Any help would be much appreciated!

Thanks,

Neil

Neil Hamilton

Edited by SKaero: added code tags
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: cbernardi on March 16, 2007, 09:32:55 PM
neilh: are you referring to new emails showing in the list but clicking on Inbox does nothing?? See attached image.
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jprl12 on October 28, 2007, 03:07:05 PM
I have exactly the same problem!! I search on the forum, but no result ... :(

Roundcube is really cool and work fine ... except these links ...

Regards,
Jean-Philippe
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: SKaero on October 28, 2007, 08:17:25 PM
I not get this problem, are there any errors in your error logs?
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jprl12 on October 31, 2007, 03:33:21 PM
I have some errors in CSS files (common.css / mail.css) ... But, only some Warnings in Firefox ...
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jprl12 on October 31, 2007, 03:43:02 PM
I install Roundcube on cPanel (direct access in the control panel) and I think it's a problem with cPanel ... I already install the software on a normal account and this work great ... I know that cPanel must have in all time, a full path in the script : /usr/local/cpanel/base/3rdparty/roundcube/ ... Maybe a problem in the different path in Roundcube ...

Regards,
Jean-Philippe
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jprl12 on November 04, 2007, 01:12:30 PM
Nobody could help me?

I try to install v0.1-rc1 and the link work great (but now, I have a problem with the Folder title bar ...) So, it's something between v0.1-rc1 and v0.1-rc2 ...
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: kevin_ansfield on November 15, 2007, 08:27:37 AM
Quote from: jprl12
Nobody could help me?

I try to install v0.1-rc1 and the link work great (but now, I have a problem with the Folder title bar ...) So, it's something between v0.1-rc1 and v0.1-rc2 ...
Exactly the same issue here. Downgraded back to RC1 to get the folder links working again, but now the Folders title appears at the top of the page, too wide and behind the logo.

Would be nice for a developer to at least acknowledge this as a bug.
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: lond on December 03, 2007, 11:52:52 AM
Hi!

I have the same problem with RC2.

My configuration is Firefox and IE-browser, winXP, mySQL, PHP5, Jana web, mail and IMAP-server.

In RC1 i can't see the header in my emails but the folder shows up fine.

// lond
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jharris3434 on February 12, 2008, 12:55:42 PM
I am also having this problem. I'm running:
PHP 5.2.5, MySQL 5, hMailServer, and IIS6 on W2K3 server. Using Firefox 2.0.0.12.

The problem I'm having in detail is this:

Emails load when I do this:
-When I start up Roundcube
-When I click Email at the very top, next to Address Book
-When I click the Roundcube logo at the upper left
-When I right-click on a folder link, and open in new tab/window

Emails do NOT load when I do this:
-When I click any folder links on the left
-When I try to sort by any column
-When I try to scroll to a new page of emails
-When I search

When they aren't loading, I do get a normal loading indicator, but then no emails load.

This completely prevents me from using Roundcube (and suggesting it). Would someone please take a minute and help all the people who can't use Roundcube due to this? It is very much appreciated.
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: wizard on February 14, 2008, 02:30:33 AM
I am having the same problem. RC1 was giving problems with attachment viewing / opening so i decided to install RC2 (Running Cpanel 11 with courier etc..)

RC2 is now giving the problems where clicking on the folder shows no emails. Tested this in Opera,IE7 and Firefox.I also get a loading indicator but nothing loads up.
--
PHP    PHP Version: 4.4.7
DataBase    MYSQL Version: 4.1.22-standard
Firefox Version 2.0.0.12

This and the current opening of a PDF attachment file problem is almost enough to make me want to uninstall this now...

Please can someone advise fixes. >:(
Thanks
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: vext on February 20, 2008, 03:10:41 PM
Found this on HostGeekZ from someone named Ahmed:


just comment the following code in index.php in cd /usr/local/cpanel/base/roundcube


like this:


// check client X-header to verify request origin
//if ($OUTPUT->ajax_call)
//{
// if (empty($CONFIG['devel_mode']) && !rc_request_header('X-RoundCube-Referer'))
// {
// header('HTTP/1.1 404 Not Found');
// die("Invalid Request");
// }
//}


It worked like a charm for me.

Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jharris3434 on February 21, 2008, 12:20:26 PM
vext's solution does not solve my problem. It is still unresolved.
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jharris3434 on March 05, 2008, 02:23:22 PM
Can someone take a look at this issue? My roundcube implementation has been on hold for weeks waiting for someone to offer a solution to this problem and I know others are having this problem as well. I upgraded to 0.1 stable; that did not solve the problem either.
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jethroed on March 06, 2008, 09:46:33 AM
I occur the same problem.
Is there anyone coild help.

Thanks
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: LucasG on March 08, 2008, 12:47:46 PM
Quote from: vext
Found this on HostGeekZ from someone named Ahmed:


just comment the following code in index.php in cd /usr/local/cpanel/base/roundcube


like this:


// check client X-header to verify request origin
//if ($OUTPUT->ajax_call)
//{
// if (empty($CONFIG['devel_mode']) && !rc_request_header('X-RoundCube-Referer'))
// {
// header('HTTP/1.1 404 Not Found');
// die("Invalid Request");
// }
//}


It worked like a charm for me.



This is definitely a bug and commenting this part of the code definitely helped me solve the problem temporarily. Hopefully RoundCube devs will release a fix soon as it's something critical.
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jharris3434 on March 10, 2008, 12:14:00 PM
Update: Per guidance by a couple of the devs, I upgraded to 0.1 stable again, this time using the installer. That solved my problem.
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: LucasG on March 10, 2008, 12:29:33 PM
How did you do the installation?
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: jharris3434 on March 10, 2008, 01:20:58 PM
Navigate (in your browser) to [rc]/installer/welcome.html, then follow the instructions.
Title: Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: Azure on April 21, 2008, 10:45:46 PM
The "commenting out" worked for me as well... Thanks!
Title: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: Penumbra on April 30, 2009, 01:13:50 PM
I just started seeing this problem as well, and the hack didn't work, nor did upgrading to the newest RC Release (0.2.1).

It seems to me, although this could be a red herring, that it began after my inbox grew past 900 unread messages.  

Which, for me, is normal.

When I used SquirrelMail - I had filters and the like setup to move my subscribed lists and daily incoming mail to numerous other folders (like .. well .. most email clients let you do [thunderbird, squirrelmail, outlook, xmail, elm, etc etc]).

Now that I don't have that ability - my inbox grows quite fast, and within a week easily expands past 1000 messages.

Is it possible the AJAX message is reaching a maximum length and bombing?

There are no errors in "logs/errors"

EDIT: More Information
I turned the debug console on, and now when the failure happens I can see what it does, but not why it does it.

When I click the "Inbox" - the return from the AJAX call is all wrong - it is returning the index page from my default host NOT the configured virtual host this application responds to.  I can replicate it by taking the HTTP Request that I see in the console and applying it to my webmail URL.  I tested this by reconfiguring my index.html on my default host with a simple page - which from the debug below we can see is being returned by AJAX.

Code: [Select]
--------------------------------------
HTTP request: ./?_task=mail&_action=list&_mbox=INBOX&_page=1&_refresh=1&_remote=1
--------------------------------------
<center><link rel=stylesheet href=http://credoaction.com/widgets/widgetstyle.css
type=text/css media=screen /><script language=javascript
src=http://credoaction.com/widgets/widget.js></script>
<script language=javascript>WriteBushCountdown()</script>


But, the very next thing I do is click another folder with far less information in it, and the response looks more normal:
Code: [Select]

--------------------------------------
HTTP request: ./?_task=mail&_action=list&_mbox=ham&_page=1&_refresh=1&_remote=1
--------------------------------------
/** ajax response [30/Apr/2009 01:21:33 -0400] **/
this.set_env({mailbox:'ham',quota:1,delimiter:'.',trash_mailbox:'Trash',drafts_mailbox:'Drafts',junk_mailbox:'spam',messagecount:1,pagecount:1});
this.set_pagetitle('**Scrubbed** :: ham');
this.set_rowcount('Messages 1 to 1 of 1');
this.set_mailboxname('ham');
this.set_message_coltypes(['from','subject','date','size','flag']);
this.add_message_row('1',{from:'Amy Goodman<\/span>',subject:'[SPAM] Democracy Now! Needs You<\/a>',date:'12.12.2007 20:22',size:'100 KB'},{deleted:0,unread:0,replied:0,forwarded:0,flagged:0},1,0);
this.set_unread_count('ham',0,0);

This tells me that either 1 of 2 things is going on.  Either Apache forgets how to forward requests to a virtual host when RoundCube has a large list to transfer (unlikely) or -- When RoundCube tries to refresh a very large list - it fails, and the result is a forward to something that does NOT correspond to my virtual host (which is only http://mail.some_host.com/) causing the refresh to fail.

Please advise.

P
Title: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: Penumbra on May 08, 2009, 02:02:27 PM
Quote from: Penumbra;18834

This tells me that either 1 of 2 things is going on.  Either Apache forgets how to forward requests to a virtual host when RoundCube has a large list to transfer (unlikely) or -- When RoundCube tries to refresh a very large list - it fails, and the result is a forward to something that does NOT correspond to my virtual host (which is only http://mail.some_host.com/) causing the refresh to fail.


Well - I went into my inbox (when I could see it) and took the machete to a ton of messages - and POOF it started working again.

But now - a week later, my inbox is beyond what it was when I had issues - yet my mailbox works fine.  This leaves me to wonder  -- what if there's a bad message title that has values that cause the AJAX call to fizzle?  If that's true - it seems that this could cause a hole that a savvy hacker could exploit - and thus should be high on your list for fixing.

Is RoundCube currently being developed still?  
Are the developers active on the forums?  
Do they read the issues forum? - as I've noted a marked lack of response here.

Penumbra
Title: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
Post by: nub4life on May 12, 2009, 01:34:18 PM
I too am getting the same error. I looked through my error log and I kept getting this error:

[12-May-2009 13:10:01 -0400] DB Error: _doQuery: [Error message: Could not execute statement]
[Last executed query: PREPARE mdb2_statement_mysql_5e49978c06074e681893cd996840907cde1215cc5 FROM 'UPDATE cache\n         SET    created=now(), data=?\n         WHERE  user_id=?\n         AND    cache_key=?']
[Native code: 2006]
[Native message: MySQL server has gone away]
 in /roundcube/program/include/rcube_mdb2.php on line 255 (GET /roundcube/?_task=mail&_action=getunread&_remote=1)
[12-May-2009 13:10:01] PHP Fatal error:  Call to undefined method rcube_json_output::template_exists() in /roundcube/program/steps/error.inc on line 99


The inability to click anything only seems to happen once in awhile, which makes me think that roundcube is doing something in the background. The mailbox does have a lot of emails, but they are not in the inbox. There are a lot of folders (around 50), and it is in a nested structure.

I tried the hack and it didn't work. Anyone got any ideas? I'm using google apps.