Log message #4115742

# At Username Text
# Feb 9th 2018, 01:48 loginews how
# Feb 9th 2018, 01:47 ricksaccous This is a Query object, to get the results execute it or iterate it ;)
# Feb 9th 2018, 01:46 slackebot App\Model\Entity\Drug [associations] => Array ( ) [behaviors] => Array ( [0] => Search ) [defaultConnection] => default [connectionName] => default ) )
# Feb 9th 2018, 01:46 slackebot integer [Drugs.used] => integer [used] => integer [Drugs__timestamp] => timestamp [Drugs.timestamp] => timestamp [timestamp] => timestamp ) [decorators] => 0 [executed] => [hydrate] => 1 [buffered] => 1 [formatters] => 0 [mapReducers] => 0 [contain] => Array ( ) [matching] => Array ( ) [extraOptions] => Array ( ) [repository] => App\Model\Table\DrugsTable Object ( [registryAlias] => Drugs [table] => drugs [alias] => Drugs [entityClass] =>
# Feb 9th 2018, 01:46 loginews Cake\ORM\Query Object ( [(help)] => This is a Query object, to get the results execute or iterate it. [sql] => SELECT Drugs.id AS `Drugs__id`, Drugs.drug AS `Drugs__drug`, Drugs.used AS `Drugs__used`, Drugs.timestamp AS `Drugs__timestamp` FROM drugs Drugs [params] => Array ( ) [defaultTypes] => Array ( [Drugs__id] => integer [Drugs.id] => integer [id] => integer [Drugs__drug] => string [Drugs.drug] => string [drug] => string [Drugs__used] =>
# Feb 9th 2018, 01:43 loginews hold will paste it
# Feb 9th 2018, 01:43 ricksaccous what is it showing instead?
# Feb 9th 2018, 01:42 loginews I used that code in a controller.
# Feb 9th 2018, 01:41 loginews I am surprised that print_r($data) does not show the data. Any help?
# Feb 9th 2018, 01:40 loginews File uploaded https://cakesf.slack.com/files/U435V89H8/F978SAAPQ/-.txt / https://slack-files.com/T053DPNCM-F978SAAPQ-72f855ed2e
# Feb 8th 2018, 23:23 pedroseco in bootstrap.php for this example
# Feb 8th 2018, 23:23 pedroseco On the Event system, if I need to listen to a created event on a different plugin, for example, do I just need to : EventManager::instance()->on(Model.MyEvent) to make it run a particular callback?
# Feb 8th 2018, 22:33 etipaced (I’m referring to reading from the db, not handling request data.)
# Feb 8th 2018, 22:31 etipaced When does Cake convert db `datetime` columns into a `FrozenTime` object? I have a need to modify this behavior while the `datetime` value is still a string.
# Feb 8th 2018, 21:10 jameg83 Hi can anyone help with CakePdf? I’m getting an error500 ‘permission denied when executing command “usr/bin...”. I’ve checked binary file permissions and all users can execute.
# Feb 8th 2018, 21:10 madrid998 Is it possible to have a Table object with a hard-coded array as a record source?
# Feb 8th 2018, 20:23 kevin its just this crappy little if/else statement right now. I dont like that a ton.
# Feb 8th 2018, 20:21 kevin so right now, I have a default.ctp, and I’m checking to see if the user is logged in. If yes, I display one default.ctp, if no, I display a different one. Is there a better way to do this? like one default.ctp for auth’d vs another for unauth’d?
# Feb 8th 2018, 20:19 kevin thats @alysson-azevedo!!! That did the trick for me. I wasnt looking at $rules. I was trying to do it through validation.
# Feb 8th 2018, 19:39 sayed File uploaded https://cakesf.slack.com/files/U8SE5F2NN/F964M9EHZ/screen_shot_2018-02-08_at_20.34.31.png / https://slack-files.com/T053DPNCM-F964M9EHZ-f72efd5ed8
# Feb 8th 2018, 19:39 sayed thats why i was getting the error while trying to clear cache
# Feb 8th 2018, 19:39 sayed nevermind, found the issue, apcu (for the cli) was running on a different build of the php version
# Feb 8th 2018, 19:34 sayed I tried a composer reinstall but still the same error
# Feb 8th 2018, 19:34 sayed @bravo-kernel I can see here https://github.com/cakephp/cakephp/issues/8896 that you had the same issue as i have now
# Feb 8th 2018, 19:33 alysson-azevedo check cakedc/users https://github.com/CakeDC/users/blob/master/src/Model/Table/UsersTable.php
# Feb 8th 2018, 19:21 kevin I cant seem to find anything to specifically assist with that
# Feb 8th 2018, 19:21 kevin cake 3.5
# Feb 8th 2018, 19:21 kevin Is anyone aware of a good guide on how to perform data validation on a signup page, including verifying whether a user already exists or not?
# Feb 8th 2018, 18:47 sayed thanks once again !
# Feb 8th 2018, 18:46 sayed no it is exactly what i needed
# Feb 8th 2018, 18:46 hmic if it's not perfectly up to your case, you get at least a bunch of ideas
# Feb 8th 2018, 18:46 hmic but throttle is the thing to look into
# Feb 8th 2018, 18:46 hmic thats why i asked ;-)
# Feb 8th 2018, 18:45 sayed wrong term
# Feb 8th 2018, 18:45 sayed oke sure my bad
# Feb 8th 2018, 18:45 sayed Thanks guys
# Feb 8th 2018, 18:45 hmic which is stupid. especially for a webserver
# Feb 8th 2018, 18:45 hmic not "block concurrent"
# Feb 8th 2018, 18:45 hmic yeah. throttle
# Feb 8th 2018, 18:44 sayed Wel lets say i have an Api with an Endpoint, the client who is trying to submit data has a ‘retry mechanism’ which just goes crazy, so my log files are over 6 mb in like a couple of minutes. So basically i would like to block them after 200+ requests from which they get denied
# Feb 8th 2018, 18:44 bravo-kernel @sayed https://github.com/UseMuffin/Throttle