leokhoa / laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
https://laragon.org
4.48k stars 372 forks source link

Invalid Class #355

Open mattgeminiworktops opened 1 year ago

mattgeminiworktops commented 1 year ago

Hi I am getting an error when trying to start Laragon Oh no, Laragon detected exceptions. Invalid Class. I was running Laragon 5, have tried to upgrade but no joy. I can't find anybody else that has experienced this problem hence opening a ticket Thank you

desalancer commented 1 year ago

I am getting same error after running Laragon 6.0 in few seconds.

"Oh no, Laragon detected Exceptions. Invalid Class."

image

Thank You

aljohn-ma commented 1 year ago

Capture

gulkhandigi commented 1 year ago

please help this issue for me

xpatk commented 1 year ago

Has this been resolved? I'm experiencing the same issue since i installed myphp

xpatk commented 1 year ago

If anyone is still looking for a solution . This helped me 👍🏻 https://support.hpe.com/hpesc/public/docDisplay?docId=c03440207&docLocale=en_US

alfiansyahwildhan commented 8 months ago

up, please help this issue for me

ornela03 commented 5 months ago

There is a solution? I couldn't solve this problem

lesposner commented 5 months ago

I have recently experienced this issue and managed to fix it running some of what is indicated on the page when following the link in xpatk's post above.

Here's what happened and what I did in the hope it helps someone.

Thursday 24 May 2024 I was getting an SSL error when trying to send an email from the local using the server's mailbox, something I had been doing for over a year.

Whilst investigating I clicked 'Add laragon.crt to Trust Store' and immediately got the error.

I tried reinstalling version 6.0.0 and still had the error.

I uninstalled Laragon and removed from the registry everything I could find that was related to Laragon.

I reinstalled Laragon v.6.0.0 and still had the error.

Following the instructions here https://support.hpe.com/hpesc/public/docDisplay?docId=c03440207&docLocale=en_US I ran:

C:\Windows\System32\wbem>regsvr32 /s %systemroot%\system32\scecli.dll

C:\Windows\System32\wbem>regsvr32 /s %systemroot%\system32\userenv.dll

C:\Windows\System32\wbem>regsvr32 cimwin32.dll

C:\Windows\System32\wbem>mofcomp cimwin32.mof Microsoft (R) MOF Compiler Version 10.0.19041.3758 Copyright (c) Microsoft Corp. 1997-2006. All rights reserved. Parsing MOF file: cimwin32.mof MOF file has been successfully parsed Storing data in the repository... Done!

C:\Windows\System32\wbem>mofcomp cimwin32.mfl Microsoft (R) MOF Compiler Version 10.0.19041.3758 Copyright (c) Microsoft Corp. 1997-2006. All rights reserved. File 'cimwin32.mfl' not found!

As the file cimwin32.mfl was not found I stopped here and launched Laragon again.

The error was gone.

I clicked 'Add laragon.crt to Trust Store' and didn't get the error this time.

Hope this helps someone.

lucianodigital2b commented 1 month ago

I have recently experienced this issue and managed to fix it running some of what is indicated on the page when following the link in xpatk's post above.

Here's what happened and what I did in the hope it helps someone.

Thursday 24 May 2024 I was getting an SSL error when trying to send an email from the local using the server's mailbox, something I had been doing for over a year.

Whilst investigating I clicked 'Add laragon.crt to Trust Store' and immediately got the error.

I tried reinstalling version 6.0.0 and still had the error.

I uninstalled Laragon and removed from the registry everything I could find that was related to Laragon.

I reinstalled Laragon v.6.0.0 and still had the error.

Following the instructions here https://support.hpe.com/hpesc/public/docDisplay?docId=c03440207&docLocale=en_US I ran:

C:\Windows\System32\wbem>regsvr32 /s %systemroot%\system32\scecli.dll

C:\Windows\System32\wbem>regsvr32 /s %systemroot%\system32\userenv.dll

C:\Windows\System32\wbem>regsvr32 cimwin32.dll

C:\Windows\System32\wbem>mofcomp cimwin32.mof Microsoft (R) MOF Compiler Version 10.0.19041.3758 Copyright (c) Microsoft Corp. 1997-2006. All rights reserved. Parsing MOF file: cimwin32.mof MOF file has been successfully parsed Storing data in the repository... Done!

C:\Windows\System32\wbem>mofcomp cimwin32.mfl Microsoft (R) MOF Compiler Version 10.0.19041.3758 Copyright (c) Microsoft Corp. 1997-2006. All rights reserved. File 'cimwin32.mfl' not found!

As the file cimwin32.mfl was not found I stopped here and launched Laragon again.

The error was gone.

I clicked 'Add laragon.crt to Trust Store' and didn't get the error this time.

Hope this helps someone.

worked like a charm thanks

ProtikAcharjay commented 3 weeks ago

https://github.com/leokhoa/laragon/issues/355#issuecomment-2132291629 Worked for me excellently. Thanks a lot. Note- don't forget C:\Windows\System32\wbem> To cd wbem after running command prompt as administrator