Hey all,
When pushing a key on the main menu I sometimes get this error:
!JavaScript /sbbs/exec/default.js line 198: Error: Script file () does not exist
and
!JavaScript /sbbs/exec/default.js line 249: Error: Script file () does not exist
I am running Synchronet 3.20. Has anyone had this error before? I compiled last night so I'm up to date with Git.
When pushing which key? Does the file exec/str_cmds.js exist?
Re: Script file () does not exist
By: Digital Man to Nick Young on Wed Jul 19 2023 10:55:00
When pushing which key? Does the file exec/str_cmds.js exist?
Yes, exec/str_cmds.js exists. I can reproduce the error by reading a message on a message area, clicking Q, then clicking E quite quickly. So message -> main menu -> email, except it doesn't goto the email menu because the error pops up. The error always pops up after quitting reading a message and then going to the email menu.
Re: Script file () does not exist
By: Nick Young to Digital Man on Wed Jul 19 2023 19:19:15
Yes, the error is just:
!JavaScript default.js line 249: Error: Script file () does not exist
I'm not using the standard Synchronet mail reader, I bet that's it... I'll change to defaults and see if that fixes it.
I'm not really sure what you're saying there. But I don't think your "mail reader" of choice is the issue either.
I'm not really sure what you're saying there. But I don't think your
"mail reader" of choice is the issue either.
I am using Digital Distortion's Message Reader... and I've switched back to it and the issue has started again.
Earlier you said you're getting that error when pushing a key at your main menu.. You aren't in the message reader at that point, so I doubt it's related.
Earlier you said you're getting that error when pushing a key at
your main menu.. You aren't in the message reader at that point, so
I doubt it's related.
I do agree, but there's no error when using the built-in Synchronet msg reader.
Re: Script file () does not exist
By: Digital Man to Nick Young on Wed Jul 19 2023 17:02:10
I'm not really sure what you're saying there. But I don't think your "mail reader" of choice is the issue either.
I am using Digital Distortion's Message Reader... and I've switched back to it and the issue has started again.
Re: Script file () does not exist
By: Nightfox to Nick Young on Wed Jul 19 2023 21:21:20
Earlier you said you're getting that error when pushing a key at your main menu.. You aren't in the message reader at that point, so I doubt it's related.
I do agree, but there's no error when using the built-in Synchronet msg reader.
What about when using http://wiki.synchro.net/module:msglist ?
What about when using http://wiki.synchro.net/module:msglist ?
When I used msglist module, the error stopped. Also the error stops when using default.src/.bin rather than the JS file. Just to confirm, I am using DDMsgReader with default.bin.
Re: Script file () does not exist
By: Digital Man to Nick Young on Thu Jul 20 2023 12:00:13
What about when using http://wiki.synchro.net/module:msglist ?
When I used msglist module, the error stopped. Also the error stops when using default.src/.bin rather than the JS file. Just to confirm, I am using DDMsgReader with default.bin.
Earlier you said you're getting that error when pushing a key at
your main menu.. You aren't in the message reader at that point, so
I doubt it's related.
I do agree, but there's no error when using the built-in Synchronet msg reader.
When pushing a key on the main menu I sometimes get this error:
!JavaScript /sbbs/exec/default.js line 198: Error: Script file ()
does not exist
Re: Script file () does not exist
By: Digital Man to Nick Young on Wed Jul 19 2023 10:55 am
When pushing a key on the main menu I sometimes get this error:
!JavaScript /sbbs/exec/default.js line 198: Error: Script file ()
does not exist
Hi DM,
I think I've found out what's going on with this error.
js.exec() is being called to run a script (such as email_sec.js), and I think the current working directory might be changing or something, where it can't find the file in the current working directory.
In default.js, the 'command' object in main_menu defines 'E' as an object with an 'exec' property of 'email_sec.js'. Then, on line 250 of default.js, it calls this:
js.exec(menu_cmd.exec, {});
That's where it outputs the error after running DDMsgReader. DDMsgReader is in a different directory than email_sec.js, which is why I'm wondering if the current working directory is changed, and after that, js.exec() isn't finding the file that is passed to it. I found that it can be fixed by prepending the filename with system.exec_dir (I did it in the command object):
'E': { exec: system.exec_dir + 'email_sec.js' },
Sysop: | altere |
---|---|
Location: | Houston, TX |
Users: | 66 |
Nodes: | 4 (0 / 4) |
Uptime: | 16:48:11 |
Calls: | 728 |
Files: | 7,667 |
Messages: | 292,773 |