Log message #4190465

# At Username Text
# Jun 21st 2019, 18:39 daniel.upshaw What do you mean disable json responses?
# Jun 21st 2019, 15:20 mrfeedback urgent help needed. how can i disable json responses?
# Jun 21st 2019, 14:47 slackebot1 ' The Apache service named reported the following error: >>> AH00015: Unable to open logs Slackbot
# Jun 21st 2019, 14:47 olanowsubomi hi, please can anyone one help me solve the problem of restarting all services on wamp apache on window 7 from the administrator command line i typed 'NET START wampapache' it initially indicate ' the wampapache service is starting..........' then 'the wampapache service cannot be started a service specific error occured: 1. more help is available by typing NET HELPMSG 3547' then, i check window event viewer which brought this message
# Jun 21st 2019, 14:34 olanowsubomi Hello is anyone there?
# Jun 21st 2019, 14:32 slackebot1 ' The Apache service named reported the following error: >>> AH00015: Unable to open logs
# Jun 21st 2019, 14:32 olanowsubomi hi, please can anyone one help me solve the problem of restarting all services on wamp apache on window 7 from the administrator command line i typed 'NET START wampapache' it initially indicate ' the wampapache service is starting..........' then 'the wampapache service cannot be started a service specific error occured: 1. more help is available by typing NET HELPMSG 3547' then, i check window event viewer which brought this message
# Jun 21st 2019, 14:29 slackebot1 ' The Apache service named reported the following error: >>> AH00015: Unable to open logs
# Jun 21st 2019, 14:29 olanowsubomi hi, please can anyone one help me solve the problem of restarting all services on wamp apache on window 7 from the administrator command line i typed 'NET START wampapache' it initially indicate ' the wampapache service is starting..........' then 'the wampapache service cannot be started a service specific error occured: 1. more help is available by typing NET HELPMSG 3547' then, i check window event viewer which brought this message
# Jun 21st 2019, 13:57 itmpls i'm doing 2 saveMany's inside
# Jun 21st 2019, 13:57 itmpls just to confirm: i don't need try/catch blocks in a transactional, it would just automatically rollback and return false?
# Jun 21st 2019, 13:00 stephenzgalbraith @egalles you’ll get that error I believe now until you start applying policies or other forms of authorization
# Jun 21st 2019, 12:58 egalles ok advancing in that purpose..... I get a new error.... The request to `/users` did not apply any authorization checks. But it looks like authoritzation and authentication are working together like two implements of my app middleware
# Jun 21st 2019, 12:56 egalles ...
# Jun 21st 2019, 11:24 egalles when i put this > ->add(new AuthorizationMiddleware($this)); in middleware
# Jun 21st 2019, 11:24 egalles `Authorization\AuthorizationServiceProviderInterface`, `App\Application` given
# Jun 21st 2019, 11:24 egalles now i have this error for example > Subject must be an instance of `Authorization\AuthorizationServiceInterface` or
# Jun 21st 2019, 11:06 egalles i'ma noob with interfaces...etc anyone can help me with basic knowledge of interfaces ? are like pluggins ?
# Jun 21st 2019, 11:06 egalles now cakephp book recommends to use authorization and authentication plugins.
# Jun 21st 2019, 11:05 egalles i was using authcontroller since now and i see in documentation that will be deprecated
# Jun 21st 2019, 11:04 egalles good morning
# Jun 21st 2019, 10:44 martin morning :)
# Jun 21st 2019, 10:26 neon1024 Morning everyone
# Jun 21st 2019, 10:14 conehead Oh, by the way...there are "dynamic finders" as well.... https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#dynamic-finders You should be able to do the following: `$users->findAllByRole(1)->count()` But personally I am not a big fan of these magic methods
# Jun 21st 2019, 09:36 conehead ``` $users->find() ->where(['role' => 1]) ->count(); ```
# Jun 21st 2019, 09:34 kgb.acct.personal I have to get the total count and the count where role = 1
# Jun 21st 2019, 09:34 kgb.acct.personal Yess
# Jun 21st 2019, 09:30 conehead I don't really get what you are trying to achive. Count all where `role = 1`)
# Jun 21st 2019, 09:27 kgb.acct.personal It looks like this. But it seems hackish ``` $users->func()->count('DISTINCT CASE WHEN role = 1 THEN role END') ```
# Jun 21st 2019, 09:27 conehead https://book.cakephp.org/3.0/en/orm/table-objects.html#afterdelete
# Jun 21st 2019, 09:27 kgb.acct.personal How do I do conditional count?
# Jun 21st 2019, 09:26 conehead Well you could check in afterSave or afterSaveCommit
# Jun 21st 2019, 09:12 peppejaripappalardo Hi guys, i need an help please. I adding muffin/trash behavior a run time into the controller, because i have many entity related and that can give problem if i put the behavior into the table, e.g. Historical View. I need to cascade soft-delete item, there is a way to append into the table AddBehavior if Users deleted entity is not null?
# Jun 21st 2019, 07:36 graziel then its in link i gave : )
# Jun 21st 2019, 07:35 nuzulfikrie i am using the latest version
# Jun 21st 2019, 07:35 graziel dont remember the older
# Jun 21st 2019, 07:35 graziel in newer i think yes, https://github.com/cakephp/app/blob/master/config/routes.php#L58
# Jun 21st 2019, 07:27 nuzulfikrie my question now is does CAKEPHP CSRF is enabled by default ? .
# Jun 21st 2019, 07:26 nuzulfikrie disabling this line 'code' $this->loadComponent('Csrf'); 'code' resolve error.
# Jun 21st 2019, 07:26 nuzulfikrie hi team, need help. i am having ' CRSF token mismatch error ' on delete action.
# Jun 21st 2019, 06:49 conehead Good morning everyone