Undefined index: search_as_public_user

When some users search for an asset id that doesn't exist they get a "Undefined index: search_as_public_user" error in the top frame (which makes it fairly hard to use).


I think it's related to what group they're in but I'm not sure where to look next.



The backtrace is here:



[codebox]0 => array (

"function" => "sq_error_handler",

"args" => array (

0 => 8,

1 => "Undefined index: search_as_public_user",

2 => "[squiz_root]/packages/search/search_manager/search_manager.inc",

3 => 2405,

4 => array (

[Max Depth Reached]

)

)

),

1 => array (

"file" => "[squiz_root]/packages/search/search_manager/search_manager.inc",

"line" => 2405,

"function" => "constructbasesearchquery"

),

2 => array (

"file" => "[squiz_root]/packages/search/search_manager/search_manager.inc",

"line" => 1763,

"function" => "constructbasesearchquery",

"class" => "search_manager",

"type" => "->",

"args" => array (

0 => array (

[Max Depth Reached]

)

)

),

3 => array (

"file" => "[squiz_root]/core/lib/backend_search/backend_search.inc",

"line" => 103,

"function" => "processsearch",

"class" => "search_manager",

"type" => "->",

"args" => array (

0 => array (

[Max Depth Reached]

),

1 => 1

)

),

4 => array (

"file" => "[squiz_root]/core/include/backend.inc",

"line" => 457,

"function" => "processsearch",

"class" => "backend_search",

"type" => "::",

"args" => array (

0 => "12345689"

)

),

5 => array (

"file" => "[squiz_root]/core/include/backend.inc",

"line" => 181,

"function" => "_printheader",

"class" => "backend",

"type" => "->",

"args" => array (

[Empty]

)

),

6 => array (

"file" => "[squiz_root]/core/include/mysource.inc",

"line" => 355,

"function" => "paint",

"class" => "backend",

"type" => "->",

"args" => array (

[Empty]

)

),

7 => array (

"file" => "[squiz_root]/core/web/index.php",

"line" => 31,

"function" => "start",

"class" => "mysource",

"type" => "->",

"args" => array (

[Empty]

)

) [/codebox]



Does anyone have any ideas?

If you think you’ve found a bug, please report it at http://bugs.matrix.squiz.ne and a developer will look into it. If you are a client and need more urgent support, contact Squiz Support.

It's not a big deal and has a work around, was just hoping someone new why it was happening.


Will post a bug report, but without knowing exactly why it's happening for some users and not for others it may be difficult to reproduce on your end.

For those wanting to follow the bug report, this has been posted as Bug 3526: Undefined index: search_as_public_user.