I installed Concrete5 a while back using composer perhttps://github.com/concrete5/composer... and everything worked fine. While I am able to make POST requests on the dashboard, I recently found I receive a "Service Unavailable" error when making a POST requeest when editing the front content. While the error pops up, the content is actually updated. The only clues I found was the httpd log which showed "(104)Connection reset by peer:" and jouralctl shows "mysqld[1301] [Warning] Aborted connection 68173 (Got an error reading communication packets)". Concrete5 log shows nothing.
I traced through the code and everything seemed good and Ajax::sendResult() was called to echo json and die, but then Whoops\Run::handleShutdown() was called and I see "You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead."
Any ideas how to fix this?
Thanks
<?phpclass Various //Class names are listed {//DefaultRuntimepublicfunction run(){if(!$response){$response=$this->server->handleRequest($request);}// Prepare and return the responsereturn$response->prepare($request);}//DefaultServerpublicfunction handleRequest(SymfonyRequest $request){
<?phpclass Various //Class names are listed {//DefaultRuntimepublicfunction run(){if(!$response){$response=$this->server->handleRequest($request);}// Prepare and return the responsereturn$response->prepare($request);}//DefaultServerpublicfunction handleRequest(SymfonyRequest $request){return$stack->process($request);}//MiddlewareStackpublicfunction process(Request $request){$stack=$this->getStack();return$stack->next($request);}//MiddlewareDelegatepublicfunctionnext(Request $request){$response=$this->middleware->process($request,$this->nextDelegate);// Negotiate PSR7 responsesif($response instanceof ResponseInterface){return$this->foundationFactory->createResponse($response);}return$response;}//$this->middleware->process calls self::next() 3 timesand the 4th time $this->middleware->process() is called... //ThumbnailMiddlewarepublicfunction process(Request $request, DelegateInterface $frame){$response=$frame->next($request);}//DispatcherDelegatepublicfunctionnext(Request $request){return$this->dispatcher->dispatch($request);}//DefaultDispatcherpublicfunction dispatch(SymfonyRequest $request){$response=null;if($this->app->isInstalled()){$response=$this->getEarlyDispatchResponse();//Pass the security checks and returns null}if($response===null){$response=$this->handleDispatch($request);}return$response;}//DefaultDispatcherprivatefunction handleDispatch($request){$callDispatcher=false;
try {$route=$this->router->matchRoute($request)->getRoute();$dispatcher=new RouteDispatcher($this->router,$route,[]);$stack=new MiddlewareStack(new DispatcherDelegate($dispatcher));$stack->setApplication($this->app);// Does not get any middlewareforeach($route->getMiddlewares()as$middleware){if(is_string($middleware->getMiddleware())){$inflatedMiddleware=$this->app->make($middleware->getMiddleware());}else{$inflatedMiddleware=$middleware->getMiddleware();}$stack=$stack->withMiddleware($inflatedMiddleware,$middleware->getPriority());}return$stack->process($request);} catch (ResourceNotFoundException $e){$callDispatcher=true;} catch (MethodNotAllowedException $e){$callDispatcher=true;}if($callDispatcher){$c= \Page::getFromRequest($request);$response=$this->app->make(ResponseFactoryInterface::class)->collection($c);}return$response;}//MiddlewareStackpublicfunction process(Request $request){$stack=$this->getStack();return$stack->next($request);}//DispatcherDelegatepublicfunctionnext(Request $request){return$this->dispatcher->dispatch($request);}//RouteDispatcherpublicfunction dispatch(SymfonyRequest $request){$action=$this->router->resolveAction($this->route);$response=$action->execute($request,$this->route,$this->parameters);return$response;}//ControllerRouteActionpublicfunction execute(Request $request, Route $route,$parameters){if(method_exists($controller,'runAction')){$response=$controller->runAction($method,$arguments);}}//AbstractControllerpublicfunction runAction($action,$parameters=[]){$this->action=$action;$this->parameters=$parameters;if(is_callable([$this,$action])){if($this->shouldRunControllerTask()){returncall_user_func_array([$this,$action],$parameters);}}}//Editpublicfunction submit(){if($this->validateAction()&&$this->canAccess()){$pr->outputJSON();}}//EditResponsepublicfunction outputJSON(){if($this->hasError()){
Core::make('helper/ajax')->sendError($this->error);}else{
Core::make('helper/ajax')->sendResult($this->getJSONObject());}}//EditResponsepublicfunction getJSONObject(){$o= parent::getBaseJSONObject();return$o;}//Ajaxpublicfunction sendResult($result){echo json_encode($result);die();}//Whoopspublicfunction handleShutdown(){// If we reached this step, we are in shutdown handler.// An exception thrown in a shutdown handler will not be propagated// to the exception handler. Pass that information along.$this->canThrowExceptions=false;//"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead."$error=$this->system->getLastError();if($error&& Misc::isLevelFatal($error['type'])){}//returns false. $level is 16384 and $errors is 245}}
Code
Post Reply
Delete Post
You are allowed to delete your post for 5 minutes after it's posted.