tomyvi / php-tracks-recorder

PHP front & backend for owntracks & overland payload
GNU General Public License v3.0
66 stars 33 forks source link

Fatal error getFriends() #24

Open dvdrw15 opened 4 years ago

dvdrw15 commented 4 years ago

Hello, i am getting this error when I open owntracks app and upload my position to server:

[Mon Feb 10 17:55:04.901548 2020] [:error] [pid 11687] [client xxxxx:63983] PHP Notice: Undefined variable: sql in /var/www/map/public_html/lib/recorder/OwntracksRecorder.php on line 114

[Mon Feb 10 17:55:04.901581 2020] [:error] [pid 11687] [client xxxxx:63983] PHP Fatal error: Uncaught Error: Call to a member function getFriends() on null in /var/www/map/public_html/lib/recorder/OwntracksRecorder.php:114\nStack trace:\n#0 /var/www/map/public_html/record.php(78): OwntracksRecorder->getFriendsLocation(Object(OwntracksRecordStructure))\n#1 {main}\n thrown in /var/www/map/public_html/lib/recorder/OwntracksRecorder.php on line 114

any idea what could be the cause ?

I am running on:

Apache/2.4.25 (Debian)
libmysql - mysqlnd 5.0.12-dev
PHP: 7.0.33-0+deb9u6
10.1.44-MariaDB-0+deb9u1 - Debian 9.11

also i've noticed maybe error on line 26 in record.php - there is .php twice require_once('lib/db/MySqlPdo.php.php');

Btw great work :)

schnudeldudel commented 2 years ago

Somehow related to #26.

?