Author Topic: MarkasJunk2 - wrong datatype error in log  (Read 6387 times)

Offline internalkernel

  • Jr. Member
  • **
  • Posts: 25
MarkasJunk2 - wrong datatype error in log
« 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:

Code: [Select]
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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
MarkasJunk2 - wrong datatype error in log
« Reply #1 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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
MarkasJunk2 - wrong datatype error in log
« Reply #2 on: February 14, 2010, 09:52:33 AM »
this error should be fixed in the repo version now.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline internalkernel

  • Jr. Member
  • **
  • Posts: 25
MarkasJunk2 - wrong datatype error in log
« Reply #3 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...

Offline Kamik

  • Newbie
  • *
  • Posts: 1
MarkasJunk2 - wrong datatype error in log
« Reply #4 on: March 14, 2010, 03:17:20 PM »
RC - Revision: 3359

Again the same error?

Code: [Select]
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 Edit: March 14, 2010, 03:27:05 PM by Kamik »