Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WARNING [cache] Failed to save key

I get the following warning whenever I do a SQL call to a MySQL database

07:36:46 WARNING   [cache] Failed to save key "%5B%5BC%5DAppBundle%5CEntity%5CBusinessUnit%24_maxid%5D%5B1%5D" (integer) 
["key" => "%5B%5BC%5DAppBundle%5CEntity%5CBusinessUnit%24_maxid%5D%5B1%5D","type" => "integer","exception" => ErrorException { …}] []

What is the cause of this warning?

How serious is it?

How can I prevent it?

I'm using a nginx server and the Symfony 3.3.5@stable framework.

Edit

This works fine in development and only gives these errors on the production server.

like image 748
Sarah Richardson Avatar asked Sep 05 '25 03:09

Sarah Richardson


1 Answers

It is permission of the folder. On Ubuntu in the folder of project:

sudo chmod 700 -R var/
like image 132
Rafael Lucini Avatar answered Sep 10 '25 02:09

Rafael Lucini