Reality check
Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324303 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Reality check
The code is just broke.It sounds like it, but it would be helpful if you showed us the actual error message. -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324304 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Reality check
That might depend on the app. We have seen instances where IIS will pass something as one CGI variable, whereby Apache would send it as something completely different. If you don't have internal logic to check for both and act accordingly, it can be an issue. These occurrences are rare, but possible. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 7/7/2009 10:24 AM, Phillip Vector wrote: Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324305 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reality check
Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324308 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Reality check
The files were given to me as is and I was told they work fine on his windows dev machine. The more I think about it, the more I'm wondering if I don't have the files that are on the server, or his remake of it (he said only the admin directory works currently, but on the site, the non-admin files work). I'm installing a virtural machine and seeing about eliminating all possible issues with the server config. On Tue, Jul 7, 2009 at 9:18 AM, Nathan C. Smithnathan.sm...@ipmvs.com wrote: Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324309 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Reality check
As for the error message.. The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. If the component name is specified as a type of this argument, its possible that a definition file for the component cannot be found or is not accessible. The error occurred in C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc: line 6 Called from C:\Webpages\VinoVisit\vv_loc\cfcs\schedules\ScheduleBuilder.cfc: line 22 Called from C:\Webpages\VinoVisit\vv_loc\admin\application.cfc: line 22 4 : cfset variables.instance.scheduleWeekdayDAO=null / 5 : 6 : cffunction name=init access=package output=false returntype=ScheduleDAO 7 : cfargument name=TimeDAO type=ScheduleTimeDAO required=true 8 : cfargument name=WeekdayDAO type=ScheduleTimeDAO required=true The main thing that makes me suspect that it's code is that I'm accessing http://127.0.0.1/Testing/vv_loc/admin/ and it's correctly pointing to C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc On Tue, Jul 7, 2009 at 9:23 AM, Phillip Vectorvec...@mostdeadlygame.com wrote: The files were given to me as is and I was told they work fine on his windows dev machine. The more I think about it, the more I'm wondering if I don't have the files that are on the server, or his remake of it (he said only the admin directory works currently, but on the site, the non-admin files work). I'm installing a virtural machine and seeing about eliminating all possible issues with the server config. On Tue, Jul 7, 2009 at 9:18 AM, Nathan C. Smithnathan.sm...@ipmvs.com wrote: Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324310 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Reality check
Hey Nathan, Could you provide the error your receiving? Paul Alkema Application Developer http://www.alkemadesigns.com/ -Original Message- From: Nathan C. Smith [mailto:nathan.sm...@ipmvs.com] Sent: Tuesday, July 07, 2009 12:18 PM To: cf-talk Subject: RE: Reality check Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324311 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Reality check
Is the app installed at the same place than on his machine relative to the root? The error seems to say that the object isn't returning in the right type, probably because it's missing the path (or mapping). Francois Levesque http://blog.critical-web.com/ On Tue, Jul 7, 2009 at 12:24 PM, Phillip Vector vec...@mostdeadlygame.comwrote: As for the error message.. The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. If the component name is specified as a type of this argument, its possible that a definition file for the component cannot be found or is not accessible. The error occurred in C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc: line 6 Called from C:\Webpages\VinoVisit\vv_loc\cfcs\schedules\ScheduleBuilder.cfc: line 22 Called from C:\Webpages\VinoVisit\vv_loc\admin\application.cfc: line 22 4 : cfset variables.instance.scheduleWeekdayDAO=null / 5 : 6 : cffunction name=init access=package output=false returntype=ScheduleDAO 7 : cfargument name=TimeDAO type=ScheduleTimeDAO required=true 8 : cfargument name=WeekdayDAO type=ScheduleTimeDAO required=true The main thing that makes me suspect that it's code is that I'm accessing http://127.0.0.1/Testing/vv_loc/admin/ and it's correctly pointing to C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc On Tue, Jul 7, 2009 at 9:23 AM, Phillip Vectorvec...@mostdeadlygame.com wrote: The files were given to me as is and I was told they work fine on his windows dev machine. The more I think about it, the more I'm wondering if I don't have the files that are on the server, or his remake of it (he said only the admin directory works currently, but on the site, the non-admin files work). I'm installing a virtural machine and seeing about eliminating all possible issues with the server config. On Tue, Jul 7, 2009 at 9:18 AM, Nathan C. Smithnathan.sm...@ipmvs.com wrote: Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324312 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Reality check
The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. Umm Bingo. If you check *Disable CFC Type Check in the CFADMIN (Server SettingsSettings) That will make this error go away.* *=] * -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324313 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Reality check
Holly s**t... That worked.. Thanks. :) On Tue, Jul 7, 2009 at 9:28 AM, Alan Rotheralan.rot...@gmail.com wrote: The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. Umm Bingo. If you check *Disable CFC Type Check in the CFADMIN (Server SettingsSettings) That will make this error go away.* *=] * -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324314 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reality check
Good call Alan. :) Paul Alkema Application Developer http://www.alkemadesigns.com/ -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 12:33 PM To: cf-talk Subject: Re: Reality check Holly s**t... That worked.. Thanks. :) On Tue, Jul 7, 2009 at 9:28 AM, Alan Rotheralan.rot...@gmail.com wrote: The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. Umm Bingo. If you check *Disable CFC Type Check in the CFADMIN (Server SettingsSettings) That will make this error go away.* *=] * -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324315 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reality check
cfset variables.instance.scheduleWeekdayDAO=null / Ermmm, since when has this worked?! Do you create your own null variable? Adrian -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: 07 July 2009 17:24 To: cf-talk Subject: Re: Reality check As for the error message.. The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. If the component name is specified as a type of this argument, its possible that a definition file for the component cannot be found or is not accessible. The error occurred in C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc: line 6 Called from C:\Webpages\VinoVisit\vv_loc\cfcs\schedules\ScheduleBuilder.cfc: line 22 Called from C:\Webpages\VinoVisit\vv_loc\admin\application.cfc: line 22 4 : cfset variables.instance.scheduleWeekdayDAO=null / 5 : 6 : cffunction name=init access=package output=false returntype=ScheduleDAO 7 : cfargument name=TimeDAO type=ScheduleTimeDAO required=true 8 : cfargument name=WeekdayDAO type=ScheduleTimeDAO required=true The main thing that makes me suspect that it's code is that I'm accessing http://127.0.0.1/Testing/vv_loc/admin/ and it's correctly pointing to C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc On Tue, Jul 7, 2009 at 9:23 AM, Phillip Vectorvec...@mostdeadlygame.com wrote: The files were given to me as is and I was told they work fine on his windows dev machine. The more I think about it, the more I'm wondering if I don't have the files that are on the server, or his remake of it (he said only the admin directory works currently, but on the site, the non-admin files work). I'm installing a virtural machine and seeing about eliminating all possible issues with the server config. On Tue, Jul 7, 2009 at 9:18 AM, Nathan C. Smithnathan.sm...@ipmvs.com wrote: Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324317 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Reality check
Like I mentioned before, this is badly written code and apparently, it's being held together by some gum and duct tape (TAKE THAT MCGUYVER!) :) Anyway, yeah. I hope to be able to convince the guy to just let me overhaul the entire thing as there's allot of things like this. On Tue, Jul 7, 2009 at 10:23 AM, Adrian Lynchcont...@adrianlynch.co.uk wrote: cfset variables.instance.scheduleWeekdayDAO=null / Ermmm, since when has this worked?! Do you create your own null variable? Adrian -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: 07 July 2009 17:24 To: cf-talk Subject: Re: Reality check As for the error message.. The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. If the component name is specified as a type of this argument, its possible that a definition file for the component cannot be found or is not accessible. The error occurred in C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc: line 6 Called from C:\Webpages\VinoVisit\vv_loc\cfcs\schedules\ScheduleBuilder.cfc: line 22 Called from C:\Webpages\VinoVisit\vv_loc\admin\application.cfc: line 22 4 : cfset variables.instance.scheduleWeekdayDAO=null / 5 : 6 : cffunction name=init access=package output=false returntype=ScheduleDAO 7 : cfargument name=TimeDAO type=ScheduleTimeDAO required=true 8 : cfargument name=WeekdayDAO type=ScheduleTimeDAO required=true The main thing that makes me suspect that it's code is that I'm accessing http://127.0.0.1/Testing/vv_loc/admin/ and it's correctly pointing to C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc On Tue, Jul 7, 2009 at 9:23 AM, Phillip Vectorvec...@mostdeadlygame.com wrote: The files were given to me as is and I was told they work fine on his windows dev machine. The more I think about it, the more I'm wondering if I don't have the files that are on the server, or his remake of it (he said only the admin directory works currently, but on the site, the non-admin files work). I'm installing a virtural machine and seeing about eliminating all possible issues with the server config. On Tue, Jul 7, 2009 at 9:18 AM, Nathan C. Smithnathan.sm...@ipmvs.com wrote: Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324319 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reality check
The reason I asked is because cfset something = null will error unless null is defined. I thought maybe there was some Java magic going on a few lines up. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: 07 July 2009 18:27 To: cf-talk Subject: Re: Reality check Like I mentioned before, this is badly written code and apparently, it's being held together by some gum and duct tape (TAKE THAT MCGUYVER!) :) Anyway, yeah. I hope to be able to convince the guy to just let me overhaul the entire thing as there's allot of things like this. On Tue, Jul 7, 2009 at 10:23 AM, Adrian Lynchcont...@adrianlynch.co.uk wrote: cfset variables.instance.scheduleWeekdayDAO=null / Ermmm, since when has this worked?! Do you create your own null variable? Adrian -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: 07 July 2009 17:24 To: cf-talk Subject: Re: Reality check As for the error message.. The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. If the component name is specified as a type of this argument, its possible that a definition file for the component cannot be found or is not accessible. The error occurred in C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc: line 6 Called from C:\Webpages\VinoVisit\vv_loc\cfcs\schedules\ScheduleBuilder.cfc: line 22 Called from C:\Webpages\VinoVisit\vv_loc\admin\application.cfc: line 22 4 : cfset variables.instance.scheduleWeekdayDAO=null / 5 : 6 : cffunction name=init access=package output=false returntype=ScheduleDAO 7 : cfargument name=TimeDAO type=ScheduleTimeDAO required=true 8 : cfargument name=WeekdayDAO type=ScheduleTimeDAO required=true The main thing that makes me suspect that it's code is that I'm accessing http://127.0.0.1/Testing/vv_loc/admin/ and it's correctly pointing to C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc On Tue, Jul 7, 2009 at 9:23 AM, Phillip Vectorvec...@mostdeadlygame.com wrote: The files were given to me as is and I was told they work fine on his windows dev machine. The more I think about it, the more I'm wondering if I don't have the files that are on the server, or his remake of it (he said only the admin directory works currently, but on the site, the non-admin files work). I'm installing a virtural machine and seeing about eliminating all possible issues with the server config. On Tue, Jul 7, 2009 at 9:18 AM, Nathan C. Smithnathan.sm...@ipmvs.com wrote: Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324320 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Reality check
Nope. No java magic. At least, not from what I saw in the limited amount of time I was willing to dive into this. :) On Tue, Jul 7, 2009 at 10:34 AM, Adrian Lynchcont...@adrianlynch.co.uk wrote: The reason I asked is because cfset something = null will error unless null is defined. I thought maybe there was some Java magic going on a few lines up. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: 07 July 2009 18:27 To: cf-talk Subject: Re: Reality check Like I mentioned before, this is badly written code and apparently, it's being held together by some gum and duct tape (TAKE THAT MCGUYVER!) :) Anyway, yeah. I hope to be able to convince the guy to just let me overhaul the entire thing as there's allot of things like this. On Tue, Jul 7, 2009 at 10:23 AM, Adrian Lynchcont...@adrianlynch.co.uk wrote: cfset variables.instance.scheduleWeekdayDAO=null / Ermmm, since when has this worked?! Do you create your own null variable? Adrian -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: 07 July 2009 17:24 To: cf-talk Subject: Re: Reality check As for the error message.. The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. If the component name is specified as a type of this argument, its possible that a definition file for the component cannot be found or is not accessible. The error occurred in C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc: line 6 Called from C:\Webpages\VinoVisit\vv_loc\cfcs\schedules\ScheduleBuilder.cfc: line 22 Called from C:\Webpages\VinoVisit\vv_loc\admin\application.cfc: line 22 4 : cfset variables.instance.scheduleWeekdayDAO=null / 5 : 6 : cffunction name=init access=package output=false returntype=ScheduleDAO 7 : cfargument name=TimeDAO type=ScheduleTimeDAO required=true 8 : cfargument name=WeekdayDAO type=ScheduleTimeDAO required=true The main thing that makes me suspect that it's code is that I'm accessing http://127.0.0.1/Testing/vv_loc/admin/ and it's correctly pointing to C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc On Tue, Jul 7, 2009 at 9:23 AM, Phillip Vectorvec...@mostdeadlygame.com wrote: The files were given to me as is and I was told they work fine on his windows dev machine. The more I think about it, the more I'm wondering if I don't have the files that are on the server, or his remake of it (he said only the admin directory works currently, but on the site, the non-admin files work). I'm installing a virtural machine and seeing about eliminating all possible issues with the server config. On Tue, Jul 7, 2009 at 9:18 AM, Nathan C. Smithnathan.sm...@ipmvs.com wrote: Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324321 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Reality check
Adrian, You can't see what's before line 4, maybe it's something like... 3: cfset null=null 4: cfset variables.instance.scheduleWeekdayDAO=null / Paul Alkema Application Developer http://www.alkemadesigns.com/ -Original Message- From: Adrian Lynch [mailto:cont...@adrianlynch.co.uk] Sent: Tuesday, July 07, 2009 1:24 PM To: cf-talk Subject: RE: Reality check cfset variables.instance.scheduleWeekdayDAO=null / Ermmm, since when has this worked?! Do you create your own null variable? Adrian -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: 07 July 2009 17:24 To: cf-talk Subject: Re: Reality check As for the error message.. The WEEKDAYDAO argument passed to the init function is not of type ScheduleTimeDAO. If the component name is specified as a type of this argument, its possible that a definition file for the component cannot be found or is not accessible. The error occurred in C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc: line 6 Called from C:\Webpages\VinoVisit\vv_loc\cfcs\schedules\ScheduleBuilder.cfc: line 22 Called from C:\Webpages\VinoVisit\vv_loc\admin\application.cfc: line 22 4 : cfset variables.instance.scheduleWeekdayDAO=null / 5 : 6 : cffunction name=init access=package output=false returntype=ScheduleDAO 7 : cfargument name=TimeDAO type=ScheduleTimeDAO required=true 8 : cfargument name=WeekdayDAO type=ScheduleTimeDAO required=true The main thing that makes me suspect that it's code is that I'm accessing http://127.0.0.1/Testing/vv_loc/admin/ and it's correctly pointing to C:\Webpages\Testing\vv_loc\cfcs\schedules\ScheduleDAO.cfc On Tue, Jul 7, 2009 at 9:23 AM, Phillip Vectorvec...@mostdeadlygame.com wrote: The files were given to me as is and I was told they work fine on his windows dev machine. The more I think about it, the more I'm wondering if I don't have the files that are on the server, or his remake of it (he said only the admin directory works currently, but on the site, the non-admin files work). I'm installing a virtural machine and seeing about eliminating all possible issues with the server config. On Tue, Jul 7, 2009 at 9:18 AM, Nathan C. Smithnathan.sm...@ipmvs.com wrote: Don't forget about case-sensitivity of filenames. Especially on includes and such. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Tuesday, July 07, 2009 10:25 AM To: cf-talk Subject: Reality check Just need confirmation that I'm not losing it.. I have apache running on my dev server. A client gave me his files and I'm trying to get them set up on my local server (he is running IIS). However, after I create the mappings in CF and go to the directory that in his IIS, he has set to default to, I get a ColdFusion error (some variable is a complex variable or some such). It finds the files and the cfc as well. So.. It isn't that I'm using Apache and they are using IIS.. Right? The code is just broke. or am I missing something here? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324330 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Reality check
On Tue, Jul 7, 2009 at 12:28 PM, Alan Rotheralan.rot...@gmail.com wrote: If you check *Disable CFC Type Check in the CFADMIN (Server SettingsSettings) That will make this error go away.* It's worth noting that this could actually cause other problems for you in the long run if you do not understand what this setting does. To be clear - there is nothing wrong with turning this feature off, just make sure you know what it does. -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: camer...@gmail.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324338 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Vertical Calendar Format Reality Check
This page shows what I need to finally achieve: http://acelinkdev.evansville.edu/DevFiles/JavaExcel/Salon/Date2CFTalk.cf m Requirements: 1. The business week starts on Monday. 2. Must have six groups of repeating weeks even though there may not be that many days in a month. 3. If the first day of the month is not a Monday, I must show all leading days, but without the dates. 4. If the last day of the month is not Sunday, I must show all remaining days, but without the dates. 5. I need to break for weekly totals after each Sunday. I would appreciate it if someone would please take a look at my code below and let me know if I'm doing anything the hard way. Does my logic look right? I want to get the logic down before I worry about cleaning up the code. Thanks M!ke CODE: html lang=en-US head titleDate Loop Test/title style type=text/css body, td { font-family: verdana; font-size: 12px; } /style /head body cfset dayList = Mon,Tues,Wed,Thurs,Fri,Sat,Sun cfset dateOffset = 0 !--- Create this month. --- cfset year = 2005 cfset month = 1 cfset thisMonth = createDate(year, month, 1) !--- Calculate where to start the first day of the month. --- cfset startIndex = dayOfWeek(thisMonth) - 1 cfset endIndex = daysInMonth(thisMonth) + startIndex - 1 !--- Fix the index. --- cfif startIndex eq 0 cfset startIndex = 7 /cfif !--- Create an array to hold the date information in columns. --- !--- Each column is a structure. --- cfset dateArray = arrayNew(1) cfloop from=1 to=42 index=thisOne cfset index = (thisOne) mod 7 !--- Fix the index. --- cfif index eq 0 cfset index = 7 /cfif !--- Add the data to the array of structures. --- cfset dateArray[thisOne] = structNew() cfset dateArray[thisOne].day = listGetAt(dayList, index) !--- This structure will be used later. --- cfset dateArray[thisOne].date = /cfloop !--- Loop between the array index that corresponds to the first day of the month --- !--- to the array index that correspondes to the last day of the month. --- cfloop from=#startIndex# to=#endIndex# index=thisOne cfset dateArray[thisOne].date = dateAdd(d, dateOffset, thisMonth) cfset dateOffset = dateOffset + 1 /cfloop pcfoutput#dateFormat(thisMonth)#/cfoutput/p table border=1 cellpadding=2 cellspacing=0 bordercolor=#c0c0c0 cfloop from=1 to=#arrayLen(dateArray)# index=thisDayOfMonth tr td align=rightcfoutput#dateFormat(dateArray[thisDayOfMonth].date, d)#/cfoutput/td tdcfoutput#dateArray[thisDayOfMonth].day#/cfoutput/td /tr cfif not thisDayOfMonth mod 7 tr td colspan=2Week Total/td /tr /cfif /cfloop tr td colspan=2Month Total/td /tr /table /body /html ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190004 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Vertical Calendar Format Reality Check
Here is another shot I made at it. This one is simpler, but I have yet to add my array-building code. Final desired result: http://acelinkdev.evansville.edu/DevFiles/JavaExcel/Salon/Date1.cfm Thanks M!ke CODE: cfset dayList = Mon,Tue,Wed,Thu,Fri,Sat,Sun cfset year = 2005 cfset month = 7 cfset thisMonth = createDate(year, month, 1) cfset thisMonthLastDate = createDate(year, month, daysInMonth(thisMonth)) cfset datumDate = dayOfWeek(thisMonth) - 2 html lang=en-US head titleUntitled/title style type=text/css body, td { font-family: verdana, sans-serif; font-size: 10px; } /style /head body table border=1 cellpadding=2 cellspacing=0 bordercolor=#c0c0c0 cfloop from=1 to=#datumDate# index=thisDay tr tdnbsp;/td tdcfoutput#listGetAt(dayList, thisDay)#/cfoutput/td /tr /cfloop cfloop from=1 to=#daysInMonth(thisMonth)# index=thisDay cfset thisDate = createDate(year, month, thisDay) tr tdcfoutput#dateFormat(thisDate)#/cfoutput/td tdcfoutput#dateFormat(thisDate, ddd)#/cfoutput/td /tr /cfloop cfset datumDate = dayOfWeek(thisMonthLastDate) cfloop from=#datumDate# to=7 index=thisDay tr tdnbsp;/td tdcfoutput#listGetAt(dayList, thisDay)#/cfoutput/td /tr /cfloop /table /body /html ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190006 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54