I get this error when I goto read the dblog page.
strtr() [function.strtr]: The second argument is not an array in /home/content/*/*/*/**********/html/includes/common.inc on line 891.
Invalid argument supplied for foreach() in /home/content/*/*/*/**********/html/includes/common.inc on line 874.
Comments
Comment #1
Richard Vallejo commentedI'm getting the same thing on the dblog page - I'm also getting an error regarding the strtr function (second argument not an array), but on line 106 of syslog.module after saving an Imagemenu item (imagemenu module). Not sure if the two are related? Either way...line 874/891 looks like its related to the t function (pulling strings from content for different potential uses ie translation/override) but I don't have the time right now to look deeper...
Comment #2
Starminder commentedsubscribing
Invalid argument supplied for foreach() in /usr/home/hoslo/public_html/includes/common.inc on line 874.
Comment #3
kaay commentedI am getting the same error.
warning: Invalid argument supplied for foreach() in /www/html/includes/common.inc on line 874.
warning: strtr(): The second argument is not an array in /www/html/includes/common.inc on line 891.
Might help to understand the problem:
I can create any content but when i try to update or create a new profile from the profile page and save it my browser show me blank page with no error. and of course didn't create/update the profile page.
Comment #4
guillaumeduveauSame, I see a lot of these errors in Drupal issues with different modules...
Comment #5
sylvaingirard commentedSame here...
Comment #6
Adrienne63 commentedFWIW - I've searched the forums and found several threads very close to this
... foreach & strstr errors thrown in common.inc, in and around the t() and l() functions.
My problem was the hook_perm in one of my own modules ... I'd missed off the "return" ... I was just creating the access permission string and not returning it.
This caused a ton of problems - and the symptom appeared to be a long way from the actual cause
I hope this is of help to someone else ! (maybe me in the future)
Comment #7
juampynr commentedDuplicated: #432148: Invalid argument supplied for foreach() in common.inc