Author |
|
device Newbie
Joined: May 26 2009
Online Status: Offline Posts: 33
|
Posted: November 28 2011 at 04:22 | IP Logged
|
|
|
My old powerhome machine recently became a doorstop. I installed PH to a new machine and copied the database ini and scripts. Now whenever a script inside PH is supposed to run it returns an initialization error. A bare VBScript runs fine outside of PH. I added the entries from PHSCR to the registry. I am sure some bit of configuration is missing - any ideas?
Thanks!
Device
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 29 2011 at 17:28 | IP Logged
|
|
|
Device,
Which version of PH are you running? The 2.1.4 beta uses a different module for vbscript and requires a different registration than phscr.reg.
If you're on version 2.1b, did you verify that the filepath (towards the end of the reg file) was pointed to the proper location and you had double backslashes (\\) in the name?
Dave.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 29 2011 at 17:29 | IP Logged
|
|
|
Also,
What is the specific error that is returned. I should be able to track down in source where it is actually failing.
Dave.
|
Back to Top |
|
|
device Newbie
Joined: May 26 2009
Online Status: Offline Posts: 33
|
Posted: November 29 2011 at 19:35 | IP Logged
|
|
|
Dave,
Thanks for the reply. It is 2.1b. I am yet again on a business trip but will check in when I get back Friday. Didn't get the new system set up for remote access before I left but as I remember the next to last line in phscr.reg pointed to the phscr.pbd file and the path was correct. As I remember the error which was placed in a global inside a macro was something like INITIALIZE ERROR filename devicechg.vbs line 0 col 0.
Thanks!!
D
Edited by device - December 04 2011 at 05:22
|
Back to Top |
|
|
device Newbie
Joined: May 26 2009
Online Status: Offline Posts: 33
|
Posted: December 04 2011 at 05:24 | IP Logged
|
|
|
The error which is the return value from ph_runscript_0 is *** INITIALIZE ERROR - Filename: C:\Program Files\powerhome\devicechg.vbs | Function: devicechg | Source: | Error Number: 0 | Description: | Line: 0 | Column: 0 | Text: ***
D
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: December 04 2011 at 21:57 | IP Logged
|
|
|
D,
Ive traced the error and the only way Im able to replicate it is by changing LOADSCRIPT=NO in the pwrhome.ini file under the [System] section. If this parm is set to NO, then PowerHome doesnt load the scriptserver at all and the above error will result. Not saying this is your problem but would be the next thing I would check. The only thing that worries me is you said you copied your pwrhome.ini file and if this was working before, then this should have been set to YES.
Let me know what you find.
Dave.
|
Back to Top |
|
|
device Newbie
Joined: May 26 2009
Online Status: Offline Posts: 33
|
Posted: December 05 2011 at 01:28 | IP Logged
|
|
|
Dave,
All I can say is that I intended to copy the ini. I went back and copied the ini and things are working again. Thanks for all the time and help - sorry for my mistake.
Best regards,
D
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: December 05 2011 at 22:48 | IP Logged
|
|
|
D,
No problem. Glad we got it working.
Dave.
|
Back to Top |
|
|