I have a Laravel project, but when I installed it on another laptop it didn’t work, an error appeared when the environment was changed to Development, the error is as below.
Even though my previous laptop was normal.
A PHP Error was encountered
Severity: Warning
Message: include_once(C:xampphtdocstalent-crmapplicationhooks/libraries/App_modules.php): Failed to open stream: No such file or directory
Filename: hooks/InitModules.php
Line Number: 12
Backtrace:
File: C:xampphtdocstalent-crmapplicationhooksInitModules.php
Line: 12
Function: _error_handler
File: C:xampphtdocstalent-crmapplicationhooksInitModules.php
Line: 12
Function: include_once
File: C:xampphtdocstalent-crmindex.php
Line: 319
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: include_once(): Failed opening 'C:xampphtdocstalent-crmapplicationhooks/libraries/App_modules.php' for inclusion (include_path='C:xamppphpPEAR')
Filename: hooks/InitModules.php
Line Number: 12
Backtrace:
File: C:xampphtdocstalent-crmapplicationhooksInitModules.php
Line: 12
Function: _error_handler
File: C:xampphtdocstalent-crmapplicationhooksInitModules.php
Line: 12
Function: include_once
File: C:xampphtdocstalent-crmindex.php
Line: 319
Function: require_once
An uncaught Exception was encountered
Type: Error
Message: Class "App_modules" not found
Filename: C:xampphtdocstalent-crmapplicationhooksInitModules.php
Line Number: 17
Backtrace:
File: C:xampphtdocstalent-crmindex.php
Line: 319
Function: require_once
What’s the solution? Is the missing setting on the laptop XAMPP?
the php versions are both 8.2
New contributor
Putri ilyassani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.