BFD Calendar Posted October 25, 2022 Posted October 25, 2022 Just recently I'm getting errors when viewing or editing product pages, still using Padloper 1.3.0 on PW 3.0.123 with no recent upgrades or changes. When just trying to access a page the error is Error: Exception: Method Field::getContext does not exist or is not callable in this context (in /home/mekanoinsa/www/wire/core/Wire.php line 519) When trying to edit the error is Error: Exception: Method Field::getContext does not exist or is not callable in this context (in /home/mekanoinsa/www/wire/core/Wire.php line 519) #0 /home/mekanoinsa/www/wire/core/Wire.php(386): ProcessWire\Wire->___callUnknown('getContext', Array) #1 /home/mekanoinsa/www/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___callUnknown', Array) #2 /home/mekanoinsa/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Field), 'callUnknown', Array) #3 /home/mekanoinsa/www/wire/core/Wire.php(445): ProcessWire\Wire->__call('callUnknown', Array) #4 /home/mekanoinsa/www/site/modules/FieldtypeQRCode/FieldtypeQRCode.module(326): ProcessWire\Wire->__call('getContext', Array) #5 /home/mekanoinsa/www/wire/core/Wire.php(389): ProcessWire\FieldtypeQRCode->___wakeupValue(Object(ProcessWire\Page), Object(ProcessWire\Field), '') #6 /home/mekanoinsa/www/wire/core/Wire.php(416): ProcessWire\Wire->_callMethod('___wakeupValue', Array) #7 /home/mekanoinsa/www/wire/core/Page.php(1422): ProcessWire\W Any idea what's going on?
elabx Posted October 25, 2022 Posted October 25, 2022 Seems to be getContext() is available until 3.0.162? https://processwire.com/api/ref/field/get-context/
BFD Calendar Posted October 26, 2022 Author Posted October 26, 2022 By trial and error I managed to solve the issue. I had a 'qrcode' field on the product template and for some reason that didn't work. By removing the field in the PW template and the php file and even removing the module the error was gone. No idea what one had to do with the other but anyway, problem solved. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now