addcfcode: Mango Plugin published

mango plugin , ColdFusion Add comments

Just before some days when I was writing my post regaring cfgrid with header and footer where I want to show output on my post. For this I need to create new demo page and give link to that or I can add iframe which load my demo page and just got idea why not add coldfusion tag on post and post display output that code :).

And this is what addcfcode plugin will do. You can add your own coldfusion code in post wrap with [addcfcode ][/addcfcode ].
Syntax:

Some post content ....
[addcfcode ]
<cfoutput>You
 are accessing from #cgi.remote_host#<br/> on 
#dateformat(now(),"mm/dd/yyyy")##timeformat(now(),"hh:mm:ss 
tt")#</cfoutput>
[/addcfcode ]

And your content will look like...

struct
Cause
struct
Message /home/thecfguy/public_html/components/plugins/user/addcfcode/E716AC13-B60C-EF6C-1B793F99A4024D79.cfm (Permission denied)
StackTrace java.io.FileNotFoundException: /home/thecfguy/public_html/components/plugins/user/addcfcode/E716AC13-B60C-EF6C-1B793F99A4024D79.cfm (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at coldfusion.vfs.VFSFileFactory.fetchOutputStream(VFSFileFactory.java:414) at coldfusion.vfs.VFSFileFactory.getOutputStream(VFSFileFactory.java:275) at coldfusion.tagext.io.FileTag.createNewFile(FileTag.java:1038) at coldfusion.tagext.io.FileTag.write(FileTag.java:391) at coldfusion.tagext.io.FileTag.doStartTag(FileTag.java:300) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfHandler2ecfc2138445235$funcPROCESSEVENT.runFunction(/home/thecfguy/public_html/components/plugins/user/addcfcode/Handler.cfc:54) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfPluginQueueThreaded2ecfc575512500$funcBROADCASTEVENT.runFunction(/home/thecfguy/public_html/components/PluginQueueThreaded.cfc:22) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfEntryWrapper2ecfc1454916489$funcGETCONTENT.runFunction(/home/thecfguy/public_html/components/EntryWrapper.cfc:158) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfPostProperty2ecfm826486817._factor3(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:93) at cfPostProperty2ecfm826486817._factor6(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:35) at cfPostProperty2ecfm826486817.runPage(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:271) at cfpost2ecfm134453877._factor12(/home/thecfguy/public_html/skins/glossyblue/post.cfm:30) at cfpost2ecfm134453877._factor14(/home/thecfguy/public_html/skins/glossyblue/post.cfm:8) at cfpost2ecfm134453877.runPage(/home/thecfguy/public_html/skins/glossyblue/post.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfpost2ecfm1362633552.runPage(/home/thecfguy/public_html/post.cfm:21) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:342) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) 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:53) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
TagContext
array
1
struct
COLUMN 0
ID CFFILE
LINE 54
RAW_TRACE at cfHandler2ecfc2138445235$funcPROCESSEVENT.runFunction(/home/thecfguy/public_html/components/plugins/user/addcfcode/Handler.cfc:54)
TEMPLATE /home/thecfguy/public_html/components/plugins/user/addcfcode/Handler.cfc
TYPE CFML
2
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 22
RAW_TRACE at cfPluginQueueThreaded2ecfc575512500$funcBROADCASTEVENT.runFunction(/home/thecfguy/public_html/components/PluginQueueThreaded.cfc:22)
TEMPLATE /home/thecfguy/public_html/components/PluginQueueThreaded.cfc
TYPE CFML
3
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 158
RAW_TRACE at cfEntryWrapper2ecfc1454916489$funcGETCONTENT.runFunction(/home/thecfguy/public_html/components/EntryWrapper.cfc:158)
TEMPLATE /home/thecfguy/public_html/components/EntryWrapper.cfc
TYPE CFML
4
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 93
RAW_TRACE at cfPostProperty2ecfm826486817._factor3(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:93)
TEMPLATE /home/thecfguy/public_html/tags/mango/PostProperty.cfm
TYPE CFML
5
struct
COLUMN 0
ID CF_POSTPROPERTY
LINE 35
RAW_TRACE at cfPostProperty2ecfm826486817._factor6(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:35)
TEMPLATE /home/thecfguy/public_html/tags/mango/PostProperty.cfm
TYPE CFML
6
struct
COLUMN 0
ID CF_POSTPROPERTY
LINE 1
RAW_TRACE at cfPostProperty2ecfm826486817.runPage(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:1)
TEMPLATE /home/thecfguy/public_html/tags/mango/PostProperty.cfm
TYPE CFML
7
struct
COLUMN 0
ID CFMODULE
LINE 30
RAW_TRACE at cfpost2ecfm134453877._factor12(/home/thecfguy/public_html/skins/glossyblue/post.cfm:30)
TEMPLATE /home/thecfguy/public_html/skins/glossyblue/post.cfm
TYPE CFML
8
struct
COLUMN 0
ID CF_POST
LINE 8
RAW_TRACE at cfpost2ecfm134453877._factor14(/home/thecfguy/public_html/skins/glossyblue/post.cfm:8)
TEMPLATE /home/thecfguy/public_html/skins/glossyblue/post.cfm
TYPE CFML
9
struct
COLUMN 0
ID CF_POST
LINE 1
RAW_TRACE at cfpost2ecfm134453877.runPage(/home/thecfguy/public_html/skins/glossyblue/post.cfm:1)
TEMPLATE /home/thecfguy/public_html/skins/glossyblue/post.cfm
TYPE CFML
10
struct
COLUMN 0
ID CFINCLUDE
LINE 21
RAW_TRACE at cfpost2ecfm1362633552.runPage(/home/thecfguy/public_html/post.cfm:21)
TEMPLATE /home/thecfguy/public_html/post.cfm
TYPE CFML
Type java.io.FileNotFoundException
Detail The cause of this exception was: java.io.FileNotFoundException: /home/thecfguy/public_html/components/plugins/user/addcfcode/E716AC13-B60C-EF6C-1B793F99A4024D79.cfm (Permission denied).
Message An error occurred when performing a file operation write on file /home/thecfguy/public_html/components/plugins/user/addcfcode/E716AC13-B60C-EF6C-1B793F99A4024D79.cfm.
RootCause
struct
Message /home/thecfguy/public_html/components/plugins/user/addcfcode/E716AC13-B60C-EF6C-1B793F99A4024D79.cfm (Permission denied)
StackTrace java.io.FileNotFoundException: /home/thecfguy/public_html/components/plugins/user/addcfcode/E716AC13-B60C-EF6C-1B793F99A4024D79.cfm (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at coldfusion.vfs.VFSFileFactory.fetchOutputStream(VFSFileFactory.java:414) at coldfusion.vfs.VFSFileFactory.getOutputStream(VFSFileFactory.java:275) at coldfusion.tagext.io.FileTag.createNewFile(FileTag.java:1038) at coldfusion.tagext.io.FileTag.write(FileTag.java:391) at coldfusion.tagext.io.FileTag.doStartTag(FileTag.java:300) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfHandler2ecfc2138445235$funcPROCESSEVENT.runFunction(/home/thecfguy/public_html/components/plugins/user/addcfcode/Handler.cfc:54) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfPluginQueueThreaded2ecfc575512500$funcBROADCASTEVENT.runFunction(/home/thecfguy/public_html/components/PluginQueueThreaded.cfc:22) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfEntryWrapper2ecfc1454916489$funcGETCONTENT.runFunction(/home/thecfguy/public_html/components/EntryWrapper.cfc:158) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfPostProperty2ecfm826486817._factor3(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:93) at cfPostProperty2ecfm826486817._factor6(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:35) at cfPostProperty2ecfm826486817.runPage(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:271) at cfpost2ecfm134453877._factor12(/home/thecfguy/public_html/skins/glossyblue/post.cfm:30) at cfpost2ecfm134453877._factor14(/home/thecfguy/public_html/skins/glossyblue/post.cfm:8) at cfpost2ecfm134453877.runPage(/home/thecfguy/public_html/skins/glossyblue/post.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfpost2ecfm1362633552.runPage(/home/thecfguy/public_html/post.cfm:21) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:342) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) 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:53) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
TagContext
array
1
struct
COLUMN 0
ID CFFILE
LINE 54
RAW_TRACE at cfHandler2ecfc2138445235$funcPROCESSEVENT.runFunction(/home/thecfguy/public_html/components/plugins/user/addcfcode/Handler.cfc:54)
TEMPLATE /home/thecfguy/public_html/components/plugins/user/addcfcode/Handler.cfc
TYPE CFML
2
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 22
RAW_TRACE at cfPluginQueueThreaded2ecfc575512500$funcBROADCASTEVENT.runFunction(/home/thecfguy/public_html/components/PluginQueueThreaded.cfc:22)
TEMPLATE /home/thecfguy/public_html/components/PluginQueueThreaded.cfc
TYPE CFML
3
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 158
RAW_TRACE at cfEntryWrapper2ecfc1454916489$funcGETCONTENT.runFunction(/home/thecfguy/public_html/components/EntryWrapper.cfc:158)
TEMPLATE /home/thecfguy/public_html/components/EntryWrapper.cfc
TYPE CFML
4
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 93
RAW_TRACE at cfPostProperty2ecfm826486817._factor3(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:93)
TEMPLATE /home/thecfguy/public_html/tags/mango/PostProperty.cfm
TYPE CFML
5
struct
COLUMN 0
ID CF_POSTPROPERTY
LINE 35
RAW_TRACE at cfPostProperty2ecfm826486817._factor6(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:35)
TEMPLATE /home/thecfguy/public_html/tags/mango/PostProperty.cfm
TYPE CFML
6
struct
COLUMN 0
ID CF_POSTPROPERTY
LINE 1
RAW_TRACE at cfPostProperty2ecfm826486817.runPage(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:1)
TEMPLATE /home/thecfguy/public_html/tags/mango/PostProperty.cfm
TYPE CFML
7
struct
COLUMN 0
ID CFMODULE
LINE 30
RAW_TRACE at cfpost2ecfm134453877._factor12(/home/thecfguy/public_html/skins/glossyblue/post.cfm:30)
TEMPLATE /home/thecfguy/public_html/skins/glossyblue/post.cfm
TYPE CFML
8
struct
COLUMN 0
ID CF_POST
LINE 8
RAW_TRACE at cfpost2ecfm134453877._factor14(/home/thecfguy/public_html/skins/glossyblue/post.cfm:8)
TEMPLATE /home/thecfguy/public_html/skins/glossyblue/post.cfm
TYPE CFML
9
struct
COLUMN 0
ID CF_POST
LINE 1
RAW_TRACE at cfpost2ecfm134453877.runPage(/home/thecfguy/public_html/skins/glossyblue/post.cfm:1)
TEMPLATE /home/thecfguy/public_html/skins/glossyblue/post.cfm
TYPE CFML
10
struct
COLUMN 0
ID CFINCLUDE
LINE 21
RAW_TRACE at cfpost2ecfm1362633552.runPage(/home/thecfguy/public_html/post.cfm:21)
TEMPLATE /home/thecfguy/public_html/post.cfm
TYPE CFML
Type java.io.FileNotFoundException
StackTrace coldfusion.tagext.io.FileTag$SingleFileOperationException: An error occurred when performing a file operation write on file /home/thecfguy/public_html/components/plugins/user/addcfcode/E716AC13-B60C-EF6C-1B793F99A4024D79.cfm. at coldfusion.tagext.io.FileTag.write(FileTag.java:398) at coldfusion.tagext.io.FileTag.doStartTag(FileTag.java:300) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfHandler2ecfc2138445235$funcPROCESSEVENT.runFunction(/home/thecfguy/public_html/components/plugins/user/addcfcode/Handler.cfc:54) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfPluginQueueThreaded2ecfc575512500$funcBROADCASTEVENT.runFunction(/home/thecfguy/public_html/components/PluginQueueThreaded.cfc:22) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfEntryWrapper2ecfc1454916489$funcGETCONTENT.runFunction(/home/thecfguy/public_html/components/EntryWrapper.cfc:158) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfPostProperty2ecfm826486817._factor3(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:93) at cfPostProperty2ecfm826486817._factor6(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:35) at cfPostProperty2ecfm826486817.runPage(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:271) at cfpost2ecfm134453877._factor12(/home/thecfguy/public_html/skins/glossyblue/post.cfm:30) at cfpost2ecfm134453877._factor14(/home/thecfguy/public_html/skins/glossyblue/post.cfm:8) at cfpost2ecfm134453877.runPage(/home/thecfguy/public_html/skins/glossyblue/post.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfpost2ecfm1362633552.runPage(/home/thecfguy/public_html/post.cfm:21) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:342) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) 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:53) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Caused by: java.io.FileNotFoundException: /home/thecfguy/public_html/components/plugins/user/addcfcode/E716AC13-B60C-EF6C-1B793F99A4024D79.cfm (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at coldfusion.vfs.VFSFileFactory.fetchOutputStream(VFSFileFactory.java:414) at coldfusion.vfs.VFSFileFactory.getOutputStream(VFSFileFactory.java:275) at coldfusion.tagext.io.FileTag.createNewFile(FileTag.java:1038) at coldfusion.tagext.io.FileTag.write(FileTag.java:391) ... 78 more
TagContext
array
1
struct
COLUMN 0
ID CFFILE
LINE 54
RAW_TRACE at cfHandler2ecfc2138445235$funcPROCESSEVENT.runFunction(/home/thecfguy/public_html/components/plugins/user/addcfcode/Handler.cfc:54)
TEMPLATE /home/thecfguy/public_html/components/plugins/user/addcfcode/Handler.cfc
TYPE CFML
2
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 22
RAW_TRACE at cfPluginQueueThreaded2ecfc575512500$funcBROADCASTEVENT.runFunction(/home/thecfguy/public_html/components/PluginQueueThreaded.cfc:22)
TEMPLATE /home/thecfguy/public_html/components/PluginQueueThreaded.cfc
TYPE CFML
3
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 158
RAW_TRACE at cfEntryWrapper2ecfc1454916489$funcGETCONTENT.runFunction(/home/thecfguy/public_html/components/EntryWrapper.cfc:158)
TEMPLATE /home/thecfguy/public_html/components/EntryWrapper.cfc
TYPE CFML
4
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 93
RAW_TRACE at cfPostProperty2ecfm826486817._factor3(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:93)
TEMPLATE /home/thecfguy/public_html/tags/mango/PostProperty.cfm
TYPE CFML
5
struct
COLUMN 0
ID CF_POSTPROPERTY
LINE 35
RAW_TRACE at cfPostProperty2ecfm826486817._factor6(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:35)
TEMPLATE /home/thecfguy/public_html/tags/mango/PostProperty.cfm
TYPE CFML
6
struct
COLUMN 0
ID CF_POSTPROPERTY
LINE 1
RAW_TRACE at cfPostProperty2ecfm826486817.runPage(/home/thecfguy/public_html/tags/mango/PostProperty.cfm:1)
TEMPLATE /home/thecfguy/public_html/tags/mango/PostProperty.cfm
TYPE CFML
7
struct
COLUMN 0
ID CFMODULE
LINE 30
RAW_TRACE at cfpost2ecfm134453877._factor12(/home/thecfguy/public_html/skins/glossyblue/post.cfm:30)
TEMPLATE /home/thecfguy/public_html/skins/glossyblue/post.cfm
TYPE CFML
8
struct
COLUMN 0
ID CF_POST
LINE 8
RAW_TRACE at cfpost2ecfm134453877._factor14(/home/thecfguy/public_html/skins/glossyblue/post.cfm:8)
TEMPLATE /home/thecfguy/public_html/skins/glossyblue/post.cfm
TYPE CFML
9
struct
COLUMN 0
ID CF_POST
LINE 1
RAW_TRACE at cfpost2ecfm134453877.runPage(/home/thecfguy/public_html/skins/glossyblue/post.cfm:1)
TEMPLATE /home/thecfguy/public_html/skins/glossyblue/post.cfm
TYPE CFML
10
struct
COLUMN 0
ID CFINCLUDE
LINE 21
RAW_TRACE at cfpost2ecfm1362633552.runPage(/home/thecfguy/public_html/post.cfm:21)
TEMPLATE /home/thecfguy/public_html/post.cfm
TYPE CFML
Type Application
action write
file /home/thecfguy/public_html/components/plugins/user/addcfcode/E716AC13-B60C-EF6C-1B793F99A4024D79.cfm
[addcfcode:error] Error occured while executing your code.


You are able to write whatever you want to do with coldfusion code.

NOTE: The space you see following the word "addcfcode" and the closing bracket is included to keep the tag from rendering in this page. You will need to remove the space for the tag to render.

10 responses to “addcfcode: Mango Plugin published”

  1. Ads Says:
  2. TomasF Says:
    I've been meaning to make something like this myself, but never got around to it. Thanks!
  3. Pritesh Says:
    :)
  4. Scott Says:
    Having trouble activating the plugin. I downloaded it using the 1.4.3 mango blog admin, downloaded without error. When I click on the "Activate" link next to the plugin I get the message at the top of the page that reads "Plugin could not be activated". I'm running CF7. Any reason why this plugin wouldn't be compatible with CF7? I have activated many other plugins without a problem.
  5. Scott Says:
    As I found out yesterday, requires CF8. You should probably add this to your list of requirements on the download page.
  6. Pritesh Says:
    I haven't tested on CF7 but I think it should work on it as well. Only requirement is you require file writing access on root directory.

    I will try to look into more detail and see if I found something wrong.
  7. Pritesh Says:
    Thanks Scott... I think rereplace may causing issue. I will update in my blog and in riaforge.

    Thanks again.
  8. NameStormr Says:
    I just installed mango and am very interested in this plugin but it looks like it is throwing an error in your above post - thanks, megan
  9. Pritesh Says:
    @Namestormr
    Sorry for that actually there were some issue with plugin (specially linux installation). Actually later I transfer it to google code with help of Laura..
    Please download latest copy from below URL.
    http://code.google.com/p/mangoblog-extensions/downloads/detail?name=addcfcode.zip&can=2&q=#makechanges

    Thanks for pointing out, I will update on page and Update my plugin as well :)
  10. Pritesh Says:
    @Namestormr,
    Also make sure FileManagement tags are enabled for you and you have write access. Basically this plugin write .cfm file on drive which usually creating issue with shared server.

    Let me know if you still having issue, I will be happy to help you out.
  11. Namestormr Says:
    Thanks! I will download the latest and try it out :-)

Leave a Reply



Powered by Mango Blog. Design and Icons by N.Design Studio | Menu Apycom
RSS Feeds