I was working with cake php recently and I came across these three errors:
Warning (512): Cache not configured properly. Please check Cache::config(); in APP/config/core.php [CORE\cake\libs\configure.php, line 663]
Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [CORE\cake\libs\configure.php, line 684]
Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [CORE\cake\libs\configure.php, line 691]
What could’ve caused this? What was the solution?
I wanted to manage the source code using git. I made git manage my app directory but after I initialized it and ran my first staging, I noticed that it included all sorts of silly stuff from the app/tmp folder. So I proceeded to run:
git -rm -r -f tmp
Which means, “git, forcibly and recursively remove the tmp folder.” And it did that, but too well, it seems, because cake php needs not only the tmp folder but also the folders with in it like, cache, logs and sessions. Isn’t that great? I would’ve thought cake to be smart enough to recreate the needed folders.
So the solution to this was this to remake the tmp folder and the cache, logs, sessions and tests folders inside of tmp which it requires to run properly.
Others have had this error but their problems seem unrelated to mine. Robert Navarro had a different cause for the error and also a different solution.