Hi.
I'm using the Bibliography module and it's functionality is so great, but I am having problems with filter and/or search results with anonymous users. With logged users it works ok, but when you log out the filter stops to work. I try to disable cache, nothing happens. I download cache exclude module and add biblio/* to non cache pages list, with no results. I gave full permissions to anonymous users, ko again. I probably will try search directly in code but before that, I want to know if someone can help me with this issue. Do you know what can I do?
Thanks a lot,
Robert
Comments
Comment #1
rjerome commentedThe filter and search functionality depend on "PHP Session" handling, so I'm guessing that for some reason this is not working for anonymous users. Clearly it is possible, because it works on my site without any special setup, unfortunately I cant' give much more than that. Perhaps if you search the drupal site for "anonymous session handling" you will come up with something...
Ron.
Comment #2
jtrant commentedwe've just encountered this problem as well; neither filters or search work for anonymous users.
any luck in finding a resolution?
/jt
Comment #3
calimera commentedI've run into the same problem, that is the filter does not work for anonymous users. Is there anyone who found a solution?
Thanks,
calimera
Comment #4
rjerome commentedStill not sure why it's doing this, as you can see on liiscience.org it works just fine for anonymous users. If it's any consolation, I'm going to rework the search and filter code in the 6.x-2.x version so that it doesn't rely on PHP session handling to function.
Ron.
Comment #5
calimera commentedHi Ron,
thank you for your reply.
I've read several posts on the Drupal site and it seems that the anonymous user isn't allowed to do a number of things if there is no uid=0 in the "Users" table. This is the node: http://drupal.org/node/353428.
I checked my database and I found out that "uid=0" had inexplicably disappeared in my online installation of Drupal, though it exists in my local installation. Moving the database apparently deleted that value in the table "Users".
I tried to insert the value again and wrote: INSERT INTO users (uid) VALUES (0);
It did not work because I was told that this was a duplicate value.
I tried again with: INSERT INTO users SET uid = 0, name = 'anonymous'; INSERT INTO users_roles VALUES(0,1); DELETE FROM cache; (taken from http://agaric.com/note/drupal-deleting-user-uid-0) and now all the filters of the Biblio module work fine again for anonymous users.
I don't know if it is the best solution but it worked for me.
Best,
calimera
Comment #6
rjerome commentedThanks for the update. That would no doubt explain your problems and hopefully help others who run into this.
I'm still going to rework that code in an upcoming version becuase there are other issues resulting from the use of session variables for this purpose.
Ron.
Comment #8
cehfisher commentedI have been having a similar issue too and wanted to share my quick fix.
First, make sure ALL your settings/permissions are correct. In my case, I have to check these:
/admin/user/permissions
/admin/settings/biblio
/admin/content/node-type/biblio/access (I have anon and auth users able to both "View any content" and "View own content")
Next, re-save all these settings/permissions. Not sure why, but this works for me. I noticed that when someone adds more biblio content, I have to re-check and re-save my settings again.
Hopefully there will be a REAL fix soon, but this works in a pinch.
Comment #9
mnannini commentedHi,
For me, anonymous users don't see at all the biblio content even though I've authorized everyone using the access content, to access biblio and to edit own content...see @ http://miam2.physics.mcgill.ca/?q=publications
I don't understand.
Matthieu
Comment #10
rjerome commentedThis looks like it might be a different issue since it's not related to filtering the content.
You might try going to the "admin/content/node-settings" page and clicking the "Rebuild Permissions" button near the top of the page.
Ron.
Comment #11
liam morlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.