每当我对 MySQL 数据库进行 SQL 调用时,我都会收到以下警告
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 { …}] []
此警告的原因是什么?
有多严重?
我该如何预防?
我正在使用nginx服务器和Symfony 3.3.5@stable框架。
编辑
这在开发中工作正常,并且仅在生产服务器上给出这些错误。
这是文件夹的权限。 在 Ubuntu 的项目文件夹中:
sudo chmod 700 -R var/
我设法通过将sudo
前缀添加到我正在调用的命令中来解决它。 感谢大家的帮助。