Hi,
When you go to /user/*/edit check the delete image button, then add a new image and hit save you get:
Warning: strtr() [function.strtr]: The second argument is not an array in syslog_watchdog() (line 105 of /www/htdocs/modules/syslog/syslog.module).
Then when you go to /admin/reports/dblog, it falls over
Recoverable fatal error: Argument 2 passed to t() must be an array, string given, called in /www/www-staging/drupal.sandbox.sanger.ac.uk/htdocs/modules/dblog/dblog.admin.inc on line 265 and defined in t() (line 1458 of /www/www-staging/drupal.sandbox.sanger.ac.uk/htdocs/includes/bootstrap.inc).
Comments
Comment #1
stephenrobinson commentedWhen I debug syslog_watchdog
I get:
Which is a string, not an array.
Comment #2
stephenrobinson commentedComment #3
stephenrobinson commentedback traced to
watchdog(file_get_mimetype, wrapper getMimeType<pre>, image/jpeg</pre>) called at [/www/www-staging/drupal.sandbox.sanger.ac.uk/htdocs/includes/file.inc:2108]Comment #4
stephenrobinson commentedComment #5
stephenrobinson commentedJoining strings with a dot works better than a comma...
Comment #6
xjmGenerally this error is caused by a contrib module passing bad data to
watchdog(). Testing to see if I can reproduce the error here.Comment #7
xjmSo, I am unable to reproduce this image using just Drupal core. Steps I used:
admin/peopleand add a user. Save.user/5/editand add a user picture. Save.user/5/edit.No error is triggered.
So, we need more specific steps to reproduce. My guess it is being caused by a contrib module, so I'd suggest trying to determine which and moving this issue to that module's queue.
Comment #8
stephenrobinson commentedare you using 7.10, using a comma to join strings is a clear error, unless you have your warnings supressed and havnt checked your log.
The error is a typo in /includes/file.inc.
Parameter 3 must be an array anyway...
Comment #9
jhedstromClosing this out. It's been postponed at 'maintainer needs more info' for 4 years. Please re-open if this is still an issue.