Author Topic: Errors in error-log...  (Read 12002 times)

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Errors in error-log...
« on: March 28, 2010, 06:58:15 PM »
I'm making a new server with roundcube and i saw strange errors in log.

Code: [Select]
**********************
[29-Mar-2010 00:52:30 +0200]: PHP Error: Failed to load config from /usr/local/www/roundcube/plugins//globaladdressbook/config.inc.php (GET /?_task=addressbook&_action=list&_source=global&_page=1&_remote=1&_=1269816701961&_unlock=1)
**********************
[29-Mar-2010 00:52:38 +0200]: PHP Error: Failed to load config from /usr/local/www/roundcube/plugins//globaladdressbook/config.inc.php (GET /?_task=addressbook&_action=keep-alive&_t=1269816710114&_remote=1&_=1269816710116&_unlock=0)
[29-Mar-2010 00:52:38 +0200]: PHP Error: Failed to load config from /usr/local/www/roundcube/plugins//globaladdressbook/config.inc.php (GET /?_task=addressbook&_action=list&_source=0&_page=1&_remote=1&_=1269816710768&_unlock=1)
**********************


(there much more....)
in middle of "**********************" are things written on one mouse click. I tried to find where is slash doubled but with no success.

Offline toetag

  • Jr. Member
  • **
  • Posts: 65
Errors in error-log...
« Reply #1 on: March 28, 2010, 08:51:59 PM »
are you trying to use the plugin "globaladdressbook"?  It looks to be extra slashes in the path "//globaladdressbook/config.inc.php".

what does your plugin line in the main.inc.php file look like?
<[ a desert to an irishman is an empty glass. ]>

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Errors in error-log...
« Reply #2 on: March 28, 2010, 09:07:21 PM »
Yes and yes i know that and my mail.inc.php is OK

Code: [Select]
$rcmail_config['plugins'] = array(
        additional_message_headers,
        archive,
        automatic_addressbook,
        calendar,
        #calendar_switch,
        contextmenu,
        copymessage,
        folderbuttons,
        forwardattachment,
        globaladdressbook,
        jquery,
        #managesieve,
        markasjunk2,
        #moreuserinfo,
        password,
        sieverules,
        sticky_notes,
        vcard_attach,
        zipdownload
);

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Errors in error-log...
« Reply #3 on: March 29, 2010, 03:19:01 AM »
Did you make the config for the globaladdressbook plugin? the plugin ships with a file "config.inc.php.dist". You must rename it to "config.inc.php" and set the config options as you wish.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Errors in error-log...
« Reply #4 on: March 29, 2010, 03:22:02 AM »
Yes i made it
« Last Edit: March 29, 2010, 05:38:23 AM by dziobak »

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Errors in error-log...
« Reply #5 on: March 29, 2010, 05:36:52 AM »
i have installed latest trunk and theres no problem with globaladdressbook , but...
theres another problem, now with markasjunk2
Code: [Select]
[29-Mar-2010 11:32:47] PHP Warning:  array_search() [<a href='function.array-search'>function.array-search</a>]: Wrong datatype for second argument in /usr/local/www/roundcube/plugins/markasjunk2/markasjunk2.php on line 35
[29-Mar-2010 11:32:50] PHP Warning:  array_search() [<a href='function.array-search'>function.array-search</a>]: Wrong datatype for second argument in /usr/local/www/roundcube/plugins/markasjunk2/markasjunk2.php on line 35
[29-Mar-2010 11:32:50] PHP Warning:  array_search() [<a href='function.array-search'>function.array-search</a>]: Wrong datatype for second argument in /usr/local/www/roundcube/plugins/markasjunk2/markasjunk2.php on line 35


my config.inc.php:
<?php

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

*/

// Learning driver
// Use an external process auch as salearn to learn from spam/ham messages. Default: null.
// Current possibilities: 'cmd_learn', 'dir_learn', 'email_learn'
$rcmail_config['markasjunk2_learning_driver'] = 'cmd_learn';

