Unknown error occurred returned for several error() calls in warnings.php #2881
Labels
b:1.8
Branch: 1.8.x
s:resolved
Status: Resolved. Solution implemented or scheduled
t:bug
Type: Bug. An issue causing error / flaw / malfunction
Milestone
Several error messages are using language strings from
datahandler_warnings
but that language file is not loaded in thewarnings.php
context, thus causingnull
to be passed toerror()
which falls back toAn unknown error has occurred
.The fix is a simple
$lang->load("datahandler_warnings");
underneath the current$lang->load("warnings");
. However I thought it be best to discuss if the language strings should be copied to thewarnings
language file instead? It might be unexpected the datahandler language file being loaded outside the datahandler so should probably be avoided.There may be more instances of this sort of use of datahandler language string use around other parts of the codebase.
The text was updated successfully, but these errors were encountered: