Log message #4190572

# At Username Text
# Jun 24th 2019, 10:50 vossen.steven its possible?
# Jun 24th 2019, 10:47 unclezoot is it not possible to have 2 shells with the same name in 2 different plugins?
# Jun 24th 2019, 10:33 adithya thank you :slightly_smiling_face:
# Jun 24th 2019, 10:29 dereuromark by adding the header into the response for it. :slightly_smiling_face:
# Jun 24th 2019, 10:29 dereuromark passing them through a controller or middleware usually
# Jun 24th 2019, 10:28 adithya Hi, how can I make downloadable links for files in my webroot/img ?
# Jun 24th 2019, 10:09 steinkel I'll add it to the list :slightly_smiling_face:
# Jun 24th 2019, 10:09 dereuromark did you write a blog post for it yet? :slightly_smiling_face:
# Jun 24th 2019, 10:08 steinkel @dereuromark using the default cake log adapter, then configuring syslog to fw logs to other services
# Jun 24th 2019, 10:07 imonsei ah dang. I have to run off again. I will come online again tomorrow. laters o/
# Jun 24th 2019, 10:02 imonsei side note, I cant make "cake bake" show the list with the "foo" command in it, no matter where i have the twig and php file placed, so I am definitely doing something entirely wrong
# Jun 24th 2019, 09:59 imonsei am I supposed to put the examples from "creating new bake command options" inside my theme, or in the vendor/cakephp folders?
# Jun 24th 2019, 09:59 imonsei i have used the above chapters to create my theme, which works nicely
# Jun 24th 2019, 09:59 unclezoot morning, how do you remove these warnings from error.log? Debug: command 'acl' in plugin 'Acl' was not aliased, conflicts with 'AclManager'
# Jun 24th 2019, 09:59 imonsei hia again. I'm having some problems with the "extending bake" part of the cake book. I'm at the "creating new bake commands options"
# Jun 24th 2019, 09:53 JayCH It's the prefix "api/1.0" mapping to the "Api10" plugin that I'm having issues setting up
# Jun 24th 2019, 09:51 JayCH I was unsuccessful so here's what i'm trying to do. I want to have all my API related Controllers as a plugin "Api10", but I would like to "version" these, so say if I call "/api/1.0/images", it calles "plugin/Api10/src/Controller/ImagesController.php. I'm not quite sure if I can do that with just routing, or if I need a custom routeClass?
# Jun 24th 2019, 09:50 neon1024 Morning all :wave:
# Jun 24th 2019, 09:45 JayCH Thanks for the link, that sparked an idea that I'll try before wasting your time :)
# Jun 24th 2019, 09:43 dereuromark you can also check the sandbox app and how it works there ( https://github.com/dereuromark/cakephp-sandbox/blob/master/plugins/Sandbox/config/routes.php ) in real life.
# Jun 24th 2019, 09:42 dereuromark sure, whats the issue
# Jun 24th 2019, 09:38 JayCH Hi! I've inherited a cakephp 3.7 app at work and can't quite get my head around plugin routing. Is this the right place to ask?
# Jun 24th 2019, 09:15 dereuromark any adapters here you could add to awesome list for us all?
# Jun 24th 2019, 09:12 steinkel @dereuromark using syslog here, then letting syslog fw it elsewhere
# Jun 24th 2019, 09:10 dereuromark See https://github.com/Seldaek/monolog/blob/master/doc/02-handlers-formatters-processors.md#log-specific-servers-and-networked-logging
# Jun 24th 2019, 09:10 dereuromark with monolog you can log to anything without having to change more than config, ideally that one as wrapper then
# Jun 24th 2019, 09:09 conehead What logging? I am logging to graylog
# Jun 24th 2019, 08:57 dereuromark I am surprised to not see any (monolog) wrapper logging engine in awesome list. what are people using these days? besides the database log maybe?
# Jun 24th 2019, 08:28 dereuromark capability of retry is definitely powerful and useful here, same for better usability as you dont have the waiting time on the frontend.
# Jun 24th 2019, 08:27 dereuromark @joey.mukherjee You can even use the queue usually for tasks that should be started right away, as with a good setup you have only a lag of a few seconds. it would only wait a few more if the workers are still all busy.
# Jun 24th 2019, 08:26 dereuromark But this is usually not adviced for things that need to run longer than a second, or if those could be failing and could need a rerun.
# Jun 24th 2019, 03:16 admad @joey.mukherjee if you want to trigger a task your self there's no need to use the queue plugin. Just run the shell/command your self with `exec()/shell_exec()` function
# Jun 24th 2019, 02:23 joey.mukherjee Thanks @challgren! Can you explain "If you just want to call the queue task then call your custom task" a little bit. By call my custom task, do you mean run the task without the queue? I am looking for a way to start the task immediately or trigger it somehow so it starts? Ideally, I'd rather not use cron if I can help it.
# Jun 24th 2019, 01:50 challgren You should always run it from the Shell. Running it from a web request will block that connection and eventually timeout. If you just want to call the queue task then call your custom task
# Jun 23rd 2019, 23:34 joey.mukherjee With the dereuromark/cakephp-queue plugin, is there a way to start the queued workers from my app instead of using a cronjob? I tried using a ShellDispatcher but it waits for a response. I am doing this in case I can tweak it: ``` $shell = new ShellDispatcher (); $command = ['cake', 'queue', 'runworker', 'and']; $output = $shell->run ($command);```
# Jun 23rd 2019, 19:39 vossen.steven @madbbb ok ty, I'll have to check out my host then to see how I can access it
# Jun 23rd 2019, 19:39 vossen.steven I checked my db, it was only on the db not on the tables
# Jun 23rd 2019, 18:15 madbbb you always have access to mysql encoding settings on shared hosting
# Jun 23rd 2019, 18:15 niel45 @vossen.steven isn't utf8mb4 set on the individual database or table?
# Jun 23rd 2019, 18:01 vossen.steven figured it out with your help, I have to add this to my.ini `character-set-server = utf8mb4` how would one fix this if they don't have access to it though?
# Jun 23rd 2019, 17:31 slackebot encoding anymore in my code