trying to access array offset on value of type null (500 internal server error)-嘉年华jnh9998-嘉年华娱乐jnh9998-嘉年华国际jnh9998

errorexception

http 500 internal server error

exception

errorexception

in (line 39)
  1.         #var_dump($article_json_news);
  2.         $content $article_json['content'];
  3.         $title $article_json['title'];
  4.         $content_news $article_json_news['content'];
  5.         $title_news $article_json_news['title'];
  6.         $content_xz $article_json_xz['content'];
  7.         $title_xz $article_json_xz['title'];
  8.         
  9.         $redis redis::connection()->client();
  10.         $get_path_domain get_path_settings();
  11.         $rand_game_version rand_game_version();
in -> handleerror (line 47)
  1.     protected function registererrorhandling()
  2.     {
  3.         error_reporting(-1);
  4.         set_error_handler(function ($level$message$file ''$line 0) {
  5.             $this->handleerror($level$message$file$line);
  6.         });
  7.         set_exception_handler(function ($e) {
  8.             $this->handleexception($e);
  9.         });
application->laravel\lumen\concerns\{closure}() in (line 39)
  1.         #var_dump($article_json_news);
  2.         $content $article_json['content'];
  3.         $title $article_json['title'];
  4.         $content_news $article_json_news['content'];
  5.         $title_news $article_json_news['title'];
  6.         $content_xz $article_json_xz['content'];
  7.         $title_xz $article_json_xz['title'];
  8.         
  9.         $redis redis::connection()->client();
  10.         $get_path_domain get_path_settings();
  11.         $rand_game_version rand_game_version();
pathshowcontroller::calc_view_data() in (line 79)
  1.     public function index(request $request){
  2.         $get_path_domain get_path_settings();
  3.         # 缓存系统
  4.         if($get_path_domain['cache'] == 1){
  5.             $cache_view cache::get($request->fullurl().check_spider(), function () use ($request){
  6.                 $calc_view_data self::calc_view_data();
  7.                 cache::put($request->fullurl().check_spider(), ''.$calc_view_data);
  8.                 return $calc_view_data;
  9.             });
  10.         }else{
  11.             $cache_view self::calc_view_data();
in -> app\http\controllers\{closure} (line 184)
  1.      * @param  mixed  $value
  2.      * @return mixed
  3.      */
  4.     function value($value, ...$args)
  5.     {
  6.         return $value instanceof closure $value(...$args) : $value;
  7.     }
  8. }
in value (line 105)
  1.         // the default value for this cache value. this default could be a callback
  2.         // so we will execute the value function which will resolve it if needed.
  3.         if (is_null($value)) {
  4.             $this->event(new cachemissed($key));
  5.             $value value($default);
  6.         } else {
  7.             $this->event(new cachehit($key$value));
  8.         }
  9.         return $value;
in -> get (line 418)
  1.      * @param  array  $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call($method$parameters)
  5.     {
  6.         return $this->store()->$method(...$parameters);
  7.     }
  8. }
in -> __call (line 261)
  1.         if (! $instance) {
  2.             throw new runtimeexception('a facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
facade::__callstatic() in (line 82)
  1.         if($get_path_domain['cache'] == 1){
  2.             $cache_view cache::get($request->fullurl().check_spider(), function () use ($request){
  3.                 $calc_view_data self::calc_view_data();
  4.                 cache::put($request->fullurl().check_spider(), ''.$calc_view_data);
  5.                 return $calc_view_data;
  6.             });
  7.         }else{
  8.             $cache_view self::calc_view_data();
  9.         }
  10.         return response($cache_view);
in -> index (line 36)
  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.
in :: illuminate\container\{closure} (line 40)
  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.      *
in :: unwrapifclosure (line 93)
  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.      *
in :: callboundmethod (line 37)
  1.             return static::callclass($container$callback$parameters$defaultmethod);
  2.         }
  3.         return static::callboundmethod($container$callback, function () use ($container$callback$parameters) {
  4.             return $callback(...array_values(static::getmethoddependencies($container$callback$parameters)));
  5.         });
  6.     }
  7.     /**
  8.      * call a string reference to a class using class@method syntax.
  9.      *
in :: call (line 653)
  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.      *
in -> call (line 389)
  1.      */
  2.     protected function callcontrollercallable(callable $callable, array $parameters = [])
  3.     {
  4.         try {
  5.             return $this->prepareresponse(
  6.                 $this->call($callable$parameters)
  7.             );
  8.         } catch (httpresponseexception $e) {
  9.             return $e->getresponse();
  10.         }
  11.     }
in -> callcontrollercallable (line 355)
  1.             return $this->calllumencontrollerwithmiddleware(
  2.                 $instance$method$routeinfo$middleware
  3.             );
  4.         } else {
  5.             return $this->callcontrollercallable(
  6.                 [$instance$method], $routeinfo[2]
  7.             );
  8.         }
  9.     }
  10.     /**
in -> calllumencontroller (line 329)
  1.         if (! method_exists($instance $this->make($controller), $method)) {
  2.             throw new notfoundhttpexception;
  3.         }
  4.         if ($instance instanceof lumencontroller) {
  5.             return $this->calllumencontroller($instance$method$routeinfo);
  6.         } else {
  7.             return $this->callcontrollercallable(
  8.                 [$instance$method], $routeinfo[2]
  9.             );
  10.         }
in -> callcontrolleraction (line 282)
  1.     protected function callactiononarraybasedroute($routeinfo)
  2.     {
  3.         $action $routeinfo[1];
  4.         if (isset($action['uses'])) {
  5.             return $this->prepareresponse($this->callcontrolleraction($routeinfo));
  6.         }
  7.         foreach ($action as $value) {
  8.             if ($value instanceof closure) {
  9.                 $callable $value->bindto(new routingclosure);
in -> callactiononarraybasedroute (line 262)
  1.         // pipe through route middleware...
  2.         if (isset($action['middleware'])) {
  3.             $middleware $this->gathermiddlewareclassnames($action['middleware']);
  4.             return $this->prepareresponse($this->sendthroughpipeline($middleware, function () {
  5.                 return $this->callactiononarraybasedroute($this['request']->route());
  6.             }));
  7.         }
  8.         return $this->prepareresponse(
  9.             $this->callactiononarraybasedroute($routeinfo)
in -> laravel\lumen\concerns\{closure} (line 48)
  1.      */
  2.     protected function preparedestination(baseclosure $destination)
  3.     {
  4.         return function ($passable) use ($destination) {
  5.             try {
  6.                 return $destination($passable);
  7.             } catch (throwable $e) {
  8.                 return $this->handleexception($passable$e);
  9.             }
  10.         };
  11.     }
