Set "Log Deprecated API" on in the "Logging" Global Configurations panel.
Run almost anything, either in the front or back end.
If running something in the back end, look in the file /administrator/logs/deprecated.php (I haven't checked the corresponding front end file)
Deprecation messages should show the line number and file name causing the deprecation message.
They don't.
Present in 4.1.5 and all previous versions (presumably).
In file /libraries/src/Exception/ExceptionHandler.php method handleUserDeprecatedErrors line 44, add in the file and line reference, which are supplied to that method, eg
Log::add("$errorMessage - $errorFile - Line $errorLine", Log::WARNING, 'deprecated');
I can imagine that this was excluded purposefully since the core still contains hundreds, if not thousands, of deprecation instances, but in a way that makes it even more unhelpful that this information is not printed.
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-06-27 16:20:44 |
Closed_By | ⇒ | richard67 |
Can you make a pull request with the suggestion. Sounds like a good addition.