Hello,
I’m trying to use a very simple safecracker form to let my users create their entries without accessing the CP. The problem is that when I click the “submit” button I get some php errors. However the entry is safely stored and I can see it in the back end.
I’m using EE 2.1.3 (Build 20101220).
This is my form:
{exp:safecracker
channel="blog"
return="SAEF/thankyou"
entry_id="{segment_3}"
rules:body="required|min_length[5]"
id="safecracker"
error_handling="inline"
}
<div>
<label for="title">Title</label>
<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100">
</div>
<div>
<label for="url_title">URL Title</label>
<input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50" />
</div>
<div>
<label>Body</label>
<textarea name="body" id="body" class="markitup" cols="50" rows="30" value="{body}" ></textarea>
</div>
<div>
<label for="entry_date">Date</label>
<input type="text" name="entry_date" id="entry_date" value="{entry_date}" maxlength="23" size="25" />
</div>
<div>
{category_menu}
<label for="categories">Categories</label>
<select name="category[]" id="categories" size="4" multiple="multiple">
{select_options}
</select>
{/category_menu}
</div>
<input type="submit" name="submit" value="Submit" />
{/exp:safecracker}Here’s the error reporting:
A PHP Error was encountered
Severity: Warning
Message: implode() [function.implode]: Invalid arguments passed
Filename: pt_multiselect/ft.pt_multiselect.php
Line Number: 67
A PHP Error was encountered
Severity: Notice
Message: Uninitialized string offset: 0
Filename: tagger/ft.tagger.php
Line Number: 222
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/username/my_sites_folder/project/sys/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 387I don’t know if this is relevant, but I’m testing my install locally using MAMP, my sys folder is above the webroot, and I’m using Structure. The publish form in the back-end contains a Playa and a Matrix field, but as you can see the safecracker form contains just some basic EE fields.
I don’t know much about php, so I don’t really know what’s happening. Is there anyone who could give me a hint?
Edit: Maybe I should add that Php version is 5.2.13