Author Topic: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.  (Read 13160 times)

Offline neilh

  • Newbie
  • *
  • Posts: 1
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

Offline cbernardi

  • Newbie
  • *
  • Posts: 7
neilh: are you referring to new emails showing in the list but clicking on Inbox does nothing?? See attached image.

Offline jprl12

  • Newbie
  • *
  • Posts: 6
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
Jean-Philippe Rivard Lauzier
iWeb Technologies
http://iweb.com

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
I not get this problem, are there any errors in your error logs?

Offline jprl12

  • Newbie
  • *
  • Posts: 6
I have some errors in CSS files (common.css / mail.css) ... But, only some Warnings in Firefox ...
Jean-Philippe Rivard Lauzier
iWeb Technologies
http://iweb.com

Offline jprl12

  • Newbie
  • *
  • Posts: 6
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
Jean-Philippe Rivard Lauzier
iWeb Technologies
http://iweb.com

Offline jprl12

  • Newbie
  • *
  • Posts: 6
Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
« Reply #6 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 ...
Jean-Philippe Rivard Lauzier
iWeb Technologies
http://iweb.com

Offline kevin_ansfield

  • Newbie
  • *
  • Posts: 4
Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
« Reply #7 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.

Offline lond

  • Newbie
  • *
  • Posts: 1
Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
« Reply #8 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

Offline jharris3434

  • Jr. Member
  • **
  • Posts: 11
Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
« Reply #9 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.

Offline wizard

  • Newbie
  • *
  • Posts: 4
Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
« Reply #10 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

Offline vext

  • Newbie
  • *
  • Posts: 1
Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
« Reply #11 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.


Offline jharris3434

  • Jr. Member
  • **
  • Posts: 11
Re: Clicking on Folder Link doesn't do anything, right-clicking -> Open does.
« Reply #12 on: February 21, 2008, 12:20:26 PM »
vext's solution does not solve my problem. It is still unresolved.

Offline jharris3434

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

Offline jethroed

  • Newbie
  • *
  • Posts: 1
I occur the same problem.
Is there anyone coild help.

Thanks