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().
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | mb_strtolower_warning_1266512-2.patch | 323 bytes | nikunjkotecha |
| #1 | 1266512.patch | 388 bytes | MaxWesten |
Comments
Comment #1
MaxWesten commentedPatch attached
Comment #2
13rac1 commentedIf a module is passing incorrect data, the module should be fixed. I don't think this is a core problem.
Comment #3
MaxWesten commentedI 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.
Comment #4
marcingy commentedThe issue is with contrib, the contrib module needs to be indentified and fixed. Core does not baby sit broken code.
Comment #5
nikunjkotechaadding patch to make it more useful and return array or the object as is instead of ''