I’m getting this error when trying to use safecracker…
A PHP Error was encountered
Severity: Warning
Message: in_array() [function.in-array]: Wrong datatype for second argument
Filename: libraries/safecracker_lib.php
Line Number: 761
Fatal error: [] operator not supported for strings in /nfs/c03/h01/mnt/52502/domains/krossinkeuka.org/html/sys/expressionengine/third_party/safecracker/libraries/safecracker_lib.php on line 763
The safecracker section of my template is as follows:
{exp:safecracker channel="sponsor" author_id="CURRENT_USER" limit="1" dynamic_title="[sponsor_name]"}
<input type=“hidden” name=“title” id=“title” value=”{title}”>
<input type=“hidden” name=“url_title” id=“url_title” value=”{url_title}”>
<input type=“hidden” name=“entry_date” id=“entry_date” value=”{entry_date format="%Y-%m-%d %g:%i"}”>
<input type=“hidden” name=“sponsor_participant” id=“sponsor_participant” value=”{segment_2}”>
<tr>
<td>
<label for=“sponsor_name”>Your Name <span class=“asterisk”>*</span></label>
<input type=“text” name=“sponsor_name” id=“sponsor_name” value=”{sponsor_name}”>
</td>
<td>
<label for=“sponsor_email_address”>Email Address <span class=“asterisk”>*</span></label>
<input type=“text” name=“sponsor_email_address” id=“sponsor_email_address” value=”“>
</td>
<td>
<label for=“sponsor_amount”>Amount: <span class=“asterisk”>*</span></label>
<input type=“text” name=“sponsor_amount” id=“sponsor_amount” value=”{sponsor_amount}”>
</td>
<td>
<input type=“submit” name=“submit” value=“Submit” class=“button”>
</td>
</tr>
{/exp:safecracker}