pipeline->laravel\lumen\routing\{closure}() in (line 67)
  1. //            return response(view('path.register.'.$page_register));
  2. //        }
  3.         if($spider_type == 'tourist'){
  4.             return self::page404();
  5.         }
  6.         return $next($request);
  7.     }
  8.     private function page404(){
  9.         if (str::of($this->path_setting['page404'])->endswith('.blade.php')){
  10.             $file str::of($this->path_setting['page404'])->rtrim('.blade.php');
in -> handle (line 167)
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handlecarry($carry);
  8.                 } catch (throwable $e) {
  9.                     return $this->handleexception($passable$e);
in -> illuminate\pipeline\{closure} (line 30)
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return ($slice($stack$pipe))($passable);
  6.                 } catch (throwable $e) {
  7.                     return $this->handleexception($passable$e);
  8.                 }
  9.             };
  10.         };
pipeline->laravel\lumen\routing\{closure}() in (line 48)
  1.                 }else{
  2.                     log::info($request_ip."\t".$path_domains['proxy_domain'].$url."\t".$agent);
  3.                 }
  4.             }
  5.         }
  6.         return $next($request);
  7.     }
  8. }
in -> handle (line 167)
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handlecarry($carry);
  8.                 } catch (throwable $e) {
  9.                     return $this->handleexception($passable$e);
in -> illuminate\pipeline\{closure} (line 30)
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return ($slice($stack$pipe))($passable);
  6.                 } catch (throwable $e) {
  7.                     return $this->handleexception($passable$e);
  8.                 }
  9.             };
  10.         };
pipeline->laravel\lumen\routing\{closure}() in (line 49)
  1.             }else{
  2.                 abort(404);
  3.             }
  4.         }
  5.         return $next($request);
  6.     }
  7. }
in -> handle (line 167)
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handlecarry($carry);
  8.                 } catch (throwable $e) {
  9.                     return $this->handleexception($passable$e);
in -> illuminate\pipeline\{closure} (line 30)
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return ($slice($stack$pipe))($passable);
  6.                 } catch (throwable $e) {
  7.                     return $this->handleexception($passable$e);
  8.                 }
  9.             };
  10.         };
