Closed jmaas-onoffice closed 1 year ago
https://serverfault.com/questions/256459/nginx-php-fpm-long-log-lines-get-truncated Like in this article, maybe it is the cause of issue, log_errors_max_len parametter, I will increase it to see if it works
I don't think it is an option to change runtime parameters.
However, the documentation for log_errors_max_len mentions that the limit is not applied "to explicitly called functions such as error_log()
". So maybe currently the error is logged because it is an uncaught exception, so you might be able to add a way to catch it and log the error with error_log()
.
@jmaas-onoffice Now I don't know what is the cause and I tried to reproduce but can't reproduce the error. I think the memory is full, so when the exception runs, the content of the exception breaks midway. Can you help me reproduce it?
This is what I did:
@jmaas-onoffice I have followed the steps as you described but my error log is still showing full. You can watch my video,
Yes, that looks different! I will have a look if I can still reproduce it, thanks!
For documentation: It seems that with PHP 8 I also cannot reproduce this problem.
Only part of the request is shown
I can provoke an API error by adding a custom field to a field list and then deleting that custom field in enterprise. In the logs, I then get this:
As described in #395, the error should look more like this with the entire request shown:
In the code, the message is set correctly: https://github.com/onOffice-Web-Org/oo-wp-plugin/blob/f8863db12c399b6650864544feb244c683b9ed5c/plugin/API/ApiClientException.php#L74
I am not sure why the message is being cut off when displayed in the logs.
Redundant "error code"
Additionally, the first line reads "an error with code error code 141". This should be corrected, for example in #395 we proposed "an error with code 141".