NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1
|Anonymous | Login | Signup for a new account||22-06-17 17:29 BST|
|My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016850||phplist application||Message Send Process||public||27-08-13 16:32||08-04-14 03:54|
|Target Version||3.0.X||Fixed in Version||3.0.6|
|Summary||0016850: Query updating msg/hr in messagedata will fail on geman locale|
|Description||When processing the queue from the command line I get a lot of messages like this:|
Nachrichtenbrief - Sql error replace into messagedata set id= 1, name="msg/hr", data= 13819,3548387
Nachrichtenbrief - Database error 1064 while doing query You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0645161' at line 1
The messages are send out fine.
The problem is the "," in the query, MySQL needs a "." there. This is on a (old) GERMAN server, I'm pretty sure that's the problem. In german you write fractional numbers with a ",", but MySQL expects the english format with the ".".
Pretty common problem :)
|Tags||No tags attached.|
I've seen it in different (english) contexts as well. It should get " around the value.
Still having the problem on 3.0.5, seems not to be fixes.
To fix change the line setMessageData($messageid,'msg/hr',$msgperhour); in processqueue.php to setMessageData($messageid,'msg/hr',"$msgperhour");
edited on: 08-04-14 03:10
edit file admin/action/processqueue.php worked for me
line no. 1146:
this will change the localised number format into the system format, that fits SQL syntax.
|Copyright © 2000 - 2017 MantisBT Team|