Getting the following error, probably due to some module passing the wrong data to this function.

Warning: mb_strtolower() expects parameter 1 to be string, array given in drupal_strtolower() (line 477 of C:\wamp\www\drupal7\san\site\includes\unicode.inc).

Check for a string, before passing to mb_strtolower().

Comments

MaxWesten’s picture

Status: Active » Needs review
StatusFileSize
new388 bytes

Patch attached

13rac1’s picture

Status: Needs review » Needs work

If a module is passing incorrect data, the module should be fixed. I don't think this is a core problem.

MaxWesten’s picture

I agree that the problem lies in incorrect passing of parameters.
But core api functions should check the input types if it would generate fatals or warnings if not correctly used imo.

marcingy’s picture

Status: Needs work » Closed (won't fix)

The issue is with contrib, the contrib module needs to be indentified and fixed. Core does not baby sit broken code.

nikunjkotecha’s picture

Issue summary: View changes
StatusFileSize
new323 bytes

adding patch to make it more useful and return array or the object as is instead of ''