// Mark messages as read when reporting them as spam
$rcmail_config['markasjunk2_read_spam'] = true;

// Mark messages as unread when reporting them as ham
$rcmail_config['markasjunk2_unread_ham'] = false;

// When reporting a message as ham, if the orginial message is attached (like with SpamAssassin reports),
// detach the orginial message and move that to the INBOX, deleteing the spam report
$rcmail_config['markasjunk2_detach_ham'] = true;

// Add flag to messages marked as spam (flag will be removed when marking as ham)
// If you do not want to use message flags set this to null
$rcmail_config['markasjunk2_spam_flag'] = 'Junk';

// Add flag to messages marked as ham (flag will be removed when marking as spam)
// If you do not want to use message flags set this to null
$rcmail_config['markasjunk2_ham_flag'] = null;

// Write output from spam/ham commands to the log for debug
$rcmail_config['markasjunk2_debug'] = true;

// cmd_learn Driver options
// ------------------------
// The command used to learn that a message is spam
// The command can contain the following macros that will be expanded as follows:
//      %u is replaced with the username (from the session info)
//      %l is replaced with the local part (before the @) of the username (from the session info)
//      %d is replaced with the domain part (after the @) of the username (from the session info)
//      %f is replaced with the path to the message file (THIS SHOULD ALWAYS BE PRESENT)
// If you do not want run the command set this to null
$rcmail_config['markasjunk2_spam_cmd'] = '/usr/local/bin/sa-learn --spam --prefs-file=/var/mail/%d/%l/.spamassassin/user_prefs %f';

// The command used to learn that a message is ham
// The command can contain the following macros that will be expanded as follows:
//      %u is replaced with the username (from the session info)
//      %l is replaced with the local part (before the @) of the username (from the session info)
//      %d is replaced with the domain part (after the @) of the username (from the session info)
//      %f is replaced with the path to the message file (THIS SHOULD ALWAYS BE PRESENT)
// If you do not want run the command set this to null
$rcmail_config['markasjunk2_ham_cmd'] = '/usr/local/bin/sa-learn --ham --prefs-file=/var/mail/%d/%l/.spamassassin/user_prefs %f';

// dir_learn Driver options
// ------------------------
// The full path of the directory used to store spam (must be writable by webserver)
$rcmail_config['markasjunk2_spam_dir'] = null;

// The full path of the directory used to store ham (must be writable by webserver)
$rcmail_config['markasjunk2_ham_dir'] = null;

// The filename prefix
// The filename can contain the following macros that will be expanded as follows:
//      %u is replaced with the username (from the session info)
//      %l is replaced with the local part (before the @) of the username (from the session info)
//      %d is replaced with the domain part (after the @) of the username (from the session info)
//      %t is replaced with the type of message (spam/ham)
$rcmail_config['markasjunk2_filename'] = null;

// email_learn Driver options
// --------------------------
// The email address that spam messages will be sent to
// If you do not want run the command set this to null
$rcmail_config['markasjunk2_email_spam'] = null;

// The email address that ham messages will be sent to
// If you do not want run the command set this to null
$rcmail_config['markasjunk2_email_ham'] = null;

// Should the spam/ham message be sent as an attachment
$rcmail_config['markasjunk2_email_attach'] = true;

// The email subject
// The subject can contain the following macros that will be expanded as follows:
//      %u is replaced with the username (from the session info)
//      %l is replaced with the local part (before the @) of the username (from the session info)
//      %d is replaced with the domain part (after the @) of the username (from the session info)
//      %t is replaced with the type of message (spam/ham)
$rcmail_config['markasjunk2_email_subject'] = 'learn this message as %t';

?>
« Last Edit: March 29, 2010, 05:40:21 AM by dziobak »

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Errors in error-log...
« Reply #6 on: March 29, 2010, 08:37:01 AM »
To JohnDoh
Is Markasjunk2 working good when i use amavisd-new?