Log message #4198779

# At Username Text
# 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
# Aug 19th 2019, 14:15 ricksaccous you have to user the plugin prefix
# Aug 19th 2019, 14:14 wgon0001 I have put helper in corresponding folder and did set up the loadHelper function
# Aug 19th 2019, 14:13 slackebot <wgon0001>
# Aug 19th 2019, 14:12 ricksaccous @wgon0001 gist your app view code
# Aug 19th 2019, 14:08 wgon0001 And I installed it with composer require command
# Aug 19th 2019, 14:08 wgon0001 Hi everyone, here I am encountering a problem which to plugins (nnnick/ChartsJS) which require a helper to be loaded, I have tried to load it into AppView.php, but I am getting a fatal error with “Cannot declare a class ***\View\Helper\ChartjsHelper.php, because the name already in use on line0”, any ideas on how to load with plugins?
# Aug 19th 2019, 14:07 davorminchorov `->getSchema()->getColumnType('email_adddress')` returns null
# Aug 19th 2019, 14:07 dereuromark you could introspect the annotations on top :slightly_smiling_face: