An SQL Error occurs within com_finder in a German environment when saving an article.
The weight value is not quoted, thus making a value of 1,5 looking like an other value instead of translating it to 1.5
I've found a workaround here:
http://getserver.de/bugs-fixes/12-joomla-3-x-finder-plugin-verursacht-fehler-beim-speichern-eines-beitrages.html
Labels |
Added:
?
|
btw: Both solutions did not work for me, I did instead:
. str_replace(',', '.', $token->weight) . ','
Category | ⇒ | Administration SQL |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-12-04 10:46:10 |
Translation for the non german here:
Error Message
note the 0,6 that is not quoted.
The Autor noted that this is a issue with the Hosting envoirment (LOCALE) that can be fixed by.
dpkg-reconfigure locales
(<-- Debian)Or by code here: administrator/components/com_finder/helpers/indexer/driver/mysql.php Line: 602
Old:
. (float) $token->weight . ', '
New:
. (preg_match('/,\d+$/', $token->weight))?str_replace(array('.', ','), array('', '.'),$token->weight):str_replace(',','',$token->weight) . ', '