-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crunz doesn't provide error log when emailing #161
Comments
Hello @kinoute, interesting case. EDIT: I've closed issue by accident, opened again, sorry. |
I did updated PHP on my server but it was minor updates (like 7.2.8 > 7.2.9) and IIRC, for minor updates, php.ini remains untouched for minor updates? At least I only got a message about my php.ini being edited/updated with "major" updates, like 7.1 to 7.2, which I did months ago. I tried on my Mac (10.11.6, PHP 7.2.8) both versions, Crunz 1.7.3 & Crunz 1.10.1, with a little script/repo and both worked correctly... I then uploaded the repo with 1.7.3 to my server, worked. Updated composer to 1.10.1, email is again not showing the fatal error. Here is the repo: https://github.com/kinoute/crunz-173. Server (7.2.11): Mac (7.2.8): |
So, it seems that it is bug in Crunz itself. I have done some digging and found out that PR #137 was meant to fix issues with output from |
How can I use this patch with composer? Sorry, I'm bad when it comes to custom repo/fork etc. |
It works on my server. As soon as I changed composer to use 1.10.1, I don't get the error (in my terminal after running schedule:run, and in the email, no error). |
So, patched version works as expected and fixes your issue? |
Yes. |
Great, i will make PR and merge it later. Thanks @kinoute. |
Came here because of the same issue, but it was not logging on file as well. Just tested the patched version from @PabloKowalczyk and now it's working. |
@danfsd Yep, i also fixed "log" and "display", not only "mail". |
Merged and released as v1.11.0-beta.2, thanks guys. |
Crunz version: 1.10.1
PHP version: 7.2.11
Operating system type and version:
Ubuntu 16.04
Description
It appeared recently. I don't get any error message by email when my script generates one. I do get an email with the first line in the body describing the job and its description, but afterwards there is nothing. I tried to run my script directly and it provides a fatal error, but crunz somewhat doesn't log it. I set log_errors & log_output to "true", and on both log files, there is no fatal error described as well. In the task log file, nothing appear, in the error log file, an error entry appears without the fatal error.
[2018-11-06 09:01:02] crunz.ERROR: job description(job command) [] []
When running my script manually, I get a fatal error:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function....
How to reproduce
Create a php script that will generate a fatal error. Set email_errors to true in config. Try crunz. You should get an email for the error, but inside there is nothing about the error, just "job's description (command)".
Possible Solution
No idea but I didn't have this problem before, it appeared recently, maybe after an update. Since I fortunately don't have a lot of errors in my code, I couldn't see this before recently 😄
The text was updated successfully, but these errors were encountered: