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.      *
  2.      * @return int
  3.      */
  4.     protected function currentTime()
  5.     {
  6.         return Carbon::now()->getTimestamp();
  7.     }
  8. }
  1.         }
  2.         // If the current time is greater than expiration timestamps we will delete
  3.         // the file and return null. This helps clean up the old files and keeps
  4.         // this directory much cleaner for us as old files aren't hanging out.
  5.         if ($this->currentTime() >= $expire) {
  6.             $this->forget($key);
  7.             return $this->emptyPayload();
  8.         }
  1.      * @param  string|array  $key
  2.      * @return mixed
  3.      */
  4.     public function get($key)
  5.     {
  6.         return $this->getPayload($key)['data'] ?? null;
  7.     }
  8.     /**
  9.      * Store an item in the cache for a given number of seconds.
  10.      *
  1.     {
  2.         if (is_array($key)) {
  3.             return $this->many($key);
  4.         }
  5.         $value $this->store->get($this->itemKey($key));
  6.         // If we could not find the cache value, we will fire the missed event and get
  7.         // the default value for this cache value. This default could be a callback
  8.         // so we will execute the value function which will resolve it if needed.
  9.         if (is_null($value)) {
  1.      * @param  string  $key
  2.      * @return bool
  3.      */
  4.     public function has($key)
  5.     {
  6.         return ! is_null($this->get($key));
  7.     }
  8.     /**
  9.      * Determine if an item doesn't exist in the cache.
  10.      *
  1.      * @param  array  $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call($method$parameters)
  5.     {
  6.         return $this->store()->$method(...$parameters);
  7.     }
  8. }
  1.         $plugins get_active_plugins();
  2.         if (!empty($plugins) && is_array($plugins)) {
  3.             $loader = new ClassLoader;
  4.             $providers = [];
  5.             $namespaces = [];
  6.             if (cache()->has('plugin_namespaces') && cache()->has('plugin_providers')) {
  7.                 $providers cache('plugin_providers');
  8.                 if (!is_array($providers) || empty($providers)) {
  9.                     $providers = [];
  10.                 }
  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/InteractsWithTime.php:62)
  at Illuminate\Cache\FileStore->currentTime()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:264)
  at Illuminate\Cache\FileStore->getPayload()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:61)
  at Illuminate\Cache\FileStore->get()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:97)
  at Illuminate\Cache\Repository->get()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:70)
  at Illuminate\Cache\Repository->has()
     (/home/drabyast/durbar.com.np/durbar/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:418)
  at Illuminate\Cache\CacheManager->__call()
     (/home/drabyast/durbar.com.np/durbar/vendor/cyberros/plugin-management/src/Providers/PluginManagementServiceProvider.php:38)
  at Cyberros\PluginManagement\Providers\PluginManagementServiceProvider->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)