Hi @ll,
One of my sites made with Seblod, since last update from 3.16.3 to 3.17.1, has an error. The site throws Error: 1064 and this message:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 3
After investigating I found the problem is with a small snippet that some fields have on Code BeforeRender field in order to retrieve some properties, e.g.:
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('name');
$query->from('#__users');
$query->where(('id')." = ".$fields['art_created_by']->value);
$db->setQuery($query);
$fields['app_user']->form = '<input id="app_user" name="app_user" value="'.$db->loadResult().'" class="inputbox" type="hidden" />';
$db->freeResult();<br>
The problem is with some simple or double quote, probably in line 5 ($jquery->where()...) but I'm unable to solve it. Before the update that snippet was working perfectly. Maybe I'm missing something in the Seblod changelog...
Any help will be much appreciated
Best regards to all Sebloders
Adonay