PHP error following SafeCracker update
Posted: 13 November 2010 01:05 PM   [ Ignore ]
Wallflower
Rank
Total Posts:  7
Joined  2010-10-08

Hi there

I tried updating from Build 20101019 to Build 20101102 and got the following after I submitted a form (though the data was written to db successfully):

A PHP Error was encountered

Severity: Notice

Message: Undefined index: entry_id

Filename: entry_reedirect/ext.entry_reedirect.php

Line Number: 142

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/false/public_html/cms/codeigniter/system/core/Exceptions.php:171)

Filename: libraries/Functions.php

Line Number: 739

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/false/public_html/cms/codeigniter/system/core/Exceptions.php:171)

Filename: libraries/Functions.php

Line Number: 377


I tried updating by both simply replacing old files with new, and by first uninstalling module/extension then reinstalling (is this required?), but it didn’t make any difference.

Here is my form code:

{exp:safecracker channel="{channels}" return="{channels}/item/URL_TITLE" datepicker="no" url_title="{segment_3}"}

<input type="hidden" name="status" {if member_group=="1"||member_group=="7"}value="Open"{if:else}value="Open"{/if}
<input type="hidden" name="entry_date" value="{entry_date}" /> 

<
table class="additem" summary="Add an item - required">

<
tr>
<
th colspan="4" class="addstrap">Essentials <span>(required)</span></th>
</
tr>

<
tr>
<
th><label for="title">Name of campaign</label></th>
<
td colspan="3"><input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" /></td>
</
tr>

<
tr>
<
th><label for="camplace">Location</label></th>
<
td><select name="camplace" id="camplace">
{options:camplace}
<option value="{option_value}"{selected}>{option_name}</option>
{/options:camplace}
</select></td>
<
td colspan="2">
<
div class="formhint">Select first letter(sof postcode. If campaign spans more than one regionchoose the most central postcode, or opt for "National".</div></td>
</
tr>

<
tr>
<
th><label for="camtext">Description</label><div class="formhint">Write a short description of the campaign.</div></th>
<
td colspan="3"><textarea cols="50" rows="10"  name="camtext" id="camtext">{camtext}</textarea></td>
</
tr>

<
tr>
<
th colspan="4" class="addstrap">Campaign contact details <span>(enter at least one)</span></th>
</
tr>

<
tr>
<
th><label for="caminfo">Website</label></th>
<
td colspan="3"><input type="text" name="caminfo" id="caminfo" value="{caminfo}" size="50" maxlength="200" /></td>
</
tr>

<
tr>
<
th><label for="cammail">Email</label></th>
<
td colspan="3"><input type="text" name="cammail" id="cammail" value="{cammail}" size="50" maxlength="100" /></td>
</
tr>

<
tr>
<
th><label for="camtel">Telephone</label></th>
<
td colspan="3"><input type="text" name="camtel" id="camtel" value="{camtel}" size="50" maxlength="100" /></td>
</
tr>

<
tr>
<
th colspan="4" class="addstrap">Extras</th>
</
tr>

<
tr>
<
th><label for="campost1">Campaign postcode</label></th>
<
td><input type="text" name="campost1" id="campost1" value="{campost1}" size="5" maxlength="5" class="shortfield" />
<
div class="formhint">1st part<br />(eg "SE1")</div></td>
<
td><input type="text" name="campost2" id="campost2" value="{campost2}" size="4" maxlength="4" class="shortfield" />
<
div class="formhint">2nd part รข?? if known<br />(eg "3AB")</div></td>
<
td><div class="formhint">For local/regional campaignsproviding a full or partial postcode will help us better map the campaigns.</div></td>
</
tr>

</
table>

<
p><input type="image" src="/img/send.png" alt="Send" title="Send" value="Submit" /></p>

<
class="small">Once you press "Send"your entry will be queued for approvalYou will still be able to preview and amend it.</p>

{/exp:safecracker} 

Thanks for your help.

Profile
 
 
Posted: 13 November 2010 11:17 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Looks like a conflict with the entry_redirect extension, which is now called Deviant http://devot-ee.com/add-ons/deviant/. I would recommend you update to the latest version of that, and if you are still having problems let us know.

Profile
 
 
Posted: 16 November 2010 06:19 AM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  7
Joined  2010-10-08

Thanks Rob - that fixed it!

Profile