Error:
* warning: Invalid argument supplied for foreach() in /includes/common.inc on line 874.
* warning: strtr() [function.strtr]: The second argument is not an array in /includes/common.inc on line 891.
Occured when updating an attribute.
| Comment | File | Size | Author |
|---|---|---|---|
| storm-error-screenshot.PNG | 9.06 KB | Magnity |
Comments
Comment #1
adam_b commentedI'm getting this also. Standard PHP5/MySQL5/Apache2 installation with everything up to date.
Comment #2
Magnity commentedChanging priority as per #435504: TODO BEFORE STORM 1.22
Comment #3
Magnity commentedhttp://drupal.org/cvs?commit=199248
Removal of excess argument in t(), line 161.
Comment #5
Magnity commentedReopened at per #484098: Invalid argument supplied for foreach() in common.inc
Comment #6
Tabecka commentedI am having the same issue.
PHP5/Postgres/Apache2
I removed the t(), updated and i still have this issue.
No apparent conflicts with other modules.
Comment #7
Magnity commentedWould it be possible to run a backtrace on the error using the Devel module? I cannot see this error on any of my installations anymore. Also, please could you confirm the version of Storm that you are using?
Comment #8
Magnity commentedAssuming this is no longer an issue - please reopen if it is.
Comment #10
bluecafe commentedI have removed the t() and everything seems to be ok but I am still having this issue if calling adminster by module: admin/by-module
Then I am getting
* warning: Invalid argument supplied for foreach() in /www/htdocs/w00ae2d7/templates/includes/common.inc on line 884.
* warning: strtr() [function.strtr]: The second argument is not an array in /www/htdocs/w00ae2d7/templates/includes/common.inc on line 901.
Comment #11
Magnity commented@bluecafe - This problem could have been caused by a number of modules - so I would recommend that you use the Devel module to backtrace the error. If you get a Storm related function - then reopen this issue stating the function name.
Comment #12
bluecafe commentedHi Magnity, I deactivated the storm modules one by one and after deactivating the module storm knowledgebase the error was gone. When I reactivated knowledgebase, the error was there again. Tried to locate the error using devel but don't know how (?)
Comment #13
bluescarni commentedJust for the record, I'm getting the same behaviour described by bluecafe.
Comment #14
Magnity commentedReactivating issue.
Comment #15
bluecafe commentedIt's a great module, thanks for all the work you have put into it!
Comment #16
Magnity commentedI'm pretty sure i've got this one now - on line 13 of stormknowledgebase.module, the t() should not have the second argument.