pipeline->laravel\lumen\routing\{closure}() in (line 33)
  1.         # 屏蔽请求头
  2.         $black_agent = ['googlebot','bingbot','mj12bot','ahrefsbot','dnspod-monitor','blexbot','easouspider','yandexbot','testbot/0.1','semrushbot','bytespider'];
  3.         if(str::of($request->server('http_user_agent'))->contains($black_agent)){
  4.             return response(view('path.error.nginx'), 404);
  5.         }
  6.         return $next($request);
  7.     }
  8. }
in -> handle (line 167)
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handlecarry($carry);
  8.                 } catch (throwable $e) {
  9.                     return $this->handleexception($passable$e);
in -> illuminate\pipeline\{closure} (line 30)
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return ($slice($stack$pipe))($passable);
  6.                 } catch (throwable $e) {
  7.                     return $this->handleexception($passable$e);
  8.                 }
  9.             };
  10.         };
in -> laravel\lumen\routing\{closure} (line 103)
  1.     {
  2.         $pipeline array_reduce(
  3.             array_reverse($this->pipes()), $this->carry(), $this->preparedestination($destination)
  4.         );
  5.         return $pipeline($this->passable);
  6.     }
  7.     /**
  8.      * run the pipeline and return the result.
  9.      *
in -> then (line 426)
  1.     {
  2.         if (count($middleware) > && ! $this->shouldskipmiddleware()) {
  3.             return (new pipeline($this))
  4.                 ->send($this->make('request'))
  5.                 ->through($middleware)
  6.                 ->then($then);
  7.         }
  8.         return $then($this->make('request'));
  9.     }
in -> sendthroughpipeline (line 263)
  1.         if (isset($action['middleware'])) {
  2.             $middleware $this->gathermiddlewareclassnames($action['middleware']);
  3.             return $this->prepareresponse($this->sendthroughpipeline($middleware, function () {
  4.                 return $this->callactiononarraybasedroute($this['request']->route());
  5.             }));
  6.         }
  7.         return $this->prepareresponse(
  8.             $this->callactiononarraybasedroute($routeinfo)
  9.         );
in -> handlefoundroute (line 237)
  1.             case dispatcher::not_found:
  2.                 throw new notfoundhttpexception;
  3.             case dispatcher::method_not_allowed:
  4.                 throw new methodnotallowedhttpexception($routeinfo[1]);
  5.             case dispatcher::found:
  6.                 return $this->handlefoundroute($routeinfo);
  7.         }
  8.     }
  9.     /**
  10.      * handle a route found by the dispatcher.
in -> handledispatcherresponse (line 173)
  1.                 if (isset($this->router->getroutes()[$method.$pathinfo])) {
  2.                     return $this->handlefoundroute([true$this->router->getroutes()[$method.$pathinfo]['action'], []]);
  3.                 }
  4.                 return $this->handledispatcherresponse(
  5.                     $this->createdispatcher()->dispatch($method$pathinfo)
  6.                 );
  7.             });
  8.         } catch (throwable $e) {
  9.             return $this->prepareresponse($this->sendexceptiontohandler($e));
  10.         }
in -> laravel\lumen\concerns\{closure} (line 429)
  1.                 ->send($this->make('request'))
  2.                 ->through($middleware)
  3.                 ->then($then);
  4.         }
  5.         return $then($this->make('request'));
  6.     }
  7.     /**
  8.      * prepare the response for sending.
  9.      *
in -> sendthroughpipeline (line 175)
  1.                 }
  2.                 return $this->handledispatcherresponse(
  3.                     $this->createdispatcher()->dispatch($method$pathinfo)
  4.                 );
  5.             });
  6.         } catch (throwable $e) {
  7.             return $this->prepareresponse($this->sendexceptiontohandler($e));
  8.         }
  9.     }
in -> dispatch (line 112)
  1.      * @param  \symfony\component\httpfoundation\request|null  $request
  2.      * @return void
  3.      */
  4.     public function run($request null)
  5.     {
  6.         $response $this->dispatch($request);
  7.         if ($response instanceof symfonyresponse) {
  8.             $response->send();
  9.         } else {
  10.             echo (string) $response;
application->run() in (line 28)
  1. | the client's browser allowing them to enjoy the creative
  2. | and wonderful application we have prepared for them.
  3. |
  4. */
  5. $app->run();

stack trace

errorexception
errorexception:
trying to access array offset on value of type null
  at /www/wwwroot/www.byqhh.com/app/http/controllers/pathshowcontroller.php:39
  at laravel\lumen\application->handleerror()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/registersexceptionhandlers.php:47)
  at laravel\lumen\application->laravel\lumen\concerns\{closure}()
     (/www/wwwroot/www.byqhh.com/app/http/controllers/pathshowcontroller.php:39)
  at app\http\controllers\pathshowcontroller::calc_view_data()
     (/www/wwwroot/www.byqhh.com/app/http/controllers/pathshowcontroller.php:79)
  at app\http\controllers\pathshowcontroller->app\http\controllers\{closure}()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/collections/helpers.php:184)
  at value()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/cache/repository.php:105)
  at illuminate\cache\repository->get()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/cache/cachemanager.php:418)
  at illuminate\cache\cachemanager->__call()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/support/facades/facade.php:261)
  at illuminate\support\facades\facade::__callstatic()
     (/www/wwwroot/www.byqhh.com/app/http/controllers/pathshowcontroller.php:82)
  at app\http\controllers\pathshowcontroller->index()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/container/boundmethod.php:36)
  at illuminate\container\boundmethod::illuminate\container\{closure}()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/container/util.php:40)
  at illuminate\container\util::unwrapifclosure()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/container/boundmethod.php:93)
  at illuminate\container\boundmethod::callboundmethod()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/container/boundmethod.php:37)
  at illuminate\container\boundmethod::call()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/container/container.php:653)
  at illuminate\container\container->call()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:389)
  at laravel\lumen\application->callcontrollercallable()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:355)
  at laravel\lumen\application->calllumencontroller()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:329)
  at laravel\lumen\application->callcontrolleraction()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:282)
  at laravel\lumen\application->callactiononarraybasedroute()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:262)
  at laravel\lumen\application->laravel\lumen\concerns\{closure}()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/routing/pipeline.php:48)
  at laravel\lumen\routing\pipeline->laravel\lumen\routing\{closure}()
     (/www/wwwroot/www.byqhh.com/app/http/middleware/registermiddleware.php:67)
  at app\http\middleware\registermiddleware->handle()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/pipeline/pipeline.php:167)
  at illuminate\pipeline\pipeline->illuminate\pipeline\{closure}()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/routing/pipeline.php:30)
  at laravel\lumen\routing\pipeline->laravel\lumen\routing\{closure}()
     (/www/wwwroot/www.byqhh.com/app/http/middleware/loggingmiddleware.php:48)
  at app\http\middleware\loggingmiddleware->handle()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/pipeline/pipeline.php:167)
  at illuminate\pipeline\pipeline->illuminate\pipeline\{closure}()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/routing/pipeline.php:30)
  at laravel\lumen\routing\pipeline->laravel\lumen\routing\{closure}()
     (/www/wwwroot/www.byqhh.com/app/http/middleware/staticmiddleware.php:49)
  at app\http\middleware\staticmiddleware->handle()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/pipeline/pipeline.php:167)
  at illuminate\pipeline\pipeline->illuminate\pipeline\{closure}()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/routing/pipeline.php:30)
  at laravel\lumen\routing\pipeline->laravel\lumen\routing\{closure}()
     (/www/wwwroot/www.byqhh.com/app/http/middleware/blacklistmiddleware.php:33)
  at app\http\middleware\blacklistmiddleware->handle()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/pipeline/pipeline.php:167)
  at illuminate\pipeline\pipeline->illuminate\pipeline\{closure}()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/routing/pipeline.php:30)
  at laravel\lumen\routing\pipeline->laravel\lumen\routing\{closure}()
     (/www/wwwroot/www.byqhh.com/vendor/illuminate/pipeline/pipeline.php:103)
  at illuminate\pipeline\pipeline->then()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:426)
  at laravel\lumen\application->sendthroughpipeline()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:263)
  at laravel\lumen\application->handlefoundroute()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:237)
  at laravel\lumen\application->handledispatcherresponse()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:173)
  at laravel\lumen\application->laravel\lumen\concerns\{closure}()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:429)
  at laravel\lumen\application->sendthroughpipeline()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:175)
  at laravel\lumen\application->dispatch()
     (/www/wwwroot/www.byqhh.com/vendor/laravel/lumen-framework/src/concerns/routesrequests.php:112)
  at laravel\lumen\application->run()
     (/www/wwwroot/www.byqhh.com/public/index.php:28)                
网站地图