rasmusbergpalm / jslate

Write your dashboards in pure html/js
jslate.com
244 stars 54 forks source link

CacheException #22

Closed rsoo closed 11 years ago

rsoo commented 11 years ago

Hi Rasmus,

Apologies for the beginner question, however I followed your installation steps up until the "open up localhost/jslate/users/add" step. When I try open up localhost/jslate/ or localhost/jslate/users/add, my page is simply blank and there's nothing in the page source at all.

I've uninstalled and reinstalled my LAMP setup and reproduced the steps but still come across this issue. Any clue on what is happening?

Thank you!

EDIT: I figured out that the blank page was due to app/Config not being capitalized. I renamed the folder to Config and the page (both localhost/jslate and localhost/jslate/users/add) result in the following warnings/errors:

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /var/www/html/jslate/lib/Cake/Cache/CacheEngine.php on line 60

Warning: _cakecore cache was unable to write 'cake_dev_en-us' to File cache in /var/www/html/jslate/lib/Cake/Cache/Cache.php on line 310 Warning: /var/www/html/jslate/app/tmp/cache/persistent/ is not writable in /var/www/html/jslate/lib/Cake/Cache/Engine/FileEngine.php on line 337

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cakecore is not properly configured.' in /var/www/html/jslate/lib/Cake/Cache/Cache.php:166

Stack trace: 0 /var/www/html/jslate/lib/Cake/Cache/Cache.php(136): Cache::_buildEngine('_cakecore') 1 /var/www/html/jslate/app/Config/core.php(336): Cache::config('_cakecore', Array) 2 /var/www/html/jslate/lib/Cake/Core/Configure.php(78): include('/var/www/html/j...') 3 /var/www/html/jslate/lib/Cake/bootstrap.php(171): Configure::bootstrap(true) 4 /var/www/html/jslate/app/webroot/index.php(92): include('/var/www/html/j...') 5 {main} thrown in /var/www/html/jslate/lib/Cake/Cache/Cache.php on line 166

brianhks commented 11 years ago

I have a pull request in to fix this issue. There are several directories that need to be capitalized. He recently updated to a newer version of Cake and it introduced this problem.

rsoo commented 11 years ago

Thanks for the clue brianhks, I changed the directory names specified in your diffs.

However I am still getting the fatal CacheException error detailed in the edit of my original post. Is there a possibility that the newer version of Cake caused this exception as well?

brianhks commented 11 years ago

No that looks like a permissions thing. If you are using ubuntu you need to make sure www-data has access to your files I've used this command from /var/www

sudo chown :www-data -R jslate sudo chmod -R g+w

That sets www-data as the group id for all the files and the second command makes sure that the group has write permissions.

rsoo commented 11 years ago

Great thank you very much brianhks! This fixed the fatal error and the problem detailed here (http://stackoverflow.com/questions/3370403/timezone-and-more-problems-with-cakephp-1-3-and-php-5-3-2) fixed the time zone warning.

rasmusbergpalm commented 11 years ago

Awesome! Thanks @brianhks