kolber / stacey

Cheap & easy content management
http://staceyapp.com
MIT License
1.04k stars 132 forks source link

crash if /content is a symlink #151

Closed jrgd closed 8 years ago

jrgd commented 8 years ago

I would like to store the content in a different directory and thought I could symlink it; it appears to crash helpers.inc.php on line 59. PHP Notice: Undefined index: ./content in /server/www/app/helpers.inc.php on line 59

it's running fine with the original /content folder (ubuntu 14.04 php5 nginx) I'm not sure what to do about this :/

jrgd commented 8 years ago

also noticed the following in the error.log

[error] 1298#0: *2052 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: HTTP_USER_AGENT in /server/www/app/stacey.inc.php on line 72" while reading response header from upstream

as a result, it display a 404 page—i.e.: no content

jrgd commented 8 years ago

It seems like creating the symlink the other way (from the www/content to the User's folder) sorted it out entirely.