Jump to content

Exception: Unknown Selector operator: ''


neonwired
 Share

Recommended Posts

<b>Fatal error</b>:  Exception: Unknown Selector operator: '' -- was your selector value properly escaped? field='id', value='!=9022', selector: 'template=city,sort=random,start=0,id!=9022,id!=9011,id!=9028,id!=1099,limit=8' (in /opt/bitnami/apps/processwire/htdocs/wire/core/Selectors.php line 357)

I'm getting this confusing error with a selector, it seems to be implying that id isn't a field which is obviously not right. Any idea what might cause this bug?

Link to comment
Share on other sites

Error: 	Exception: Unknown Selector operator: '' -- was your selector value properly escaped? field='id', value='!= 9022', selector: 'template=city,id != 9022,id != 9011,id != 9028,id != 1099,' (in /opt/bitnami/apps/processwire/htdocs/wire/core/Selectors.php line 357)

#0 /opt/bitnami/apps/processwire/htdocs/wire/core/Selectors.php(401): ProcessWire\Selectors->create('id', '', '!= 9022')
#1 /opt/bitnami/apps/processwire/htdocs/wire/core/Selectors.php(158): ProcessWire\Selectors->extractString('template=city,i...')
#2 /opt/bitnami/apps/processwire/htdocs/wire/core/Selectors.php(144): ProcessWire\Selectors->setSelectorString('template=city,i...')
#3 /opt/bitnami/apps/processwire/htdocs/wire/core/PagesLoader.php(188): ProcessWire\Selectors->init('template=city,i...')
#4 /opt/bitnami/apps/processwire/htdocs/wire/core/Pages.php(225): ProcessWire\PagesLoader->find('template=city,i...', Array)
#5 [internal function]: ProcessWire\Pages->___find('template=city,i...')
#6 /opt/bitnami/apps/processwire/htdocs/wire/core/Wire.php(

This error message was shown because: site is in debug mode. ($config->debug = true; => /site/config.php). Error has been logged. 

i've reduced it to the simplest selector and still the same error. My version is 3.0.42.

The following work

template=city,id=9022,id=9011,id=9028,id=1099
template=city,id!=9022

so it seems the issue is with having multiple does not equal clauses. 

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

×
×
  • Create New...