PHP ERRORS WHEN USING â??CHANNEL VIDEOSâ?? WITH â??SAFECRACKERâ??
Posted: 05 February 2011 03:24 AM   [ Ignore ]
Wallflower
Avatar
Rank
Total Posts:  4
Joined  2011-01-24

hi !
i get these errors when trying to submit an entry with ‘channel videos’ field in â??safecrackerâ??. It only happens when i leave â??channel videosâ?? field empty. Here is the url http://www.yoga.lc/index.php/main/video_test if you want to check.
Any ideas whatâ??s wrong?

in my template i have:
{exp:safecracker channel=â??testâ? return=â??main/okâ? entry_id=â??215â? class=â??safecrackerâ? dynamic=â??noâ?}
{field:ch_vid}
{field:text}
<input type=â??submitâ? value=â??Submitâ? />
{/exp:safecracker}

PHP errors:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: ChannelVideos
Filename: channel_videos/ft.channel_videos.php
Line Number: 207

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/yogalc/yoga.lc/docs/system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 387

dmitry

Profile
 
 
Posted: 05 February 2011 03:33 AM   [ Ignore ]   [ # 1 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

Do you have a fieldtype called “Channel videos” ? That’s what seems to be throwing the error.

 Signature 
Profile
 
 
Posted: 05 February 2011 03:45 AM   [ Ignore ]   [ # 2 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Just heard from the guys at DevDemon that they’re looking into it.

Profile
 
 
Posted: 05 February 2011 02:02 PM   [ Ignore ]   [ # 3 ]
Wallflower
Avatar
Rank
Total Posts:  4
Joined  2011-01-24

yes, i have a fieldtype called â??Channel videosâ? with a short name ‘ch_vid’ as you see in a template:

{exp:safecracker channel=â??testâ? return=â??main/okâ? entry_id=â??215â? class=â??safecrackerâ? dynamic=â??noâ?}
{field:ch_vid}
{field:text}
<input type=â??submitâ? value=â??Submitâ? />
{/exp:safecracker}

can you help?

Profile
 
 
Posted: 05 February 2011 02:03 PM   [ Ignore ]   [ # 4 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

As Rob mentioned… the guys at DevDemon are looking into it. It’s the channel videos field type that’s throwing the error. The developers that manage that field type should be able to help sort this out.

 Signature 
Profile
 
 
Posted: 05 February 2011 02:08 PM   [ Ignore ]   [ # 5 ]
Wallflower
Avatar
Rank
Total Posts:  4
Joined  2011-01-24

ok, thanks for your help!

Profile
 
 
Posted: 22 February 2011 04:16 AM   [ Ignore ]   [ # 6 ]
Wallflower
Rank
Total Posts:  16
Joined  2010-10-13

Any updates on this?

I’m trying to get Channel Videos to work as well. I’ve got a {custom_fields} loop set up that shows DM EECK properly, but Channel Videos breaks it. The field’s HTML is rendered, but scripts break.

FYI, I’m just using {display_field}—is there another/better way to show the Channel Videos field(s)?

Edit: Using {field:channel_videos_field_name} results in the same.

[ Edited: 22 February 2011 04:19 AM by Graham H ]
Profile
 
 
Posted: 22 February 2011 04:17 AM   [ Ignore ]   [ # 7 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

What versions of SC and EE do you have?

Profile
 
 
Posted: 22 February 2011 04:17 AM   [ Ignore ]   [ # 8 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Also, can you post your PHP errors?

Profile
 
 
Posted: 22 February 2011 04:22 AM   [ Ignore ]   [ # 9 ]
Wallflower
Rank
Total Posts:  16
Joined  2010-10-13

Wow, Rob, that was quick!

I bought and downloaded SC today, so “Current Version: 1.0.3”.

EE 2.0.13 Build 20101220

No PHP errors, just broken scripts. As noted, the HTML for Channel Videos renders (meaning it’s finding the right custom field)... Something in the JS is breaking all scripts on the page.

Profile
 
 
Posted: 22 February 2011 06:20 AM   [ Ignore ]   [ # 10 ]
Wallflower
Rank
Total Posts:  16
Joined  2010-10-13

Hi Rob,

I’m now getting this same error when I try to submit my form via Ajax:

A PHP Error was encountered

Severity
Notice

Message
Undefined indexChannelVideos

Filename
channel_videos/ft.channel_videos.php

Line Number
198 

It looks like the submit was otherwise successful. When I remove Channel Videos field from the Publish form, it works with other fieldtypes.

Profile
 
 
Posted: 22 February 2011 06:24 AM   [ Ignore ]   [ # 11 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

I’m afraid you’ll have to start a support request over at DevDemon for this one.

Profile
 
 
Posted: 22 February 2011 06:54 AM   [ Ignore ]   [ # 12 ]
Wallflower
Rank
Total Posts:  16
Joined  2010-10-13

Ok, will do! Thanks so much for the help!

Profile
 
 
Posted: 22 February 2011 07:10 AM   [ Ignore ]   [ # 13 ]
Wallflower
Rank
Total Posts:  16
Joined  2010-10-13

Rob,

I have to apologize. I just needed to update to the lastest Channel Videos version. I missed the very last update, which added support for Safecracker.

re: http://www.devdemon.com/forums/viewthread/385/

I just tried the updated version of Channel Videos and it works! Works with EECK Editor too!

Thanks so much for all your help, it actually did help me track down my own silliness.

Profile