+ Reply to Thread
Results 1 to 5 of 5

Thread: MarkasJunk2 - wrong datatype error in log

  1. #1
    internalkernel's Avatar
    internalkernel is offline Registered User
    Join Date
    Jan 2010
    Posts
    25
    Downloads
    4
    Uploads
    0

    Default MarkasJunk2 - wrong datatype error in log

    I upgraded to the latest SVN today... and I have this error in my logs:

    [Sat Feb 13 11:39:47 2010] [error] [client xxx.xxx.xxx.xxx] PHP Warning: array_search() [<a href='function.array-search'>function.array-search</a>]: Wrong datatype for second argument in /var/www/roundcube/plugins/markasjunk2/markasjunk2.php on line 35, referer: https://mail.mydomain.com/?_task=mail

    I also tried upgrading to the latest markasjunk2 plugin in git as well.

    It seems to be referencing this array:

    Code:
    if ($flag = array_search($rcmail->config->get('markasjunk2_ham_flag'), $GLOBALS['IMAP_FLAGS']))
    But, I can't seem to make heads or tails of that... I haven't actually tested whether the plug in still works or not (haven't had to, yet). Any help would be appreciated...
    Thanks

  2. #2
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,206
    Downloads
    6
    Uploads
    0

    Default

    This was caused by recent changes in the SVN, a fix will be made once bugs in those recent changes are resolved. If you want to try the plugin try using it with r3257 of the RC trunk, this was before changes.
    Roundcube Patches: Sieverules, SpamAssassin Prefs, and more…

  3. #3
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,206
    Downloads
    6
    Uploads
    0

    Default

    this error should be fixed in the repo version now.
    Roundcube Patches: Sieverules, SpamAssassin Prefs, and more…

  4. #4
    internalkernel's Avatar
    internalkernel is offline Registered User
    Join Date
    Jan 2010
    Posts
    25
    Downloads
    4
    Uploads
    0

    Default

    And that it is... tested against your git. No more errors...

    Thanks for the work, I definitely appreciate your plugins...

  5. #5
    Kamik is offline Roundcube Newcomer
    Join Date
    May 2008
    Posts
    1
    Downloads
    3
    Uploads
    0

    Default

    RC - Revision: 3359

    Again the same error?

    Code:
    PHP Warning:  array_search() [<a href='function.array-search'>function.array-search</a>]: Wrong datatype for second argument in xxxxxx/roundcube/plugins/markasjunk2/markasjunk2.php on line 35
    Edit: sorry, markasjunk2 was not last version. update from repo and ok!
    Last edited by Kamik; 03-14-2010 at 07:27 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts