surfrock66 / torque

A set of tools used with the Torque app for Android to store OBD2 data in MySQL, view GPS data from Torque on a map in real time using the Google Maps JavaScript API, plot OBD2 data in time series charts, and export the data to CSV or JSON.
Other
43 stars 23 forks source link

No more load data #46

Closed aldodemi closed 3 years ago

aldodemi commented 3 years ago

Server Ubuntu 21.04 - hirsute VERSION="21.04 (Hirsute Hippo)" mysql Ver 8.0.26-0ubuntu0.21.04.3 for Linux on x86_64 ((Ubuntu))

No data loaded anymore: if connect via web to "upload_data.php" page it responds "OK!" but torque PRO remain in "loading..."

Found this in apacha2 error log: "[php7:notice] [pid 2934453] [client zz.kk.xx.yy:47808] PHP Notice: Undefined index: table_name in /var/www/torque/upload_data.php on line 115"

This happen both with my old server and also with a new server (same OS and MySQL versions) created from scratch to test.

Thanks Aldo

genius3000 commented 3 years ago

This sounds like another instance of the issue found in #36. Try changing table_name on line 115 of upload_data.php to TABLE_NAME (lowercase to uppercase).

surfrock66 commented 3 years ago

Yea, this is the weirdest thing. I did a new grep and found another few I missed, and pushed a new commit. I hope this is all of it now, I did a recursive grep on "table_name" in the whole repo.

aldodemi commented 3 years ago

This problem seems solved, thank you