I wrote that plugin. I'm happy to try and help. Are you sure the request is returning XML? Can you dump the "result" variable and see what is in "filecontent". It is possible the request is not returning XML for some reason.
Sean On Monday, September 30, 2013 6:07:33 PM UTC-4, Randy Johnson wrote: > > Hello, I installed the YouTube plugin from > http://plugins.farcrycore.org/plugin/youtube. Everything seemed to go > well, I added API key and username to config and it shows in the content > section. But I cannot get it to sync. When I try to manually sync, I get > the following error: > > Error Details MessageAn error occured while Parsing an XML document. > Exception > TypeExpression DetailContent is not allowed in prolog. Tag Context > > - > C:\inetpub\wwwroot\Clients\vtol.org\farcry\plugins\youtube\packages\custom\custom.cfc > > (line: 48) > - > C:\inetpub\wwwroot\Clients\vtol.org\farcry\plugins\youtube\packages\types\youtubeVideo.cfc > > (line: 100) > - > C:\inetpub\wwwroot\Clients\vtol.org\farcry\plugins\youtube\customadmin\manualSync.cfm > > (line: 11) > - > C:\inetpub\wwwroot\Clients\vtol.org\farcry\core\webtop\admin\customadmin.cfm > (line: 35) > > > I have run into this issue before when there was white space etc at the > beginning of the XML. Substituting <cfset result = > xmlParse(result.filecontent)> with <cfset result = > xmlParse(REReplace(result.filecontent, "^[^<]*", "", "all" )) /> in > custom.cfc resulted in a different error, "premature end of file." > > If anybody could point me towards an explanation of what I might be doing > wrong, I sure would appreciate it! It will be great to have this feature > enabled for our content people. Thanks a lot! > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry --- You received this message because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
