jasemilly Posted November 29, 2012 Share Posted November 29, 2012 HI Not sure this the correct section for this post, but when it works I intend for I to be AJAX based I have followed the instructions here http://cocoontech.com/portal/articles/tutorials/home-automation/16-how-to-interface-homeseer-with-php But I get the error fatal error Call to undefined method com::DeviceStatus() I am running a vista machine and apache PHP are configured ok. How do I start error trapping. I know the object is ok, as I can use it in visual studio, how does PHP know were this object is. sorry if this basic or wrong I am pretty stuck and unsure whee to begin, so thanks for any help. Quote Link to comment https://forums.phpfreaks.com/topic/271364-com-debugging/ Share on other sites More sharing options...
requinix Posted November 29, 2012 Share Posted November 29, 2012 I assume you saw the note on step 4? (link added) make sure you change Homeseer.Application to whatever the object is named in your DCOM configuration screen, usually the other name is Homeseer.ClsString Without going into details I don't know, COM objects are all registered in Windows. PHP itself doesn't have to know where the actual object DLL is. Are you sure the method is called "DeviceStatus" and not "devicestatus" like I see in the article? Quote Link to comment https://forums.phpfreaks.com/topic/271364-com-debugging/#findComment-1396233 Share on other sites More sharing options...
jasemilly Posted November 30, 2012 Author Share Posted November 30, 2012 You are right it should be "devicestatus", made this change but no change and i had used the Homeseer.ClsString, it shows on my system as clsString, I haven't any ideas of where to look next to debug, or what logs to check. Quote Link to comment https://forums.phpfreaks.com/topic/271364-com-debugging/#findComment-1396517 Share on other sites More sharing options...
trq Posted November 30, 2012 Share Posted November 30, 2012 Post your code. Quote Link to comment https://forums.phpfreaks.com/topic/271364-com-debugging/#findComment-1396547 Share on other sites More sharing options...
jasemilly Posted December 2, 2012 Author Share Posted December 2, 2012 Hi this is it <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php // $hs = new COM("Homeseer.Application"); $hs = new COM("homeseer.clsString"); // $hs->ExecX10("a1","off","0","0"); $status=$hs->devicestatus("A1"); echo $status; unset($hs); ?> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/271364-com-debugging/#findComment-1397020 Share on other sites More sharing options...
jasemilly Posted December 6, 2012 Author Share Posted December 6, 2012 Just wondering if anyone had any thoughts on this or could point me where to look to debug?? thanks Quote Link to comment https://forums.phpfreaks.com/topic/271364-com-debugging/#findComment-1397809 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.