How to solve PHPMailer related error in laravel?

Viewed 39

I'm facing a problem with Laravel. I was asked to modify and make some changes in a Laravel project, it is working perfectly in production, but unfortunately, I'm facing difficulty to run it locally. The home page is working perfectly but I'm getting an error while trying to open the other pages in the browser. The error is:

PHP Warning: Uncaught ErrorException: require_once(/var/www/vhosts/l825.odp-cloud.com/appointment-system.com/PHPMailer/PHPMailer.php): failed to open stream: No such file or directory in C:\xampp\htdocs\appointment-system\app\Helpers\UtilsHelper.php:7 Stack trace: #0 C:\xampp\htdocs\appointment-system\app\Helpers\UtilsHelper.php(7): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'require_once(/v...', 'C:\xampp\htdocs...', 7, Array) #1 C:\xampp\htdocs\appointment-system\app\Helpers\UtilsHelper.php(7): require_once() #2 C:\xampp\htdocs\appointment-system\vendor\composer\ClassLoader.php(571): include('C:\xampp\htdocs...') #3 C:\xampp\htdocs\appointment-system\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile('C:\xampp\htdocs...') #4 [internal function]: Composer\Autoload\ClassLoader->loadClass('App\Helpers\Uti...') #5 C:\xampp\htdocs\appointment-system\app\Helpers\SlotsHelper.php(44): spl_autoload_call('App\Helpers\Uti...') #6 C:\xampp\htdocs\appointment-system\app\Helpers\SlotsH in C:\xampp\htdocs\appointment-system\app\Helpers\UtilsHelper.php on line 7 [Tue Sep 13 12:08:21 2022] PHP Fatal error: main(): Failed opening required '/var/www/vhosts/l825.odp-cloud.com/appointment-system.com/PHPMailer/PHPMailer.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\appointment-system\app\Helpers\UtilsHelper.php on line 7 [Tue Sep 13 12:08:22 2022] 127.0.0.1:50334 Closing

enter image description here

enter image description here

0 Answers
Related