Fuzzbuckets
Member
- Joined
- Jul 17, 2019
- Messages
- 6
- Reaction score
- 0
How are you running tap_manager.php?
Could you post the last few lines from /var/log/apache2/error.log
My mistake, my original query was unclear.
Followed your script from #3807 and #4417. Afterwards I was getting the Cannot execute query error. I saw post #4335 where you mentioned getting the latest admin/includes/managers/tap_manager.php
https://raw.githubusercontent.com/r...aster/admin/includes/managers/tap_manager.php
I tried putting them in the /var/www/html/admin/includes/manager folder but nothing changed. Then I attempted to run $ php /../tap_manager.php after downloading it and all 4 of the called php files. (manager.php, tapEvent_manager.php, tap.php, etc. I honestly don't remember the names of all of them, but I had them all downloaded) conn.php was not found in line 2 so I adjusted manager.php to look at the specific location for conn.php. The script did not show any errors at this point, but I am still getting the Cannot execute query when trying to add a tap. I would assume since I ran the install script yesterday again that I would have the most recent tap_manager.php that was updated back in February.
I also did this based on the script directions
pi@raspberrypi:/var/www/html $ sudo -u www-data git pull
Already up-to-date.
I am using an Arduino Uno (official) with my pins in 8, 9, and 10. I am able to add beers, kegs, and taps, but when I select the pin for my tap I get the error. There are no results in the /var/log/apache2/error.log when I run the tap list save function. There are some from a couple hours ago which I will paste to this message
[Wed Jul 24 11:25:10.382455 2019] [:error] [pid 750] [client 192.168.2.120:50582] PHP Notice: Undefined variable: tempDisplay in /var/www/html/index.php on line 177
[Wed Jul 24 11:26:06.878447 2019] [:error] [pid 754] [client 192.168.2.120:50608] PHP Notice: Undefined index: myusername in /var/www/html/admin/left_bar.php on line 8, referer: http://192.168.2.120/
[Wed Jul 24 11:26:06.878697 2019] [:error] [pid 754] [client 192.168.2.120:50608] PHP Notice: Undefined index: showadmin in /var/www/html/admin/left_bar.php on line 77, referer: http://192.168.2.120/
[Wed Jul 24 14:29:57.743459 2019] [:error] [pid 750] [client 192.168.2.120:51556] PHP Notice: Undefined variable: date in /var/www/html/index.php on line 175, referer: http://192.168.2.120/admin/tap_list.php
[Wed Jul 24 14:29:57.750536 2019] [:error] [pid 750] [client 192.168.2.120:51556] PHP Notice: Undefined variable: tempDisplay in /var/www/html/index.php on line 175, referer: http://192.168.2.120/admin/tap_list.php
I do show a serial monitor "alive" repeating over and over for the Arduino but am still having a problems getting the taps selected.