![]() |
After updating my project from 3.8.5 to 4.4.0 i've encountered an error with my CLI routes that send e-mails with a link to my website. To test I created a new project with composer and tried to echo the base url of my project. If someone could help me I'd be glad.
CLI output: Code: PS C:\projects\project-root> php public/index.php home Routes file: PHP Code: <?php Home controller: PHP Code: <?php
Thank you for reporting.
Try this: Code: --- a/system/HTTP/CLIRequest.php
I sent a PR to fix this issue. https://github.com/codeigniter4/CodeIgniter4/pull/7901
Anyone can test and review.
(09-05-2023, 01:36 PM)kenjis Wrote: Thank you for reporting. It works, thanks! I'll wait the next update to use in production.
I have the same problem, when executing a cron job by CLI, this method send also a email and get this error. The fixed is working for me too.
My error was detected when loading view file inside the controller for sending as email body: Code: $body = view('cm/mail/' . $action, $data); I'm using CI 4.4.1 but need to patch file CLIRequest.php manually. |
Welcome Guest, Not a member yet? Register Sign In |