“Wrong datatype for second argument”...
Posted: 12 July 2011 09:35 PM   [ Ignore ]
Wallflower
Rank
Total Posts:  23
Joined  2010-06-10

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}

Profile
 
 
Posted: 12 July 2011 09:36 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Hi meredith, SafeCracker is now owned and supported by EllisLab on their ExpressionEngine forums. You’ll have to post your question there.

Profile
 
 
Posted: 12 July 2011 09:37 PM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  23
Joined  2010-06-10

Ha oh yah smile

Profile