• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug Server error log truncates content

Affected version
2.0.0 RC2

W1zzard

Well-known member
#1
The server error log truncates strings way too early, and stores them like that in the database, so there is no way to get the error details.



Maybe truncate at 255 in the database and truncate once again in the UI with a button to expand
 

Mike

XenForo developer
Staff member
#2
This is actually coming from PHP's own trace dumping function: http://php.net/manual/en/throwable.gettraceasstring.php I'm not aware of any way to modify that function (short of entirely rolling our own version, which I don't see as necessary/compelling), thus I don't think there will be a change here/this is expected.

Though I'd note the line you highlighted isn't really a good example as the full message is at the top.
 

Mike

XenForo developer
Staff member
#4
The second argument is the file it occurred in (third is the line number), though yes the path is cut off elsewhere too.