Closed (fixed)
Project:
Phonetic Word Filter
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
28 Jan 2009 at 20:32 UTC
Updated:
4 Feb 2013 at 12:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
accessiveapps commentedwhen you did what?
Comment #2
accessiveapps commentedComment #3
darumaki commentedyou can close this, warning message no longer appear, must have been a glitch.
Comment #4
ball.in.th commentedHi,
I just install version 1.1 and got the same warning on /admin/settings/phoneticfilter .
Comment #5
ball.in.th commentedAnother warning on page admin/settings/filters/3:
warning: Missing argument 2 for phonetic_help(), called in \sites\all\modules\phonetic\phonetic.module on line 189 and defined in \sites\all\modules\phonetic\phonetic.module on line 9.
Comment #6
hectorplus commentedHello,
I just installed this module and i am getting the same error:
Invalid argument supplied for foreach() in /home/.../public_html/sites/all/modules/phonetic/phonetic.module on line 56.
Comment #7
gfvonb commentedThis error only happens if the whitelist and/or blacklist is empty.
Comment #8
kirkcaraway commentedI have terms in both blacklist and whitelist, and still get same error on the settings page. Any other possibilities? Thanks.
Comment #9
byronveale commentedFWIW this error went away for me only after adding terms to both blacklist and whitelist...
Comment #10
accessiveapps commentedcheck if is_array was missing ... fixed for versiom 1.4
Comment #11
accessiveapps commentedComment #13
Draknek commentedThis was not fixed for me with the latest version.
Attached is a patch that worked.
Comment #14
marcoka commentedsame here, if i fill in blacklist and whitelist, error is gone
Comment #15
Bill Choy commentedThe default value for the $blacklist should be an empty array, instead of a empty string.
--- a/www/sites/all/modules/contrib/phonetic/phonetic.module Fri Dec 16 10:17:21 2011 -0500
+++ b/www/sites/all/modules/contrib/phonetic/phonetic.module Mon Dec 19 13:45:26 2011 -0500
@@ -49,7 +49,7 @@
function phonetic_list_add(){
- $blacklist = variable_get('phonetic_blacklist','');
+ $blacklist = variable_get('phonetic_blacklist', array());
$whitelist = variable_get('phonetic_whitelist','');
foreach($blacklist as $word => $meta){
$words .= "$word\n";
}
Comment #16
damienmckennaThis bug has been fixed by backporting the code from the D7 branch.