Create a SqlField form item with an error - e.g mistype column name
Sensible error message
Vague 'An error has occurred.' error message
Changing SqlField.php line 293 to include something like this would help:
'
try
{
$items = $db->loadObjectList();
}
catch (ExecutionFailureException $e)
{
Factory::getApplication()->enqueueMessage(Text::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');
Factory::getApplication()->enqueueMessage($e->getMessage(), 'error');
Factory::getApplication()->enqueueMessage($this->query->__toString(), 'error');
}'
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-08-31 08:25:52 |
Closed_By | ⇒ | brianteeman |
Closing as intended behaviour
If anything a publication of the SQL query should be behind a JDEBUG check. It was an intention to not display information that are in the most cases not usefull to the people seeing it. The best case would be to put it into an log file and not into the public site.