Jest

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Jest

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @zoeck Yep, I realized why the longtext is causing error... right after I posted the reply As @BitPoet stated the current dev version fixes this bug, but I'm going to stay on master 3.0.62 since the site will probably be in production sooner than the current dev will become master (and I've found the solution). @Macrura Thanks for suggestion, the code is cleaner using the selector array but it still doesn't work - as expected due to the bug. @BitPoet Many thanks for giving me the closure! Now I'll be finally able to sleep
  2. Now here's the funny thing: if I wrap the single word value in quotation marks it works. So this doesn't work $pages->find('template=project, title*="two, maybe three words"|unknown'); But this does work $pages->find('template=project, title*="two, maybe three words"|"unknown"'); I've managed to make my code work by checking the number of words in a selector value and if there's only one word I wrap the value in quotation marks. But it still bugs me why it doesn't work without quotation marks. I'll dig deeper and post the findings, if there will be any. And thank you guys for your contributions!
  3. @3fingers Unfortunately not... the same error.
  4. That's interesting - your code doesn't work for me. The same error Exception: Unknown Selector operator: '' -- was your selector value properly escaped? is shown. If I add another value to the title field (title*="two, maybe three words"|unknown|"another unknown") it works until the longtext part. There it shows an error Exception: Field does not exist: longtext. But if I remove the longtext selector and run this: $pages->find('template=project, title*="two, maybe three words"|unknown'); It still doesn't work. Is it possible my hosting environment is the reason for this??
  5. Hi all, today I've run into some strange error when using selectors. The following selector works fine: $pages->find('template=TemplateName, (many|of|different|fields*=Searching), (year=Searching), (year>=1941, year<=1960), author*=unknown, publisher*="two, maybe three words"|unknown|"another two, maybe three words", area*=All'); Whereas this one throws an error: $pages->find('template=TemplateName, (many|of|different|fields*=Searching), (year=Searching), (year>=1941, year<=1960), author*=unknown, publisher*="two, maybe three words"|unknown, area*=All'); The only difference is in publisher field having only two values. The error is Exception: Unknown Selector operator: '' -- was your selector value properly escaped? Additional info: ProcessWire 3.0.62 All values are sanitized using $sanitizer->selectorValue(string) publisher value usually has commas or parenthesis publisher="one, two"|"three, four" works publisher="one, two"|three|"four, five" works publisher="one, two"|five doesn't work publisher=five works The only conclusion I can make is the selector fails when the last value of publisher is a single word. Any thoughts? All help is greatly appreciated! Jan