M
M
Minusator2019-01-20 20:38:04
Laravel
Minusator, 2019-01-20 20:38:04

After switching to https I get an error. Why is this happening?

Good!
On Laravel 5, after switching to https, when accessing the user.php?action=login file, I get a bunch of errors. I turn off https - everything is fine in the interface. Help me to understand. Installed on php 7.3 hosting.

Fatal error: Uncaught ReflectionException: Class setConnection does not exist in /home/c1866/site.ru/www/vendor/illuminate/container/Container.php:779 Stack trace: #0 /home/c1866/site.ru/www/vendor/illuminate/container/Container.php(779): ReflectionClass->__construct('setConnection') #1 /home/c1866/site.ru/www/vendor/illuminate/container/Container.php(659): Illuminate\Container\Container->build('setConnection', Array) #2 /home/c1866/site.ru/www/vendor/illuminate/container/Container.php(1234): Illuminate\Container\Container->make('setConnection') #3 /home/c1866/site.ru/www/vendor/hazzard/validation/src/Validator.php(34): Illuminate\Container\Container->offsetGet('setConnection') #4 /home/c1866/site.ru/www/comments/src/Support/BootstrapTrait.php(115): Hazzard\Validation\Validator->__construct(Object(ACS\Comments\Comments)) #5 /home/c1866/site.ru/www/vendor/illuminate/container/Container.php(776): ACS\Comments\Comments->ACS\Support\{closure}(Object(ACS\Comments\Comments), Array) #6 /home/c1866/site.ru/www/vendor/illuminate/container in /home/c1866/site.ru/www/vendor/illuminate/container/Container.php on line 779

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Talalaev, 2019-01-20
@Minusator

1. Check the install .envfile APP_URL=with https:// , although this usually does not affect, but it can potentially be used somewhere and, depending on the settings of the http server, give an error.
2. Clear settings cache:
3. Clear general cache
php artisan cache:clear

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question