Symfony Exception

TypeError

HTTP 500 Internal Server Error

Carbon\Carbon::setLastErrors(): Argument #1 ($lastErrors) must be of type array, bool given, called in /home/drabyast/durbar.com.np/durbar/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 98

Exception

TypeError

  1.      *
  2.      * @param array $lastErrors
  3.      *
  4.      * @return void
  5.      */
  6.     private static function setLastErrors(array $lastErrors)
  7.     {
  8.         static::$lastErrors $lastErrors;
  9.     }
  10.     /**
  1.         if (isset($locale)) {
  2.             setlocale(LC_NUMERIC$locale);
  3.         }
  4.         static::setLastErrors(parent::getLastErrors());
  5.     }
  6.     /**
  7.      * Get timezone from a datetime instance.
  8.      *
  1.      *
  2.      * @return static
  3.      */
  4.     public static function now($tz null)
  5.     {
  6.         return new static(null$tz);
  7.     }
  8.     /**
  9.      * Create a Carbon instance for today.
  10.      *
  1.         $dateClass = static::$dateClass ?: $defaultClassName;
  2.         // Check if date can be created using public class method...
  3.         if (method_exists($dateClass$method) ||
  4.             method_exists($dateClass'hasMacro') && $dateClass::hasMacro($method)) {
  5.             return $dateClass::$method(...$parameters);
  6.         }
  7.         // If that fails, create the date with the default class...
  8.         $date $defaultClassName::$method(...$parameters);
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
  1.      * @param  \DateTimeZone|string|null  $tz
  2.      * @return \Illuminate\Support\Carbon
  3.      */
  4.     function now($tz null)
  5.     {
  6.         return Date::now($tz);
  7.     }
  8. }
  9. if (! function_exists('old')) {
  10.     /**
  1.      *
  2.      * @return Carbon
  3.      */
  4.     protected function expires()
  5.     {
  6.         return now()->subSeconds($this->expires);
  7.     }
  8.     /**
  9.      * Return a random string for an activation code.
  10.      *
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function removeExpired()
  5.     {
  6.         $expires $this->expires();
  7.         return $this
  8.             ->model
  9.             ->newQuery()
  10.             ->where('completed'false)
  1.      */
  2.     protected function sweep($repository, array $lottery)
  3.     {
  4.         if ($this->configHitsLottery($lottery)) {
  5.             try {
  6.                 $repository->removeExpired();
  7.             } catch (Exception $exception) {
  8.                 info($exception->getMessage());
  9.             }
  10.         }
  11.     }
  1.      */
  2.     protected function garbageCollect()
  3.     {
  4.         $config $this->app->make('config')->get('core.acl.general');
  5.         $this->sweep($this->app->make(ActivationInterface::class), $config['activations']['lottery']);
  6.     }
  7.     /**
  8.      * Sweep expired codes.
  9.      *
  1.             ->loadAndPublishTranslations()
  2.             ->publishAssets()
  3.             ->loadRoutes(['web'])
  4.             ->loadMigrations();
  5.         $this->garbageCollect();
  6.         Event::listen(RouteMatched::class, function () {
  7.             dashboard_menu()
  8.                 ->registerItem([
  9.                     'id'          => 'cms-core-role-permission',
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  9.      * Call a string reference to a class using Class@method syntax.
  1.      * @param  mixed  $value
  2.      * @return mixed
  3.      */
  4.     public static function unwrapIfClosure($value)
  5.     {
  6.         return $value instanceof Closure $value() : $value;
  7.     }
  8.     /**
  9.      * Get the class name of the given parameter's type, if possible.
  10.      *
  1.         if ($container->hasMethodBinding($method)) {
  2.             return $container->callMethodBinding($method$callback[0]);
  3.         }
  4.         return Util::unwrapIfClosure($default);
  5.     }
  6.     /**
  7.      * Normalize the given callback into a Class@method string.
  8.      *
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  1.      *
  2.      * @throws \InvalidArgumentException
  3.      */
  4.     public function call($callback, array $parameters = [], $defaultMethod null)
  5.     {
  6.         return BoundMethod::call($this$callback$parameters$defaultMethod);
  7.     }
  8.     /**
  9.      * Get a closure to resolve the given type from the container.
  10.      *
  1.     protected function bootProvider(ServiceProvider $provider)
  2.     {
  3.         $provider->callBootingCallbacks();
  4.         if (method_exists($provider'boot')) {
  5.             $this->call([$provider'boot']);
  6.         }
  7.         $provider->callBootedCallbacks();
  8.     }
  1.         // for any listeners that need to do work after this initial booting gets
  2.         // finished. This is useful when ordering the boot-up processes we run.
  3.         $this->fireAppCallbacks($this->bootingCallbacks);
  4.         array_walk($this->serviceProviders, function ($p) {
  5.             $this->bootProvider($p);
  6.         });
  7.         $this->booted true;
  8.         $this->fireAppCallbacks($this->bootedCallbacks);
Application->Illuminate\Foundation\{closure}()
  1.         // Once the application has booted we will also fire some "booted" callbacks
  2.         // for any listeners that need to do work after this initial booting gets
  3.         // finished. This is useful when ordering the boot-up processes we run.
  4.         $this->fireAppCallbacks($this->bootingCallbacks);
  5.         array_walk($this->serviceProviders, function ($p) {
  6.             $this->bootProvider($p);
  7.         });
  8.         $this->booted true;
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->boot();
  7.     }
  8. }
  1.         $this->hasBeenBootstrapped true;
  2.         foreach ($bootstrappers as $bootstrapper) {
  3.             $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
  4.             $this->make($bootstrapper)->bootstrap($this);
  5.             $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
  6.         }
  7.     }
  1.      * @return void
  2.      */
  3.     public function bootstrap()
  4.     {
  5.         if (! $this->app->hasBeenBootstrapped()) {
  6.             $this->app->bootstrapWith($this->bootstrappers());
  7.         }
  8.     }
  9.     /**
  10.      * Get the route dispatcher callback.
  1.     {
  2.         $this->app->instance('request'$request);
  3.         Facade::clearResolvedInstance('request');
  4.         $this->bootstrap();
  5.         return (new Pipeline($this->app))
  6.                     ->send($request)
  7.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  8.                     ->then($this->dispatchToRouter());
  1.     public function handle($request)
  2.     {
  3.         try {
  4.             $request->enableHttpMethodParameterOverride();
  5.             $response $this->sendRequestThroughRouter($request);
  6.         } catch (Throwable $e) {
  7.             $this->reportException($e);
  8.             $response $this->renderException($request$e);
  9.         }
Kernel->handle() in /home/drabyast/durbar.com.np/index.php (line 55)
  1.     return __DIR__;
  2. });
  3. $kernel $app->make(Kernel::class);
  4. $response tap($kernel->handle(
  5.     $request Request::capture()
  6. ))->send();
  7. $kernel->terminate($request$response);

Stack Trace

TypeError
TypeError:
Carbon\Carbon::setLastErrors(): Argument #1 ($lastErrors) must be of type array, bool given, called in /home/drabyast/durbar.com.np/durbar/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 98

  at /home/drabyast/durbar.com.np/durbar/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:928
  at Carbon\Carbon::setLastErrors()
     (/home/drabyast/durbar.com.np/durbar/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:98)
  at Carbon\Carbon->__construct()
     (/home/drabyast/durbar.com.np/durbar/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:252)
  at Carbon\Carbon::now()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Support/DateFactory.php:217)
  at Illuminate\Support\DateFactory->__call()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:550)
  at now()
     (/home/drabyast/durbar.com.np/durbar/vendor/cyberros/platform/acl/src/Repositories/Eloquent/ActivationRepository.php:163)
  at Cyberros\ACL\Repositories\Eloquent\ActivationRepository->expires()
     (/home/drabyast/durbar.com.np/durbar/vendor/cyberros/platform/acl/src/Repositories/Eloquent/ActivationRepository.php:146)
  at Cyberros\ACL\Repositories\Eloquent\ActivationRepository->removeExpired()
     (/home/drabyast/durbar.com.np/durbar/vendor/cyberros/platform/acl/src/Providers/AclServiceProvider.php:127)
  at Cyberros\ACL\Providers\AclServiceProvider->sweep()
     (/home/drabyast/durbar.com.np/durbar/vendor/cyberros/platform/acl/src/Providers/AclServiceProvider.php:113)
  at Cyberros\ACL\Providers\AclServiceProvider->garbageCollect()
     (/home/drabyast/durbar.com.np/durbar/vendor/cyberros/platform/acl/src/Providers/AclServiceProvider.php:70)
  at Cyberros\ACL\Providers\AclServiceProvider->boot()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36)
  at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Container/Util.php:40)
  at Illuminate\Container\Util::unwrapIfClosure()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93)
  at Illuminate\Container\BoundMethod::callBoundMethod()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35)
  at Illuminate\Container\BoundMethod::call()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Container/Container.php:653)
  at Illuminate\Container\Container->call()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:924)
  at Illuminate\Foundation\Application->bootProvider()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:905)
  at Illuminate\Foundation\Application->Illuminate\Foundation\{closure}()
  at array_walk()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:904)
  at Illuminate\Foundation\Application->boot()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17)
  at Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:153)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:137)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/home/drabyast/durbar.com.np/index.php:55)