Site visitors seeing your ugly error messages on the screen (along with details of your Drupal installation path)? Once your site goes from dev to launch, you probably want to have errors recorded in the log but not splashed across the screen. Head to the handy Error Reporting settings found at admin/settings/error-reporting.
Other Fun Things
Relevant Content
The Drupal Ace logo has dealt these content suggestions from the deck.
Learn Drupal, hands-on
Get the beginner-friendly ebook that teaches community site building via a live case study.








xcvc
xcvc
Search behaving funny when profile access turned off
I have turned off the access for Profile pages as that is not needed. BUT this makes searching of contents by the user IMPOSSIBLE. I am also using the core SEARCH module as it seems to be the least resource intensive and suitable for shared hosts. Now how to tell SEARCH to list the contents created by a poster or show the list of contents in which his name appears (as author) . With profile access turned off SEARCH strangely gives Access denied messages and fails to show a list like I said above.
Searching content by user
Sorry for the delay, but I wanted to check into this before replying.
I don't know whether I'll be able to help here. I currently have one site in my control with multiple users. Access for profile pages was already turned off for all but the top administrators. (I assume you're talking about the "access user profiles" permissions at admin/user/permissions.)
Enabling the above permissions and running a search for a user name as an anon user, the search returns pages in which that user's name appears, but not user profile pages. (I can, of course, access user profile pages directly via the appropriate paths, with the above permissions enabled.)
Those are the same results when I run the search as an admin user (no surprise, as I've now enabled equal permissions for both). Either way, they're the same results I would expect without any "access user profiles" permissions enabled.
In your case, what result do you get when you DO have access permissions for user profiles enabled? Does search for a user name return a list of content in which the user's name appears, plus the user profile page? Or are you somehow getting a listing of content submitted by that user? I don't get anything like that, so I wonder what you are getting.
In any case, if you are getting the search results you want when you keep access for profile pages enabled, is there a reason why you don't keep access enabled?
Also, is there a way to get the results you want using Views? I'm sure a View can return a list of all content submitted by a user. (Anyone out there have experience building such a View?)
Finally, I think I saw that you posted this question to the drupal.org forums too, but I didn't subscribe to the thread. I'd like to follow it; can you post the thread URL here?
Post new comment