Oh no, Laragon detected exceptions - Unable to create directory. --> but WHAT directory?
I just installed Laragon 2.1.3 (Nginx full install) and when I start it, it says:
Oh no, Laragon detected exceptions!
Unable to create directory.
There's no logs or indication as to what directory it might be trying to create and running as administrator doesn't fix the problem.
I wonder if it might be somewhat more useful to include a "full stack trace" or better error message because that error message might as well read "Something went wrong."
I suspect your Antivirus prevented Laragon from creating a missing directory.
I always want to show more details in exception errors. However, this kind is OS exception error message. If I know the steps you did I can improve Laragon.
@leokhoa It's not the antivirus program.
But I see the following:
 shell\systemsettingsthreshold\handlers\internal\display\lib\display.cpp(2461)\SettingsHandlers_nt.dll!00007FFA1F9C61D8: (caller: 00007FFA1F9C10A2) Exception(4399) tid(1154) 80070002 The system cannot find the file specified.
 shell\systemsettingsthreshold\handlers\internal\display\lib\display.cpp(2483)\SettingsHandlers_nt.dll!00007FFA1F9C1141: (caller: 00007FFA1F9C5E76) LogHr(4399) tid(1154) 80070002 The system cannot find the file specified.
 Msg:[shell\systemsettingsthreshold\handlers\internal\display\lib\display.cpp(2461)\SettingsHandlers_nt.dll!00007FFA1F9C61D8: (caller: 00007FFA1F9C10A2) Exception(4399) tid(1154) 80070002 The system cannot find the file specified.
 shell\explorer\taskband2\taskband2.cpp(4148)\Explorer.EXE!00007FF630D97C4A: (caller: 00007FFA5C6A7DE3) ReturnHr(1913) tid(17c0) 80004005 Unspecified error
 avcore\npsm\localprovider\baseprovider\lib\baseprovider.cpp(604)\NPSMDesktopProvider.dll!00007FFA4B5D2140: (caller: 00007FFA4B5D26E5) ReturnHr(2034) tid(15d8) 80070490 Element not found.
 ds\security\smartscreen\common\core\src\script_host.cpp(51)\smartscreen.exe!00007FF6EE255697: (caller: 00007FF6EE255DD8) Exception(20) tid(4024) 80070001 Incorrect function.
 Msg:[Unable to get property 'substr' of undefined or null reference - TypeError: Unable to get property 'substr' of undefined or null reference
 at ShellCallbacks.isFileSupported (Unknown script code:1:2413)
 at ShellCallbacks.prototype.getSamplingRate (Unknown script code:1:2988)
 at Anonymous function (Unknown script code:1:925)
 at Array.prototype.reduce (native code)
 at CallbacksBase.prototype.getSamplingRates (Unknown script code:1:900)
 at CallbacksBase.prototype.filterEvents (Unknown script code:1:2036)
 at filterEvents (Unknown script code:1:43)
 at _dispatch (Unknown script code:13:21)]
This happens just before Laragon crashes with the exception - my guess is that it's looking for some sort of ini file and it can't find it or something similar.
I've turned off all known anti-virus programs (i.e. even with Windows Defender off and disabled) and still get the same error although the fact it's in something called 'smartscreen' sort of looks fishy.
Strange. I have no idea about smartscreen.exe
@lloy0076: I found it!!!. It's a serious bug but hard to re-produce. I've fixed it in Laragon 2.1.4
I've released Laragon 2.1.4, check it out
@leokhoa - thanks - just installed (sorry, been busy of late) and it's working fine.
The Lucy Obladi
@leokhoa Hi can you tell what was wrong here that you fixed? I have the same problem on my script. Thanks! I hope you reply soon. Sorry I know this thread is already closed.
@The-Lucy-Obladi: I did not remember what was wrong but I suggest you to use the latest version (2.2.2)
The Lucy Obladi
@leokhoa oh boy.. Sure that'll do. Big thanks that I heard back from you! Cheers!