When I search for pages to which I don't have permission as a user, I get plenty of warnings in many pages, one after another. For example, when I search for the word "question", I get 5 pages, each one with logos, blocks, etc. Only in the last page I see the results of the search. "Question" is a word that is in many quiz questions, to which users can't access because the quiz is available only some specific days, so if I type the url of a question, I get Access denied. When I set Drupal to write error only to the log, and not the screen in "Administer > Site configuration> Error reporting", I don't get the warnings but only the "Access denied" pages.

I have no problems when I search for the word "question" as admin.

I uploaded a picture of the warning and the 5th page.

If users can't search for terms inside not allowed pages, "search" shouldn't show warnings. I haven't found threads similar to this problem, is it only happening to me?

Thanks

Yersin

CommentFileSizeAuthor
5th_page_search.png61.56 KByersin
access_denied_search.png32.21 KByersin

Comments

catch’s picture

Project: Drupal core » Quiz
Version: 5.7 » 5.x-2.x-dev
Component: search.module » Code

This sounds like a bug with the way quiz module is handling access to nodes based on dates. If I'm wrong please send it back to core though :)

mbutcher’s picture

Priority: Normal » Minor

Downgraded to minor because it sounds like a configuration issue for search. Quiz questions should probably not be returned from search results.

mbutcher’s picture

Status: Active » Closed (fixed)

Quiz for D5 is no longer supported.