RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > API Based Plugins

For more information about the ads and why they're here, please see the FAQ

Reply
  #1  
Old 02-13-2010, 03:50 PM
Registered User
 
Join Date: Jan 2010
Posts: 21
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-14-2010, 11:13 AM
Super Moderator
 
Join Date: May 2007
Posts: 802
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 & Plugins: Managesieve, SpamAssassin Prefs, and more…
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-14-2010, 01:52 PM
Super Moderator
 
Join Date: May 2007
Posts: 802
Default

this error should be fixed in the repo version now.
__________________
RoundCube Patches & Plugins: Managesieve, SpamAssassin Prefs, and more…
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 02-14-2010, 02:25 PM
Registered User
 
Join Date: Jan 2010
Posts: 21
Default

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

Thanks for the work, I definitely appreciate your plugins...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 03-14-2010, 06:17 PM
Roundcube Newcomer
 
Join Date: May 2008
Posts: 1
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 06:27 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2006-2008 RoundCube Webmail Community