Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Opis\Closure\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)

Exception

ErrorException

  1. use ReflectionObject;
  2. /**
  3.  * Provides a wrapper for serialization of closures
  4.  */
  5. class SerializableClosure implements Serializable
  6. {
  7.     /**
  8.      * @var Closure Wrapped closure
  9.      *
  10.      * @see \Opis\Closure\SerializableClosure::getClosure()
  1. use ReflectionObject;
  2. /**
  3.  * Provides a wrapper for serialization of closures
  4.  */
  5. class SerializableClosure implements Serializable
  6. {
  7.     /**
  8.      * @var Closure Wrapped closure
  9.      *
  10.      * @see \Opis\Closure\SerializableClosure::getClosure()
  1.  *
  2.  * Prevents access to $this/self from included files.
  3.  */
  4. function includeFile($file)
  5. {
  6.     include $file;
  7. }
in /home/bulletmovies/public_html/vendor/composer/ClassLoader.php Composer\Autoload\includeFile (line 346)
  1.      * @return bool|null True if loaded, null otherwise
  2.      */
  3.     public function loadClass($class)
  4.     {
  5.         if ($file $this->findFile($class)) {
  6.             includeFile($file);
  7.             return true;
  8.         }
  9.     }
ClassLoader->loadClass('Opis\\Closure\\SerializableClosure')
  1.      */
  2.     protected function registerOpisSecurityKey()
  3.     {
  4.         $config $this->app->make('config')->get('app');
  5.         if (! class_exists(SerializableClosure::class) || empty($config['key'])) {
  6.             return;
  7.         }
  8.         SerializableClosure::setSecretKey($this->parseKey($config));
  9.     }
  1.      * @return void
  2.      */
  3.     public function register()
  4.     {
  5.         $this->registerEncrypter();
  6.         $this->registerOpisSecurityKey();
  7.     }
  8.     /**
  9.      * Register the encrypter.
  10.      *
  1.         // a more convenient way of specifying your service provider classes.
  2.         if (is_string($provider)) {
  3.             $provider $this->resolveProvider($provider);
  4.         }
  5.         $provider->register();
  6.         // If there are bindings / singletons set as properties on the provider we
  7.         // will spin through them and register them with the application, which
  8.         // serves as a convenience layer while registering a lot of bindings.
  9.         if (property_exists($provider'bindings')) {
  1.         // We will go ahead and register all of the eagerly loaded providers with the
  2.         // application so their services can be registered with the application as
  3.         // a provided service. Then we will set the deferred service list on it.
  4.         foreach ($manifest['eager'] as $provider) {
  5.             $this->app->register($provider);
  6.         }
  7.         $this->app->addDeferredServices($manifest['deferred']);
  8.     }
  1.                         });
  2.         $providers->splice(10, [$this->make(PackageManifest::class)->providers()]);
  3.         (new ProviderRepository($this, new Filesystem$this->getCachedServicesPath()))
  4.                     ->load($providers->collapse()->toArray());
  5.     }
  6.     /**
  7.      * Register a service provider with the application.
  8.      *
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->registerConfiguredProviders();
  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(object(Request)) in /home/bulletmovies/public_html/public/index.php (line 55)
  1. $app = require_once __DIR__.'/../bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response tap($kernel->handle(
  4.     $request Request::capture()
  5. ))->send();
  6. $kernel->terminate($request$response);

Stack Trace

ErrorException
ErrorException:
Opis\Closure\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)

  at /home/bulletmovies/public_html/vendor/opis/closure/src/SerializableClosure.php:18
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Opis\\Closure\\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)', '/home/bulletmovies/public_html/vendor/opis/closure/src/SerializableClosure.php', 18)
     (/home/bulletmovies/public_html/vendor/opis/closure/src/SerializableClosure.php:18)
  at include('/home/bulletmovies/public_html/vendor/opis/closure/src/SerializableClosure.php')
     (/home/bulletmovies/public_html/vendor/composer/ClassLoader.php:478)
  at Composer\Autoload\includeFile('/home/bulletmovies/public_html/vendor/composer/../opis/closure/src/SerializableClosure.php')
     (/home/bulletmovies/public_html/vendor/composer/ClassLoader.php:346)
  at Composer\Autoload\ClassLoader->loadClass('Opis\\Closure\\SerializableClosure')
  at class_exists('Opis\\Closure\\SerializableClosure')
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:45)
  at Illuminate\Encryption\EncryptionServiceProvider->registerOpisSecurityKey()
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:19)
  at Illuminate\Encryption\EncryptionServiceProvider->register()
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:672)
  at Illuminate\Foundation\Application->register(object(EncryptionServiceProvider))
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75)
  at Illuminate\Foundation\ProviderRepository->load(array('Illuminate\\Auth\\AuthServiceProvider', 'Illuminate\\Broadcasting\\BroadcastServiceProvider', 'Illuminate\\Bus\\BusServiceProvider', 'Illuminate\\Cache\\CacheServiceProvider', 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider', 'Illuminate\\Cookie\\CookieServiceProvider', 'Illuminate\\Database\\DatabaseServiceProvider', 'Illuminate\\Encryption\\EncryptionServiceProvider', 'Illuminate\\Filesystem\\FilesystemServiceProvider', 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider', 'Illuminate\\Hashing\\HashServiceProvider', 'Illuminate\\Mail\\MailServiceProvider', 'Illuminate\\Notifications\\NotificationServiceProvider', 'Illuminate\\Pagination\\PaginationServiceProvider', 'Illuminate\\Pipeline\\PipelineServiceProvider', 'Illuminate\\Queue\\QueueServiceProvider', 'Illuminate\\Redis\\RedisServiceProvider', 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider', 'Illuminate\\Session\\SessionServiceProvider', 'Illuminate\\Translation\\TranslationServiceProvider', 'Illuminate\\Validation\\ValidationServiceProvider', 'Illuminate\\View\\ViewServiceProvider', 'Fideloper\\Proxy\\TrustedProxyServiceProvider', 'Fruitcake\\Cors\\CorsServiceProvider', 'Intervention\\Image\\ImageServiceProvider', 'Jenssegers\\Agent\\AgentServiceProvider', 'Laravel\\Tinker\\TinkerServiceProvider', 'Laravel\\Ui\\UiServiceProvider', 'Collective\\Html\\HtmlServiceProvider', 'Carbon\\Laravel\\ServiceProvider', 'Spatie\\Sitemap\\SitemapServiceProvider', 'Stevebauman\\Location\\LocationServiceProvider', 'Stevebauman\\Location\\LocationServiceProvider', 'Jenssegers\\Agent\\AgentServiceProvider', 'App\\Providers\\AppServiceProvider', 'App\\Providers\\AuthServiceProvider', 'App\\Providers\\EventServiceProvider', 'App\\Providers\\RouteServiceProvider', 'Collective\\Html\\HtmlServiceProvider', 'Intervention\\Image\\ImageServiceProvider'))
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:649)
  at Illuminate\Foundation\Application->registerConfiguredProviders()
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17)
  at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(object(Application))
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237)
  at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders'))
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:152)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:136)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/home/bulletmovies/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/home/bulletmovies/public_html/public/index.php:55)