I have an issue with selectors, whenever there is a comma in the selected value…
$foo = $item->foo; // "what, ever, with, commas"
$bar = pages()->get("template=foo_template, title=$foo");
then I get
Fehler: Exception: Unknown Selector operator: '[empty]' -- was your selector value properly escaped? (in wire/core/Selectors.php line 222)
Because it thinks that what ever is after the comma is the next selector.
Though the value in question is not expected to have commas, this shouldn't happen. How can I escape it properly?
And then, also, even though I'm NOT in config debug mode, Tracy Debugger is NOT active and I am NOT logged in, i.e. not superuser, I still get the error in the frontend, breaking the entire output script, showing me no CSS (I use markup regions). That's of course not a good user experience. Shouldn't it show a white page instead? Do I have to use a try-catch code block?