These are chat archives for CORE-POS/IS4C

5th
Aug 2016
danry25
@danry25
Aug 05 2016 01:12
Figured it out
its caused by having multiple customer displays
When I finish a transaction an additional customer display is spawned
boxMsg2.php?quiet=1:82 Uncaught ReferenceError: submitWrapper is not defined
Andy Theuninck
@gohanman
Aug 05 2016 01:17
Strange. Just submitWrapper, not boxMsg2.submitWrapper? The customer display thing has never been more than a rough sketch of an idea. I imagine there's a way to reliably track child windows in JS across pages to avoid re-opening but don't know the solution offhand
danry25
@danry25
Aug 05 2016 01:27
looks like its just submitWrapper
Its giving that error when I press confirm or cancel
the boxMsg2.php?quiet=1:82 Uncaught ReferenceError: submitWrapper is not defined error
Andy Theuninck
@gohanman
Aug 05 2016 01:50
Clarification: when clicking confirm or cancel? Or does it happen when pressing enter or entering CL too?
danry25
@danry25
Aug 05 2016 01:51
I get that if I click either key with my mouse
if I use cl I can back ourt
*out
Does PR not print last receipt?
I get Input unknown when I try it
Andy Theuninck
@gohanman
Aug 05 2016 01:56
No. RP will give you a list of transaction to receipt (if the transaction is empty; otherwise it toggles receipt printing on/off)
danry25
@danry25
Aug 05 2016 01:57
Ah I must've mistyped it when programing this keyboard
Finn
@thefinn93
Aug 05 2016 20:19
@gohanman sooo we pulled the latest master off github and are getting a lot of brokenness and errors from just about any sort of operation. Are you aware of these? Should i file a more detailed report?
Andy Theuninck
@gohanman
Aug 05 2016 20:20
Details would help, yeah
Finn
@thefinn93
Aug 05 2016 20:22
alright, han gon
mostly this sort of thing:
Aug 5 13:03:57 jebian-dessie lane[18071]: (debug) Unknown AJAX request: COREPOS\pos\ajax\AjaxParser
Aug 5 13:07:41 jebian-dessie lane[7736]: (debug) Unknown AJAX request: COREPOS\pos\ajax\AjaxParser
Aug 5 13:11:45 jebian-dessie lane[18072]: (debug) Unknown AJAX request: AjaxPaycardAuth
Aug 5 13:12:06 jebian-dessie lane[18072]: (debug) Unknown AJAX request: AjaxPaycardAuth
Aug 5 13:13:07 jebian-dessie lane[18072]: (debug) Unknown AJAX request: COREPOS\pos\ajax\AjaxParser
gimme a sec i'll get info about what action creates what error
okay, so the POS was locked and I unlocked it, got:
Aug 5 13:22:52 jebian-dessie lane[18071]: (debug) Unknown AJAX request: COREPOS\pos\ajax\AjaxParser
i've tried entering a few test UPCs that we've got setup (112211, 6678, etc) and it says "Not a valid item"
and i get that same line in the error log
Andy Theuninck
@gohanman
Aug 05 2016 20:25
That's weird. I added the logging that writes those lines recently, but nothing has changed in the logic of how class names are resolved
Finn
@thefinn93
Aug 05 2016 20:27
hrm
Andy Theuninck
@gohanman
Aug 05 2016 20:36
Definitely not having the same issues myself. More detailed logging might help CORE-POS/IS4C@52c12cb
Finn
@thefinn93
Aug 05 2016 20:36
alright
thefinn93 @thefinn93 git pulls
Finn
@thefinn93
Aug 05 2016 20:37
Aug 5 13:37:19 jebian-dessie lane[18072]: (debug) Unknown AJAX request: COREPOS\pos\ajax\AjaxParser (File: /var/www/IS4C/pos/is4c-nf/gui-modules/pos2.php, NS: COREPOS\pos\gui-modules\pos2
BTW what do you think of adding Sentry exception handling
or similar
Andy Theuninck
@gohanman
Aug 05 2016 20:38
That is thoroughly confusing
I think the right approach would be to let configuration swap in monolog (https://github.com/Seldaek/monolog) for LaneLogger and then messages can get sent off to wherever.
Finn
@thefinn93
Aug 05 2016 20:43
ok cool
monolog looks really cool
i've never heard of it
Andy Theuninck
@gohanman
Aug 05 2016 20:44
I think it's literally the most popular PHP package in existence
Finn
@thefinn93
Aug 05 2016 20:44
welp, shows about how much PHP i write
Andy Theuninck
@gohanman
Aug 05 2016 20:45
Or I guess 2nd most. psr/log that defines the standard interface is 1st
Finn
@thefinn93
Aug 05 2016 20:46
ah cool
Andy Theuninck
@gohanman
Aug 05 2016 20:50
The actual error still seems impossibly weird. pos2 is not an AjaxCallback. It doesn't call AjaxCallback::run. I'm baffled why SCRIPT_FILENAME would point to that file