When I add a module at admin/settings/mailsystem I receive the following PHP error:
warning: array_flip(): Can only flip STRING and INTEGER values! in [PATH]/sites/all/modules/mailsystem/mailsystem.admin.inc on line 142.
When I add a module at admin/settings/mailsystem I receive the following PHP error:
warning: array_flip(): Can only flip STRING and INTEGER values! in [PATH]/sites/all/modules/mailsystem/mailsystem.admin.inc on line 142.
Comments
Comment #1
pillarsdotnet commentedGrr!!! Thought I fixed this. How exactly did you manage to make this error re-appear?
Comment #2
pillarsdotnet commentedI can't reproduce this. Are you still experiencing this problem? If so, try clearing the mail_system variable.
variable_del('mail_system');A third option should be completely uninstalling Mail System but alas I hadn't anticipated the need and therefore haven't coded the mailsystem_uninstall() hook.
EDIT: Wrote the hook but didn't roll a new release just yet.
Comment #3
pillarsdotnet commentedgonna call this one fixed in 6.x-1.11 unless somebody re-opens.
Comment #4
johnvGot the same error, on line 159 with version = "7.x-1.x-dev" fo 12-4-2011.
- install module for first time, add new setting, save.
Comment #5
johnv@#2: a simpler way to delete the variable and reproduce the error:
- activate devel
- go to /devel/variable, or choose Variable editor from Admin menu.
- select the variable mail_system, go down, and press [delete]
Comment #6
pillarsdotnet commented7.x-1.x is no longer supported.
Comment #7
johnv@#6: I don't understand: there are new D7-versions from 10 and 12 april, and this module is a prerequisite of D7-version of http://drupal.org/project/htmlmail
Comment #8
rsbecker commentedI'm getting this error with 6.x.1.11 every time I add a new module.
I have been using HTML Mail in debug mode to try and ID the modules and $keys. I have never received a $key value, so I leave the field blank. When I select a new module, i.e. messaging > messaging and click Save I get the error message:
warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /var/www/html/drupal/sites/all/modules/mailsystem/mailsystem.admin.inc on line 142.
I then go to the new module and select HTMLMailSystem and click save and I get the error again. If I click save one more time it goes away.
The backtrace info follows:
Comment #9
pillarsdotnet commentedOops! sorry. The 1.x branch of htmlmail is no longer supported. Of course the 1.x branch of Mail System is.
Thanks for the informative backtrace. I see the problem -- the value for the 'rules' key is set to NULL, and NULL cannot be the key of an array.
Will roll a new release shortly.
Comment #10
pillarsdotnet commentedFixed by 7.x-1.12 release.
Thanks everyone once again for your patience. Your feedback is helping make this project better!
Comment #11
pillarsdotnet commentedComment #12
rsbecker commentedError message gone in 6.x