Log message #4198787

# At Username Text
# Aug 19th 2019, 15:40 josbeir @kalias if debugging is enabled on production you would not see a possible error, check the debug and error logfiles to make sure nothing fishy is happening
# Aug 19th 2019, 15:36 admad @vossen.steven per url local storage is also an option. Similar to GH
# Aug 19th 2019, 15:36 kailas I’ve also tried clearing cache
# Aug 19th 2019, 15:36 kailas In my code I have a finder that returns no result on my production server, but proper results on my local dev environment. - I’ve looked at the SQL log on the production server and the SQL is identical. - If i execute that SQL from mysql command line on the production server, I get proper results (as well as any other connection to the production SQL server) totally stumped. any ideas?
# Aug 19th 2019, 15:33 vossen.steven session is already done, so will check out the cookie thingy, tyvm!
# Aug 19th 2019, 15:32 dereuromark yeah it would need maybe a more global JS based solution then ;) easiest is to fix the session/cookie part for now to hit this less likely
# Aug 19th 2019, 15:31 vossen.steven was thinking of saving drafts in 5min intervals, but seems to me it's a lot of overhead, if I have to do it for every form
# Aug 19th 2019, 15:31 dereuromark session often has a set limit for timeout (fixed date), if not reactivated/refreshed again.
# Aug 19th 2019, 15:30 vossen.steven yea noticed a lot of apps have the same problem, I thought it was a session problem so I increased the timeout to 24 hours, but it seems to be an auth problem
# Aug 19th 2019, 15:29 dereuromark the persisting and restore is used by github for example
# Aug 19th 2019, 15:29 dereuromark otherwise try the higher session and cookie relogin times, but it can still happen then.
# Aug 19th 2019, 15:29 dereuromark you can persist the draft via ajax in intervals if you wanna make sure
# Aug 19th 2019, 15:28 dereuromark many apps and users have that problem :slightly_smiling_face:
# Aug 19th 2019, 15:27 vossen.steven current problem is users starting to fill in a form, going afk for an hour, coming back to complete the form, and when hitting save they get redirected to login due being unauthenticated, obviously losing all the data nad being pissed off they have to restart...
# Aug 19th 2019, 15:24 dereuromark together with proper config of course
# Aug 19th 2019, 15:23 dereuromark cookie (re)login, there should be a plugin around
# Aug 19th 2019, 15:22 vossen.steven Is there a reliable way to prevent a user getting logged out after x amount of inactivity?
# Aug 19th 2019, 14:59 wgon0001 Thanks, will try it out
# Aug 19th 2019, 14:50 dereuromark you could rather load them as documented and per framework way and then see if that class exists and is loaded properly
# Aug 19th 2019, 14:49 dereuromark bad idea
# Aug 19th 2019, 14:49 wgon0001 So I thought I have put all of them to corresponding place at first stages
# Aug 19th 2019, 14:48 wgon0001 But I am not sure if the plugin has been loaded as it having its own webroot, composer.json and that helper
# Aug 19th 2019, 14:42 dereuromark extending sth from core or plugin should be the absolute exception, not the rule
# Aug 19th 2019, 14:41 dereuromark you destroy the whole idea of plugin using this way
# Aug 19th 2019, 14:41 dereuromark yeah, why the copy into App view?
# Aug 19th 2019, 14:41 wgon0001 Am I wrong on that step?
# Aug 19th 2019, 14:41 wgon0001 But just make another copy into view helper
# Aug 19th 2019, 14:40 wgon0001 I am did using plugins helper
# Aug 19th 2019, 14:40 dereuromark @davorminchorov looks then somewhat like this for your helper calls: https://github.com/dereuromark/cakephp-ide-helper/blob/master/docs/img/model_autocomplete_loadmodel.png
# Aug 19th 2019, 14:31 dereuromark magic strings on their own are evil, prevent them for this and many other reasons.
# Aug 19th 2019, 14:31 dereuromark Tip: Once loaded the plugin, use IdeHelper and always use autocomplete for your phpstorm IDE to auto-display possible values here for the loadHelper() method :slightly_smiling_face:
# Aug 19th 2019, 14:29 ricksaccous @wgon0001 i thought you were using the plugin's helper?
# Aug 19th 2019, 14:29 ricksaccous wait why does he have his own helper there
# Aug 19th 2019, 14:29 ricksaccous that is his app code based on what he's saying
# Aug 19th 2019, 14:28 dereuromark Or is that in your app code?
# Aug 19th 2019, 14:28 dereuromark You should always load the helper with proper plugin prefix.
# Aug 19th 2019, 14:16 ricksaccous like ChartsJS.Chartjs
# Aug 19th 2019, 14:16 ricksaccous or I think you have to use a period
# Aug 19th 2019, 14:16 ricksaccous ;)
# Aug 19th 2019, 14:16 ricksaccous ChartsJS/Chartjs might be what you need to load
# Aug 19th 2019, 14:15 ricksaccous when loading a helper from a plugin