Jump to content

Show only if selector misbehaving


loukote
 Share

Recommended Posts

Hi,

For testing, i've filled field Visibility > Show this field only if with a selector that had a typo. Now, despite the fact that the field is blank and that there is no override in the template that uses it, the selector somehow lives in the template and causes an error when a page with the template is saved.

So far i checked to make sure that the override is not causing the issue (blank so as the input of the field itself) and filled both with something else (id=1), saved the field and the template again and cleared caches (setup > cache admin).

So i seek your kind help to get rid of it.

(Here is the backtrace:)

ProcessWire: ProcessPageEdit: Unknown Selector operator: '==' -- was your selector value properly escaped? field='1', value='3', selector: '1==3'
DEBUG MODE BACKTRACE ($config->debug == true):
#0 /mnt/data/accounts/l/lama/data/www/wire/core/Selectors.php(439): ProcessWire\Selectors->create('1', '==', '3')
#1 /mnt/data/accounts/l/lama/data/www/wire/core/Selectors.php(159): ProcessWire\Selectors->extractString('1==3')
#2 /mnt/data/accounts/l/lama/data/www/wire/core/Selectors.php(145): ProcessWire\Selectors->setSelectorString('1==3')
#3 /mnt/data/accounts/l/lama/data/www/wire/core/Selectors.php(125): ProcessWire\Selectors->init('1==3')
#4 /mnt/data/accounts/l/lama/data/www/wire/modules/Inputfield/InputfieldForm.module(193): ProcessWire\Selectors->__construct('1==3')
#5 /mnt/data/accounts/l/lama/data/www/wire/modules/Inputfield/InputfieldForm.module(149): ProcessWire\InputfieldForm->processInputShowIf(Object(ProcessWire\WireInputData), Array)
#6 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(383): ProcessWire\InputfieldForm->___processInput(Object(ProcessWire\WireInputData))
#7 /mnt/data/accounts/l/lama/data/www/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___processInput', Array)
#8 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\InputfieldForm), 'processInput', Array)
#9 /mnt/data/accounts/l/lama/data/www/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module(1493): ProcessWire\Wire->__call('processInput', Array)
#10 /mnt/data/accounts/l/lama/data/www/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module(1493): ProcessWire\InputfieldForm->processInput(Object(ProcessWire\WireInputData))
#11 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(383): ProcessWire\ProcessPageEdit->___processInput(Object(ProcessWire\InputfieldForm))
#12 /mnt/data/accounts/l/lama/data/www/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___processInput', Array)
#13 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageEdit), 'processInput', Array)
#14 /mnt/data/accounts/l/lama/data/www/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module(1356): ProcessWire\Wire->__call('processInput', Array)
#15 /mnt/data/accounts/l/lama/data/www/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module(1356): ProcessWire\ProcessPageEdit->processInput(Object(ProcessWire\InputfieldForm))
#16 /mnt/data/accounts/l/lama/data/www/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module(409): ProcessWire\ProcessPageEdit->processSave()
#17 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(380): ProcessWire\ProcessPageEdit->___execute()
#18 /mnt/data/accounts/l/lama/data/www/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___execute', Array)
#19 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageEdit), 'execute', Array)
#20 /mnt/data/accounts/l/lama/data/www/wire/core/ProcessController.php(244): ProcessWire\Wire->__call('execute', Array)
#21 /mnt/data/accounts/l/lama/data/www/wire/core/ProcessController.php(244): ProcessWire\ProcessPageEdit->execute()
#22 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(380): ProcessWire\ProcessController->___execute()
#23 /mnt/data/accounts/l/lama/data/www/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___execute', Array)
#24 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessController), 'execute', Array)
#25 /mnt/data/accounts/l/lama/data/www/wire/core/admin.php(113): ProcessWire\Wire->__call('execute', Array)
#26 /mnt/data/accounts/l/lama/data/www/wire/core/admin.php(113): ProcessWire\ProcessController->execute()
#27 /mnt/data/accounts/l/lama/data/www/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/mnt/data/accou...')
#28 /mnt/data/accounts/l/lama/data/www/site/templates/admin.php(15): require('/mnt/data/accou...')
#29 /mnt/data/accounts/l/lama/data/www/wire/core/TemplateFile.php(268): require('/mnt/data/accou...')
#30 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render()
#31 /mnt/data/accounts/l/lama/data/www/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___render', Array)
#32 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array)
#33 /mnt/data/accounts/l/lama/data/www/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array)
#34 /mnt/data/accounts/l/lama/data/www/wire/modules/PageRender.module(514): ProcessWire\TemplateFile->render()
#35 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent))
#36 /mnt/data/accounts/l/lama/data/www/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___renderPage', Array)
#37 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderPage', Array)
#38 /mnt/data/accounts/l/lama/data/www/wire/core/WireHooks.php(782): ProcessWire\Wire->__call('renderPage', Array)
#39 /mnt/data/accounts/l/lama/data/www/wire/core/WireHooks.php(782): ProcessWire\PageRender->renderPage(Object(ProcessWire\HookEvent))
#40 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Page), 'render', Array)
#41 /mnt/data/accounts/l/lama/data/www/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Wire->__call('render', Array)
#42 /mnt/data/accounts/l/lama/data/www/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Page->render()
#43 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(383): ProcessWire\ProcessPageView->___execute(true)
#44 /mnt/data/accounts/l/lama/data/www/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___execute', Array)
#45 /mnt/data/accounts/l/lama/data/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'execute', Array)
#46 /mnt/data/accounts/l/lama/data/www/index.php(55): ProcessWire\Wire->__call('execute', Array)
#47 /mnt/data/accounts/l/lama/data/www/index.php(55): ProcessWire\ProcessPageView->execute(true)
#48 {main}

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...