Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: internalkernel on February 13, 2010, 11:50:26 AM

Title: MarkasJunk2 - wrong datatype error in log
Post by: internalkernel on February 13, 2010, 11:50:26 AM
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() [function.array-search]: 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:

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
Title: MarkasJunk2 - wrong datatype error in log
Post by: JohnDoh on February 14, 2010, 07:13:43 AM
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.
Title: MarkasJunk2 - wrong datatype error in log
Post by: JohnDoh on February 14, 2010, 09:52:33 AM
this error should be fixed in the repo version now.
Title: MarkasJunk2 - wrong datatype error in log
Post by: internalkernel on February 14, 2010, 10:25:55 AM
And that it is... tested against your git. No more errors...

Thanks for the work, I definitely appreciate your plugins...
Title: MarkasJunk2 - wrong datatype error in log
Post by: Kamik on March 14, 2010, 03:17:20 PM
RC - Revision: 3359

Again the same error?

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!