Log message #4033310

# At Username Text
# May 29th 2017, 03:49 josh_rodarte I figured it out. I Deleted session files for apache. Had a blackout, probably what caused it.
# May 29th 2017, 03:45 alex-xhs456 Have a question with 2.9. A form as a Yes / No radiobutton. If I don't select anything it will submit the field and an empty value ("question": "") which is saved as 'false' in the db (TINYINT(1) field that is nullable). I want it to be NULL instead. Should I make sure the field is not included on submit or look somewhere else?
# May 29th 2017, 03:42 josh_rodarte I see it is a ghost error in the repo. great lol
# May 29th 2017, 03:17 josh_rodarte I suddenly am getting the error, "Session was already started". The error output is only showing core files. How can I locate the problem?
# May 29th 2017, 03:13 Lander It returns articles with only comments from "markstory" or only articles that were commented by "markstory"?
# May 29th 2017, 03:12 Lander I didn't get it
# May 29th 2017, 03:12 Lander https://pastebin.com/Y2j1L1C5
# May 28th 2017, 23:25 gustavocp hmm, change it from char(36) to varchar(36) and database is ok
# May 28th 2017, 23:22 gustavocp FK needs to be varchar(36) or char(36)?
# May 28th 2017, 23:22 gustavocp task has a owner, i called it user_id and i put dropdown getting all from users table put it still showing UUID unstead name. And it does not save in database this field
# May 28th 2017, 23:21 gustavocp Thank you for reply. bake put displayField on TaskTable look: https://gist.github.com/gustavocp/b905f3c657d219573abd56330ab2ce4e
# May 28th 2017, 23:17 hiromi2424 I don’t think UUID dropdown is normal. missing displayField config?
# May 28th 2017, 23:16 hiromi2424 @gustavocp There is no difference with integer PK. bin your code
# May 28th 2017, 23:08 gustavocp Hello, im using FriendsOfCake/bootstrap-ui and CakeDC/Users. Im doing a exercise and i bake Projects (that belongs to User, so it has user_id as FK poiting to ID using UUID char(36). On add view it takes users on dropdown by UUID but when i saves on database the field user_id is blank. Is there any difference to implement belongsTo relation using UUID ?
# May 28th 2017, 22:27 thomasnucleus l
# May 28th 2017, 20:59 igreat And it's working fine now
# May 28th 2017, 20:59 igreat To root/src/Template/Plugin/CakeDC/Users/Users
# May 28th 2017, 20:58 igreat I have resolved my issue Changed this >The view templates are located in root/src/Template/Plugin/cakedc/users/Users
# May 28th 2017, 20:10 dereuromark depends on your auth setup
# May 28th 2017, 20:05 chris-andre :) I'm using your auth plugin. Guess it queries that often on dev environment only then :P
# May 28th 2017, 20:02 dereuromark well, that you dont have to ;) at least if you all combine that into a single "sth changed" flag
# May 28th 2017, 19:56 chris-andre True. Ill work something out with the db session. That being said, roles are being checked every request, so sometimes we just _have to_
# May 28th 2017, 19:51 dereuromark if you use a cookie based login, you can also remove the session and let the relogin happen silently, but then you have issues with POSTs fired. would need to preflight ajax then. so that makes it more overkill than a simple and not soo expensive single lookup :slightly_smiling_face:
# May 28th 2017, 19:47 chris-andre db query on every request sounds like "overkill". Thanks @dereuromark , Ill look into db sessions
# May 28th 2017, 19:45 dereuromark with DB sessions you do that anyway :slightly_smiling_face:
# May 28th 2017, 19:44 chris-andre Okay. But that means I will have to query the db to check if any changes has been made for the user, right?
# May 28th 2017, 19:40 dereuromark thats why you need db sessions and a privot table of some sorts to manage those relations from user to session
# May 28th 2017, 19:36 chris-andre Yes, so actually, I should update user data the same way when the user updates data himself (to update on other devices as well).
# May 28th 2017, 19:32 dereuromark there are different strategies, e.g. putting in a flag to force updating, once the user refreshes the page
# May 28th 2017, 19:31 dereuromark you have to have a session_id in your user_... online table, this way you know which user this would be. but this is 1:n as you can be logged in with multiple devices
# May 28th 2017, 19:30 chris-andre Yes, admad pointed me against updating cache session, but I don't get it. How shall I do the check and if it's different, how should I update it? Is the cache gonna be updated when admin performs an user data update?
# May 28th 2017, 19:24 dereuromark wasnt this already answered above?
# May 28th 2017, 19:19 chris-andre Anyone here familiar with cache session? If an admin changes user data of an logged in user, how can I update cache/session so that the logged in user get his session updated as well?
# May 28th 2017, 19:14 chris-andre Reason I was asking about path and composer was that I suspected you had placed the view file in the vendor folder, then run composer install. But as that is not the case, I don't know why the issue you describes exists.
# May 28th 2017, 19:11 igreat Is there a chance it could link with composer issue?
# May 28th 2017, 19:10 chris-andre Allright. Then I have no idea.
# May 28th 2017, 19:09 igreat As it's not supported
# May 28th 2017, 19:09 igreat Yea, did not use composer to install
# May 28th 2017, 19:08 chris-andre I see. You have uploaded your local app to your prod. server with ftp?
# May 28th 2017, 19:04 igreat I don't understand why
# May 28th 2017, 19:03 igreat But just uploaded it to my online host and its misbehaving