Hello i got this error:
PHP Fatal error: Uncaught exception 'BadMethodCallException' with message 'Wrong number of parameters' in /var/www/fairplayauto.cz/web/app/modules/WebModule/controller/RadceController.php:214\nStack trace:\n#0 [internal function]: Phalcon\\Http\\Response->setJsonContent()\n#1 /var/www/fairplayauto.cz/web/app/modules/WebModule/controller/RadceController.php(214): Phalcon\\Http\\Request->isPost()\n#2 [internal function]: Web\\Controller\\RadceController->ekonomikaAction()\n#3 [internal function]: Phalcon\\Dispatcher->dispatch()\n#4 /var/www/fairplayauto.cz/web/app/bootstrap.php(257): Phalcon\\Mvc\\Application->handle()\n#5 /var/www/fairplayauto.cz/web/public/index.php(56): require_once('/var/www/fairpl...')\n#6 {main}\n thrown in /var/www/fairplayauto.cz/web/app/modules/WebModule/controller/RadceController.php on line 214, referer: https://fairplayauto.cz/radce/jizda/
On line where is the isPost:
if($this->request->isPost()){ // <-- here is the line
$data['desc'] = $this->request->getPost();
if($form->isValid($this->request->getPost())){
$car->car->fn_data = base64_encode(serialize($data));
if($car->save()){
$d = unserialize(base64_decode($car->car->fn_data));
$this->response->redirect('auto/vybava/'.$car->car->id.'/');
}
else {
$this->flash->error('Omlouváme se něco se nepovedlo, opakujte akci prosím později.');
$this->response->redirect('auto/popis/'.$car->car->id.'/');
}
}
And i can't understant why it happens, because it happen just sometimes, this has happen when i had upgrade phalcon to zephir.