Lately my client asked me to move his company's web app to another hosting provider. I've moved the ftp files, imported database and changed parameters for new db. But it simply doesn't work returning me "500" errors. It seems there is something wrong with utf8 coding but I have no idea how to fix it. I'm not a programmer. All I know that this application is made in symfony. Some things work, you can login and view invoices etc. but not create a new one.
https://i.stack.imgur.com/uAnTq.jpg
Edit:
I found a function which does error;
public function getClientsAjaxAction()
{
$encoders = array(new XmlEncoder(), new JsonEncoder());
$normalizers = array(new GetSetMethodNormalizer());
$serializer = new Serializer($normalizers, $encoders);
$user = $this->get('security.context')->getToken()->getUser();
$clients = $this->getDoctrine()->getEntityManager()
->getRepository('\fh\Bundle\Entity\Client')
->findBy(array('companyIndex' => $user->getCompanyIndex()));
$response = new Response($serializer->serialize($clients, 'json'));
$response->headers->set('Content-Type', 'application/json');
return $response;
}
What can i do to make it work?