Issue with CFFeed
We recently upgraded to CF10 and a small app we use for importing RSS feeds seems to be rejecting certain feeds that worked perfectly fine in CF8. I've put details of the feeds and errors below. I've googled the problem and saw a blog from Ben Nadel about this issue when using xmlParse() relating to the byte-order-mark. But it doesn't really help me when using cffeed. I don't control the RSS feeds so have no way to change their syntax to make them work with CF. I'm just wondering if anyone else has encountered this problem with cffeed in CF10 and knows of a solution? The RSS feeds causing problems: http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml http://www.nojitter.com/rss http://www.zdnet.com/news/rss.xml They all return the exact same error: structDetailError: Invalid XML: Error on line 1: Content is not allowed in prolog.MessageUnable to parse the feed: Either source specified is invalid or feed is malformed.StackTracecoldfusion.syndication.FeedReader$FeedParseSourceException: Unable to parse the feed: Either source specified is invalid or feed is malformed. at coldfusion.syndication.FeedReader.readFeed(FeedReader.java:173) at coldfusion.syndication.FeedReader.init(FeedReader.java:100) at coldfusion.tagext.io.FeedTag.doStartTag(FeedTag.java:92) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799) at cfimporter2ecfm1618229109._factor1(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:182) at cfimporter2ecfm1618229109._factor2(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:166) at cfimporter2ecfm1618229109.runPage(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:428) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356386 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Re: Issue with CFFeed
Just dump cffeed and switch to cfhttp. cfset u = http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml; cfhttp url=#u# cfset xml = cfhttp.fileContent cfdump var=#xmlParse(xml)# You'll have to work with the XML by hand of course. On Tue, Aug 6, 2013 at 5:35 AM, Edward Chanter firew...@cc.uk.com wrote: We recently upgraded to CF10 and a small app we use for importing RSS feeds seems to be rejecting certain feeds that worked perfectly fine in CF8. I've put details of the feeds and errors below. I've googled the problem and saw a blog from Ben Nadel about this issue when using xmlParse() relating to the byte-order-mark. But it doesn't really help me when using cffeed. I don't control the RSS feeds so have no way to change their syntax to make them work with CF. I'm just wondering if anyone else has encountered this problem with cffeed in CF10 and knows of a solution? The RSS feeds causing problems: http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml http://www.nojitter.com/rss http://www.zdnet.com/news/rss.xml They all return the exact same error: structDetailError: Invalid XML: Error on line 1: Content is not allowed in prolog.MessageUnable to parse the feed: Either source specified is invalid or feed is malformed.StackTracecoldfusion.syndication.FeedReader$FeedParseSourceException: Unable to parse the feed: Either source specified is invalid or feed is malformed. at coldfusion.syndication.FeedReader.readFeed(FeedReader.java:173) at coldfusion.syndication.FeedReader.init(FeedReader.java:100) at coldfusion.tagext.io.FeedTag.doStartTag(FeedTag.java:92) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799) at cfimporter2ecfm1618229109._factor1(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:182) at cfimporter2ecfm1618229109._factor2(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:166) at cfimporter2ecfm1618229109.runPage(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:428) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at
Re: Issue with CFFeed
Another option is to remove the comment from the source XML. Unfortunately, cffeed doesn't let you source via a string, so you have to save it still. cfset u = http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml; cfhttp url=#u# cfset xml = cfhttp.fileContent cfset xml = rereplace(xml, !-- .*? --, ) cfset fileWrite(ram://feed.xml, xml) cffeed source=ram://feed.xml query=entries cfdump var=#entries# On Tue, Aug 6, 2013 at 6:56 AM, Raymond Camden raymondcam...@gmail.comwrote: Just dump cffeed and switch to cfhttp. cfset u = http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml; cfhttp url=#u# cfset xml = cfhttp.fileContent cfdump var=#xmlParse(xml)# You'll have to work with the XML by hand of course. On Tue, Aug 6, 2013 at 5:35 AM, Edward Chanter firew...@cc.uk.com wrote: We recently upgraded to CF10 and a small app we use for importing RSS feeds seems to be rejecting certain feeds that worked perfectly fine in CF8. I've put details of the feeds and errors below. I've googled the problem and saw a blog from Ben Nadel about this issue when using xmlParse() relating to the byte-order-mark. But it doesn't really help me when using cffeed. I don't control the RSS feeds so have no way to change their syntax to make them work with CF. I'm just wondering if anyone else has encountered this problem with cffeed in CF10 and knows of a solution? The RSS feeds causing problems: http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml http://www.nojitter.com/rss http://www.zdnet.com/news/rss.xml They all return the exact same error: structDetailError: Invalid XML: Error on line 1: Content is not allowed in prolog.MessageUnable to parse the feed: Either source specified is invalid or feed is malformed.StackTracecoldfusion.syndication.FeedReader$FeedParseSourceException: Unable to parse the feed: Either source specified is invalid or feed is malformed. at coldfusion.syndication.FeedReader.readFeed(FeedReader.java:173) at coldfusion.syndication.FeedReader.init(FeedReader.java:100) at coldfusion.tagext.io.FeedTag.doStartTag(FeedTag.java:92) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799) at cfimporter2ecfm1618229109._factor1(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:182) at cfimporter2ecfm1618229109._factor2(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:166) at cfimporter2ecfm1618229109.runPage(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:428) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at
Re: Issue with CFFeed
You may want to file a bug report for this too. Although the first feed URL fails to validate here http://validator.w3.org/feed/. On Tue, Aug 6, 2013 at 6:59 AM, Raymond Camden raymondcam...@gmail.comwrote: Another option is to remove the comment from the source XML. Unfortunately, cffeed doesn't let you source via a string, so you have to save it still. cfset u = http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml; cfhttp url=#u# cfset xml = cfhttp.fileContent cfset xml = rereplace(xml, !-- .*? --, ) cfset fileWrite(ram://feed.xml, xml) cffeed source=ram://feed.xml query=entries cfdump var=#entries# On Tue, Aug 6, 2013 at 6:56 AM, Raymond Camden raymondcam...@gmail.comwrote: Just dump cffeed and switch to cfhttp. cfset u = http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml; cfhttp url=#u# cfset xml = cfhttp.fileContent cfdump var=#xmlParse(xml)# You'll have to work with the XML by hand of course. On Tue, Aug 6, 2013 at 5:35 AM, Edward Chanter firew...@cc.uk.comwrote: We recently upgraded to CF10 and a small app we use for importing RSS feeds seems to be rejecting certain feeds that worked perfectly fine in CF8. I've put details of the feeds and errors below. I've googled the problem and saw a blog from Ben Nadel about this issue when using xmlParse() relating to the byte-order-mark. But it doesn't really help me when using cffeed. I don't control the RSS feeds so have no way to change their syntax to make them work with CF. I'm just wondering if anyone else has encountered this problem with cffeed in CF10 and knows of a solution? The RSS feeds causing problems: http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml http://www.nojitter.com/rss http://www.zdnet.com/news/rss.xml They all return the exact same error: structDetailError: Invalid XML: Error on line 1: Content is not allowed in prolog.MessageUnable to parse the feed: Either source specified is invalid or feed is malformed.StackTracecoldfusion.syndication.FeedReader$FeedParseSourceException: Unable to parse the feed: Either source specified is invalid or feed is malformed. at coldfusion.syndication.FeedReader.readFeed(FeedReader.java:173) at coldfusion.syndication.FeedReader.init(FeedReader.java:100) at coldfusion.tagext.io.FeedTag.doStartTag(FeedTag.java:92) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799) at cfimporter2ecfm1618229109._factor1(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:182) at cfimporter2ecfm1618229109._factor2(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:166) at cfimporter2ecfm1618229109.runPage(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:428) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at
Re: Issue with CFFeed
What's fascinating is that as far as I can see, the second URL doesn't have a comment. Just saving it locally works. I bet the same works for the first URL too. To be clear, I was able to parse the XML just fine with cfhttp, so it is valid XML. If you want to work with that and not the cffeed result, you can skip the file save. On Tue, Aug 6, 2013 at 7:02 AM, Raymond Camden raymondcam...@gmail.comwrote: You may want to file a bug report for this too. Although the first feed URL fails to validate here http://validator.w3.org/feed/. On Tue, Aug 6, 2013 at 6:59 AM, Raymond Camden raymondcam...@gmail.comwrote: Another option is to remove the comment from the source XML. Unfortunately, cffeed doesn't let you source via a string, so you have to save it still. cfset u = http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml; ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356390 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Issue with CFFeed
Thanks for your response Ray, I tried the second of your two ideas because it meant I didn't have to change any other code or start handling the XML myself. It works perfectly now, thank you so much for your help (again) :) On 6 August 2013 12:59, Raymond Camden raymondcam...@gmail.com wrote: Another option is to remove the comment from the source XML. Unfortunately, cffeed doesn't let you source via a string, so you have to save it still. cfset u = http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml; cfhttp url=#u# cfset xml = cfhttp.fileContent cfset xml = rereplace(xml, !-- .*? --, ) cfset fileWrite(ram://feed.xml, xml) cffeed source=ram://feed.xml query=entries cfdump var=#entries# On Tue, Aug 6, 2013 at 6:56 AM, Raymond Camden raymondcam...@gmail.com wrote: Just dump cffeed and switch to cfhttp. cfset u = http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml; cfhttp url=#u# cfset xml = cfhttp.fileContent cfdump var=#xmlParse(xml)# You'll have to work with the XML by hand of course. On Tue, Aug 6, 2013 at 5:35 AM, Edward Chanter firew...@cc.uk.com wrote: We recently upgraded to CF10 and a small app we use for importing RSS feeds seems to be rejecting certain feeds that worked perfectly fine in CF8. I've put details of the feeds and errors below. I've googled the problem and saw a blog from Ben Nadel about this issue when using xmlParse() relating to the byte-order-mark. But it doesn't really help me when using cffeed. I don't control the RSS feeds so have no way to change their syntax to make them work with CF. I'm just wondering if anyone else has encountered this problem with cffeed in CF10 and knows of a solution? The RSS feeds causing problems: http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml http://www.nojitter.com/rss http://www.zdnet.com/news/rss.xml They all return the exact same error: structDetailError: Invalid XML: Error on line 1: Content is not allowed in prolog.MessageUnable to parse the feed: Either source specified is invalid or feed is malformed.StackTracecoldfusion.syndication.FeedReader$FeedParseSourceException: Unable to parse the feed: Either source specified is invalid or feed is malformed. at coldfusion.syndication.FeedReader.readFeed(FeedReader.java:173) at coldfusion.syndication.FeedReader.init(FeedReader.java:100) at coldfusion.tagext.io.FeedTag.doStartTag(FeedTag.java:92) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799) at cfimporter2ecfm1618229109._factor1(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:182) at cfimporter2ecfm1618229109._factor2(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:166) at cfimporter2ecfm1618229109.runPage(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:428) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at
Re: Issue with CFFeed
As I said, your solution seems to work perfectly for all the feeds that were causing problems. Some have comments at the top, some at the bottom. In one case I couldn't see any comments at all but it seems to work anyway. I will post a bug report about this as suggested, it seems to me like CFFeed could just strip out any comments before parsing the feed. Thanks again for your help with this. On 6 August 2013 13:05, Raymond Camden raymondcam...@gmail.com wrote: What's fascinating is that as far as I can see, the second URL doesn't have a comment. Just saving it locally works. I bet the same works for the first URL too. To be clear, I was able to parse the XML just fine with cfhttp, so it is valid XML. If you want to work with that and not the cffeed result, you can skip the file save. On Tue, Aug 6, 2013 at 7:02 AM, Raymond Camden raymondcam...@gmail.com wrote: You may want to file a bug report for this too. Although the first feed URL fails to validate here http://validator.w3.org/feed/. On Tue, Aug 6, 2013 at 6:59 AM, Raymond Camden raymondcam...@gmail.com wrote: Another option is to remove the comment from the source XML. Unfortunately, cffeed doesn't let you source via a string, so you have to save it still. cfset u = http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml; ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356392 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: JSON Encoding bug (again...)
Dave, The code testval = '.0006' makes me think a string instead of a number. Javacast might force a type on the string eh? Brooke - are you looking for a number or a string? -Mark -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Monday, August 05, 2013 7:52 PM To: cf-talk Subject: Re: JSON Encoding bug (again...) I have had to do so many hacks to get serializeJSON() to play nice. I add a ~ to all yes/no strings so I don't get back true/false values, I have a series of regular expressions that quote values in the resulting JSON that don't get quoted and break on the client side. And now I have this issue: cfset x = {testval='.0006'} cfdump var=#serializeJSON(x)# Which outputs: {TESTVAL:6.0E-4} WTF? I am using CF 9,0,1,274733 Update Level /C:/ColdFusion9/lib/updates/hf901-4.jar Anybody know of a workaround for this? The source data is in a query which gets serialized after being converted to an array of structs. It would be too slow to check each field for values like this and modify them to return to the client. I need another Idea. Anyone? This isn't really a problem with JSON serialization, but with CF being typeless, and CF's tendency to autoconvert numbers into scientific notation. You can work around this by using precisionEvaluate(), the BigDecimal version of the Evaluate function: cfset x = {testval=precisionEvaluate(.0006)} cfdump var=#serializeJSON(x)# Note that this will add a leading zero. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356393 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Coldfusion in distributed mode with multiple subnets on host
Brad, Awesome! -Original Message- From: brad f [mailto:b...@ciswired.com] Sent: Monday, August 05, 2013 9:59 PM To: cf-talk Subject: Re: Coldfusion in distributed mode with multiple subnets on host Thanks for all the replies.. Changing the order of the nics was all I had to do. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356394 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
OCCHosting
Anyone else? I like to call them ADHDHosting. Support from them is horrible! I need another host. But the problem is they need to allow adult content. Not a huge high bandwidth smut site. Just a web forum setup to be private that people can post what they want without being blocked.Will have some banner adds on it. I would use Hostek but they don't allow it at all. Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356395 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF 9 does not connect IIS 7 smtp server on windows 7
Is smtp actually enabled? I don't believe it is by default with IIS 7. Cmdnetstat -an And look for your ip listening on port 25. Check by going through the control panel, programs and features, then turn windows features on and off. Believe smtp is under the iis 6 section. Alternately you could install a different smtp server on your server/workstation. Byron Mann Lead Engineer Architect HostMySite.com On Aug 5, 2013 12:39 PM, Joy Paulose kalappura...@hotmail.com wrote: Hi Byron, SMTP server already installed, IIS 6 compatibility features are also installed. I tried netstat cmd and I am not shwoing port 25. I tried telnet to port and it did not connect. When tried 127.0.0.1:25, error indicates that Could not open connection to the host, on port 23: connect failed I added port 25 to firewall exceptions allowed, even disabled it, but no luck Thaxs Joy ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356396 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF 9 does not connect IIS 7 smtp server on windows 7
I have been brain storming and spending so many hours to figure out how to use IIS 7 smtp mail server with CF9 on development environment. CF8 and windows XP with IIS 6 was perfectly working. I tried telnet to localhost port 25 and it is not connecting either. Disabled the windows firewall and still no escape, I have System Center Endpoint Protection anti-virus software installed, but I don't think that blocks port 25. Does anybody have any idea of what could be the blocking element. IIS 7 does not include an SMTP server by default. You have to specifically install it. http://www.iis. net/learn/application-frameworks/inst all-and-configure-php-on-iis/configure-smtp-e-mail-in-iis-7-and-above Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. Hi Dave, I have already installed SMTP server. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356398 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: OCCHosting
You could ask my guys: http://webservices.thesba.com On Tue, Aug 6, 2013 at 10:24 AM, Rick Eidson cfh...@kchost.net wrote: Anyone else? I like to call them ADHDHosting. Support from them is horrible! I need another host. But the problem is they need to allow adult content. Not a huge high bandwidth smut site. Just a web forum setup to be private that people can post what they want without being blocked.Will have some banner adds on it. I would use Hostek but they don't allow it at all. Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356397 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JSON Encoding bug (again...)
The code testval = '.0006' makes me think a string instead of a number. Javacast might force a type on the string eh? That might work, but the problem is that CF will continually reevaluate values every time they're used - as you'd expect in a typeless language. All you can do is force CF to treat a variable as a specific type for the current operation. Here we have two operations: in the first, we can tell CF to treat the struct value as a string, but in the second that's kind of hard to do. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356399 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF 9 does not connect IIS 7 smtp server on windows 7
IIS 7 does not include an SMTP server by default. You have to specifically install it. http://www.iis. net/learn/application-frameworks/inst all-and-configure-php-on-iis/configure-smtp-e-mail-in-iis-7-and-above Hi Dave, I have already installed SMTP server. The link I sent includes instructions for configuring SMTP. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356400 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: JSON Encoding bug (again...)
Yeah... got it. -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Tuesday, August 06, 2013 10:28 AM To: cf-talk Subject: Re: JSON Encoding bug (again...) The code testval = '.0006' makes me think a string instead of a number. Javacast might force a type on the string eh? That might work, but the problem is that CF will continually reevaluate values every time they're used - as you'd expect in a typeless language. All you can do is force CF to treat a variable as a specific type for the current operation. Here we have two operations: in the first, we can tell CF to treat the struct value as a string, but in the second that's kind of hard to do. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356401 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Timeouts connecting to database from my local installation
I have constant timeouts when trying to connect my local CF installation and the DEV database. Is there anything I can do in the code and/or admin to maximize my connection? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356402 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Timeouts connecting to database from my local installation
Set your dsn to msintain connections but if they are constantly timing out it is more likely s problem with your queries or the db. Russ Michaels www.michaels.me.uk cfmldeveloper.com cflive.net cfsearch.com On 6 Aug 2013 18:28, Torrent Girl moniqueb...@gmail.com wrote: I have constant timeouts when trying to connect my local CF installation and the DEV database. Is there anything I can do in the code and/or admin to maximize my connection? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356403 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Timeouts connecting to database from my local installation
Make sure it's not resolution issues... sometimes inconsistent DNS or the use of VPN's can cause issues with connecting. Use a hosts entry or an IP address to eliminate DNS as an issue. -Original Message- From: Torrent Girl [mailto:moniqueb...@gmail.com] Sent: Tuesday, August 06, 2013 12:28 PM To: cf-talk Subject: Timeouts connecting to database from my local installation I have constant timeouts when trying to connect my local CF installation and the DEV database. Is there anything I can do in the code and/or admin to maximize my connection? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356404 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Element undefined in SESSION scope
All - I am converting a form variable to a session variable.I enabled session management in application.cfm in cfapplication tag. The change works fine only on my system, but when others try it, they get 'Element undefined in SESSION'. What could be the possible reason? Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356405 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Element undefined in SESSION scope
Can we see some sample code? On Tue, Aug 6, 2013 at 12:43 PM, fun and learning funandlrnn...@gmail.comwrote: All - I am converting a form variable to a session variable.I enabled session management in application.cfm in cfapplication tag. The change works fine only on my system, but when others try it, they get 'Element undefined in SESSION'. What could be the possible reason? Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356406 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Element undefined in SESSION scope
I am just setting up a variable to capture cgi.http_referer. cfset session.referer = cgi.http_referer. Initially, the variable was set up as input type=hidden name=referer value=#CGI.http_referer# This variable is defined on a form, which submits to itself. I want to capture the initial cgi.http_referer value when the user first lands on the form and save it to database upon successful submission, hence was using hidden value. Recent security scanning has identified the input form variable for XSS, and hence I am changing it to a session value. On Tue, Aug 6, 2013 at 3:01 PM, Alan Rother alan.rot...@gmail.com wrote: Can we see some sample code? On Tue, Aug 6, 2013 at 12:43 PM, fun and learning funandlrnn...@gmail.comwrote: All - I am converting a form variable to a session variable.I enabled session management in application.cfm in cfapplication tag. The change works fine only on my system, but when others try it, they get 'Element undefined in SESSION'. What could be the possible reason? Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356407 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Element undefined in SESSION scope
Make sure that cgi.http_referer exists before you try to set it. This is a var created by the web server NOT cf ... so it may or may not reliably exist. Also make sure this code is AFTER your cfapplication tag. On your own system try hitting the page after a cf restart. You may be trying to access the session before you have established a session. The reason it works on local is because during coding you established a session at some previous point. That's all I got :) -Mark Mark Kruger - CFG CF Webtools www.cfwebtools.com www.coldfusionmuse.com O: 402.932.3318 E: mkru...@cfwebtools.com Skype: markakruger -Original Message- From: funand learning [mailto:funandlrnn...@gmail.com] Sent: Tuesday, August 06, 2013 3:08 PM To: cf-talk Subject: Re: Element undefined in SESSION scope I am just setting up a variable to capture cgi.http_referer. cfset session.referer = cgi.http_referer. Initially, the variable was set up as input type=hidden name=referer value=#CGI.http_referer# This variable is defined on a form, which submits to itself. I want to capture the initial cgi.http_referer value when the user first lands on the form and save it to database upon successful submission, hence was using hidden value. Recent security scanning has identified the input form variable for XSS, and hence I am changing it to a session value. On Tue, Aug 6, 2013 at 3:01 PM, Alan Rother alan.rot...@gmail.com wrote: Can we see some sample code? On Tue, Aug 6, 2013 at 12:43 PM, fun and learning funandlrnn...@gmail.comwrote: All - I am converting a form variable to a session variable.I enabled session management in application.cfm in cfapplication tag. The change works fine only on my system, but when others try it, they get 'Element undefined in SESSION'. What could be the possible reason? Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356408 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Element undefined in SESSION scope
Can you please resend the last reply of this post. I am not able to view the reply either in houseoffusion.com nor in my inbox. In inbox I just see the reply starting with 'Make sure...', but when I click the message, it is gone...something is weirdThanks On Tue, Aug 6, 2013 at 3:07 PM, funand learning funandlrnn...@gmail.comwrote: I am just setting up a variable to capture cgi.http_referer. cfset session.referer = cgi.http_referer. Initially, the variable was set up as input type=hidden name=referer value=#CGI.http_referer# This variable is defined on a form, which submits to itself. I want to capture the initial cgi.http_referer value when the user first lands on the form and save it to database upon successful submission, hence was using hidden value. Recent security scanning has identified the input form variable for XSS, and hence I am changing it to a session value. On Tue, Aug 6, 2013 at 3:01 PM, Alan Rother alan.rot...@gmail.com wrote: Can we see some sample code? On Tue, Aug 6, 2013 at 12:43 PM, fun and learning funandlrnn...@gmail.comwrote: All - I am converting a form variable to a session variable.I enabled session management in application.cfm in cfapplication tag. The change works fine only on my system, but when others try it, they get 'Element undefined in SESSION'. What could be the possible reason? Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356409 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
FW: Element undefined in SESSION scope
Trying a resend. Make sure that cgi.http_referer exists before you try to set it. This is a var created by the web server NOT cf ... so it may or may not reliably exist. Also make sure this code is AFTER your cfapplication tag. On your own system try hitting the page after a cf restart. You may be trying to access the session before you have established a session. The reason it works on local is because during coding you established a session at some previous point. That's all I got :) -Mark ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356410 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Element undefined in SESSION scope
May be its something to do with cookie path. If you are using cookie, this might mess up your session and just drops it. On Tuesday, August 6, 2013, Mark A Kruger wrote: Trying a resend. Make sure that cgi.http_referer exists before you try to set it. This is a var created by the web server NOT cf ... so it may or may not reliably exist. Also make sure this code is AFTER your cfapplication tag. On your own system try hitting the page after a cf restart. You may be trying to access the session before you have established a session. The reason it works on local is because during coding you established a session at some previous point. That's all I got :) -Mark ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356411 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Timeouts connecting to database from my local installation
Set your dsn to msintain connections but if they are constantly timing out it is more likely s problem with your queries or the db. Russ Michaels www.michaels.me.uk cfmldeveloper.com cflive.net cfsearch.com On 6 Aug 2013 18:28, Torrent Girl moniqueb...@gmail.com wrote: Thanks Russ I will try that. They don't time out in production though. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356412 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Timeouts connecting to database from my local installation
Make sure it's not resolution issues... sometimes inconsistent DNS or the use of VPN's can cause issues with connecting. Use a hosts entry or an IP address to eliminate DNS as an issue. I have constant timeouts when trying to connect my local CF installation and the DEV database. Is there anything I can do in the code and/or admin to maximize my connection? I am sorry Mark. How do I do this? Use a hosts entry or an IP address to eliminate DNS as an issue. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356413 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Timeouts connecting to database from my local installation
Set your dsn to msintain connections but if they are constantly timing out it is more likely s problem with your queries or the db. Russ Michaels www.michaels.me.uk cfmldeveloper.com cflive.net cfsearch.com On 6 Aug 2013 18:28, Torrent Girl moniqueb...@gmail.com wrote: Maintain connections is checked. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356414 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm