# |
Dec 30th 2019, 10:08 |
challgren |
Hey so with the queue mailer? Did you still want to stick with using Cake\Mailer\Email? or Switch to Cake\Mailer\Mailer and use the user provided mailer? |
# |
Dec 30th 2019, 10:00 |
dereuromark |
Jep. |
# |
Dec 30th 2019, 10:00 |
challgren |
went from 2.12.3 to 3.0.1 |
# |
Dec 30th 2019, 09:56 |
challgren |
When I updated to 4.0.1 it updated twig |
# |
Dec 30th 2019, 09:56 |
dereuromark |
Twig is released. So we can now tag beta for bake :) |
# |
Dec 30th 2019, 08:49 |
challgren |
Evening all! |
# |
Dec 30th 2019, 07:12 |
javier.villanueva |
morning |
# |
Dec 30th 2019, 06:54 |
alexdd55976 |
monring |
# |
Dec 30th 2019, 04:38 |
admad |
also you will most like need to add `"minimum-stablity": "dev"` to composer.json |
# |
Dec 30th 2019, 04:38 |
admad |
> Installation request for cakephp/bake (locked at 1.12.0, required as ^1.9.0) -> satisfiable by cakephp/bake[1.12.0] @brandon delete the composer.lock file and then try again |
# |
Dec 30th 2019, 04:08 |
brandon |
Was messing around and tried a test upgrade to CakePHP 4.0. Followed the cookbook to upgrade and am getting the error listed: https://gist.github.com/beboobailey/8693a1ce1d55fd19653b39a39112f748 |
# |
Dec 30th 2019, 02:40 |
dereuromark |
Output, but u still need to calculate it usually |
# |
Dec 30th 2019, 02:19 |
challgren |
https://book.cakephp.org/3/en/console-and-shells/input-output.html#progress-helper |
# |
Dec 30th 2019, 02:19 |
challgren |
https://book.cakephp.org/4/en/console-commands/input-output.html#progress-helper |
# |
Dec 30th 2019, 02:17 |
challgren |
Isn't there a console helper that does progress now? |
# |
Dec 30th 2019, 01:34 |
dereuromark |
@kevin.pfeifer i once wrote such a Progress helper, but didnt pluginize it yet |
# |
Dec 30th 2019, 00:37 |
charolastra |
is baking still supported in 4.0? always end up with "[Twig\Error\SyntaxError] Unexpected token "name" of value "if" ("end of statement block" expected)." |
# |
Dec 30th 2019, 00:24 |
kevin.pfeifer |
ah i can just use the $io->overwrite method myself ^^thats easier |
# |
Dec 30th 2019, 00:20 |
kevin.pfeifer |
can I output the actual max amount and current amount of a command progress helper? For example i set 400 as a total and i increment each time i am in a loop I would like to see how many times i have already been in the loop instead of just 0% or 1% |
# |
Dec 29th 2019, 23:45 |
brandon |
@dereuromark That database logger is perfect. Thanks! |
# |
Dec 29th 2019, 18:05 |
birdy247 |
[Sun Dec 29 17:57:43.005730 2019] [core:notice] [pid 10874] AH00051: child pid 5205 exit signal Segmentation fault (11), possible coredump in /etc/apache2 |
# |
Dec 29th 2019, 18:04 |
birdy247 |
very strange! |
# |
Dec 29th 2019, 18:04 |
birdy247 |
i restarted apache and it worked |
# |
Dec 29th 2019, 17:58 |
dereuromark |
then it must be sth in the apache or nginx logs |
# |
Dec 29th 2019, 17:56 |
birdy247 |
Nothing in the cake logs |
# |
Dec 29th 2019, 17:54 |
birdy247 |
cake logs? |
# |
Dec 29th 2019, 17:53 |
dereuromark |
check the logs. |
# |
Dec 29th 2019, 17:52 |
birdy247 |
Nothing has changed recently |
# |
Dec 29th 2019, 17:52 |
birdy247 |
This is when posting a form |
# |
Dec 29th 2019, 17:52 |
slackebot |
<birdy247> |
# |
Dec 29th 2019, 17:52 |
birdy247 |
Really weird issue with a cake site |
# |
Dec 29th 2019, 17:52 |
birdy247 |
Hi Guys |
# |
Dec 29th 2019, 13:33 |
dereuromark |
@brandon https://github.com/dereuromark/CakePHP-DatabaseLog has some functionality to send emails after x min with an excerpt of fails. You dont want to send emails syncronous, and you dont want them all per single item, you might end up with millions of mails per hour^^ |
# |
Dec 29th 2019, 09:54 |
challgren |
https://book.cakephp.org/3/en/core-libraries/form.html |
# |
Dec 29th 2019, 09:52 |
challgren |
You can always create an entity without a table class |
# |
Dec 29th 2019, 09:52 |
challgren |
Like for a modelless form? |
# |
Dec 29th 2019, 09:48 |
jotpe |
Morning. Is it somehow possible to create a Table/Entities from array without any db connection? |
# |
Dec 29th 2019, 08:30 |
dsar |
Yes, that is a better idea (or just use a logger) |
# |
Dec 29th 2019, 03:42 |
brandon |
Alternatively, I was thinking of just having a custom error handler that emails the errors instead of displaying them to the admins. |
# |
Dec 29th 2019, 03:42 |
slackebot |
just give out 404s instead of redirecting to login. Anyone have experience with this? |
# |
Dec 29th 2019, 03:42 |
brandon |
I am having a bit of difficulty configuring custom error pages on 3.8. I want the error pages to be generic for end users but if the logged in user is an admin, I want the error to be more detailed so it can be reported, if needed. I learned that I need to add the AuthenticationMiddleware before the ErrorHandlingMiddleware so I could access authentication from the template. This, however, has a side effect - it causes unauthorized requests to |