Hi, I'm using explain for a list of states and an option to choose 'other' for international addresses. I get this error:

in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in C:\Inetpub\wwwroot\ambassador\sites\default\Modules\explainfield\explainfield.module on line 454.

What could wrong with my values? It is a text datatype field. hmmm

Comments

snufkin’s picture

so you're using only one trigger, right? can you paste the end of the options how that looks like and the key you use? i have never faced this error, so i would like your help to track it down. are you using the official release or the 1.x-dev version?

goose2000’s picture

Yes, just one trigger. I was using the indicated version at the time,
5.x-1.x-dev. My values looked like this, 'Other' would be the trigger,
at the bottom (BTW- best little module of this sort I think, thanks):

AL|ALABAMA
AK|ALASKA
AS|AMERICAN SAMOA
AZ|ARIZONA
AR|ARKANSAS
CA|CALIFORNIA
CO|COLORADO
CT|CONNECTICUT
DE|DELAWARE
DC|DISTRICT OF COLUMBIA
FM|FEDERATED STATES OF MICRONESIA
FL|FLORIDA
GA|GEORGIA
GU|GUAM
HI|HAWAII
ID|IDAHO
IL|ILLINOIS
IN|INDIANA
IA|IOWA
KS|KANSAS
KY|KENTUCKY
LA|LOUISIANA
ME|MAINE
MH|MARSHALL ISLANDS
MD|MARYLAND
MA|MASSACHUSETTS
MI|MICHIGAN
MN|MINNESOTA
MS|MISSISSIPPI
MO|MISSOURI
MT|MONTANA
NE|NEBRASKA
NV|NEVADA
NH|NEW HAMPSHIRE
NJ|NEW JERSEY
NM|NEW MEXICO
NY|NEW YORK
NC|NORTH CAROLINA
ND|NORTH DAKOTA
MP|NORTHERN MARIANA ISLANDS
OH|OHIO
OK|OKLAHOMA
OR|OREGON
PW|PALAU
PA|PENNSYLVANIA
PR|PUERTO RICO
RI|RHODE ISLAND
SC|SOUTH CAROLINA
SD|SOUTH DAKOTA
TN|TENNESSEE
TX|TEXAS
UT|UTAH
VT|VERMONT
VI|VIRGIN ISLANDS
VA|VIRGINIA
WA|WASHINGTON
WV|WEST VIRGINIA
WI|WISCONSIN
WY|WYOMING
Other|Other

snufkin’s picture

i will try to reproduce it tomorrow, but until please try the official version of the module: http://ftp.drupal.org/files/projects/explainfield-5.x-1.0.tar.gz (its also on the module page)