These forums are not for official support. If you are looking for official support please click here.
You are here: Home :: Forum Home :: DevDemon :: General Discussion :: Thread
Hi,
I’m not sure if this is a problem with the Safecracker addon or with your Tagger, Channel Videos and Video Files fields.
I’ve got an SAEF working with Safecracker. But if I use it to update an entry I get the errors shown at the bottom of this post. However, the data gets added to the database correctly. The SAEF page is supposed to return to itself as per the ‘return’ parameter in the opening tag:
{exp:safecracker channel="blog" return="blog/publish/ENTRY_ID/" entry_id="{segment_3}"}
Having been presented with the error page, if I refresh the page everything then renders correctly, including the edited changes.
I’m using EE2.1.3 20101220. And have fields with the field types EECK Editor, Channel Images, Channel Videos, Tagger, Channel Files, textarea and an option box.
I originally had the tagger field being mandatory, but found that it was giving me an error message telling me I needed to enter data for the field, even though I had done so.
If I remove the Tagger, Channel Videos and Video Files fields from the SAEF, I still get the errors.
Any thoughts about the cause?
Message: Undefined index: skip
Filename: tagger/ft.tagger.php
Line Number: 220
Message: Undefined index: ChannelFiles
Filename: channel_files/ft.channel_files.php
Line Number: 174
Message: Undefined index: ChannelVideos
Filename: channel_videos/ft.channel_videos.php
Line Number: 207
Message: Cannot modify header information - headers already sent by (output started at /home/myusername/public_html/mysite.net/system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 749
Message: Cannot modify header information - headers already sent by (output started at /home/myusername/public_html/mysite.net/system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 749
Message: Cannot modify header information - headers already sent by (output started at /home/myusername/public_html/mysite.net/system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 387
Hello,
Can you make sure you download the very newest build of the modules? Please try the newest builds and let me know if you still have issue. Also, did you download the newest version of Safecracker from ExpressionEngine?
Brad
I’m using all the latest module versions: Tagger 2.1.5,Channel Files 3.3, Channel Images 4.0.1, Channel Videos 2.3 and SafeCracker 2.0.
There were a couple updates to the same builds a week or so ago. Please make sure you have the latest version. Channel Images is at version 4.0.2.
Brad
I’m fully up to date - downloaded all the latest versions over the weekend. Turns out that Channel Images 4.0.2 gets listed as 4.0.1 in the control panel, but even so is not flagged by NSM Addon Updater as being due for an update. You may have forgotten to increment the version number.
Craig
Hello,
Maybe we should take a look at your template code here. I have it running in my SAEF here with no issues. So it is something in your setup or code.
Brad
OK, I’ll set up a simplified template, and see if it works there.
I see, so that what it is. I was having the same problem and I really never knew that this is the source.
I updated CI & CV to the latest update as of today, and I’m having the same error mesage. When I submit using SafeCracker on the frontend I get this error:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: ChannelImages
Filename: channel_images/ft.channel_images.php
Line Number: 264
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/eedev8/public_html/backend/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 387
I have EE 2.1.3 and SC 2.0, and again the latest CI as of today.
This is my simplified template that I’m having an issue:
<div class="pane">
{exp:channel:entries channel="properties" limit="1"}
{exp:safecracker channel="properties" entry_id="{segment_2}" return="properties/ENTRY_ID" url_title="{segment_2}" require_entry="yes" include_jquery="no"}
{exp:channel_images:images entry_id="{entry_id}"}
<div class="ligthbox">
<div class="thumbnail">
<a rel="lightbox-{entry_id}" title="{image:title}" href="{image:url:large}">
<img class="product_thumbnail" src="{image:url:small}" alt="{title}" />
</a>
</div>
<p>{image:description}</p>
</div>
{/exp:channel_images:images}
<input type="submit" name="submit" value="Submit" />
{/exp:safecracker}
{/exp:channel:entries}
</div>
Hello,
Are you really wanting to “show” channel images for the entry in the middle of a safecracker form?
Brad
Hmm thought I replied but I guess it didnt go through!
The site is for a real estate project, they are wanting to delete and upload images through the frontend - and I wanted to use Channel Images for it… same thing for videos (adding/delete youtube ones)
Thanks Brad!
You just use the custom field type from Safecracker. Your code above is “showing” the images, not the field for creating a publish form. To do that follow the Safecracker documentation.
Thanks,
Brad