- D6.3 clean install
- enabled modules: core Blog module, pathauto 6.x-1.1, token 6.x-1.10
If I add a user named JOE than "user/joe" alias is created while "blogs/joe" is not. If I Bulk update blogs than "blogs/joe" IS created.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 283141_only_bulk_update_blog_aliases_permission.patch | 1.31 KB | greggles |
Comments
Comment #1
gregglesThis worked fine for me on a test site.
Does the user Joe have the permission to create a blog? Pathauto only creates blog aliases for users who have the permission to blog.
In the bulk update code for blogs there is no check for the permission to blog, which is a bug in that code that is perhaps giving you the symptoms that you describe.
Comment #2
gregglesAnd, for fun, here is a patch which fixes that behavior in the bulk update.
Comment #3
edgarpe commentedWell, as I said, the blogs/joe alias is NOT created. Not even if authenticated users have the permission to create blogs.
It is a clean Drupal 6.3 install with pathauto 6.x-1.1 and token 6.x-1.10 Sorry for repeating myself, but I can't imagine what else info should I give.
Is there ANY way I can help on this? It is very important to me!
(I try to use the pathauto API, copy-pasted the code from pathauto.inc and pathauto.module related to blogs but it is not working. I tried with the original blogs module and it is not working either).
Comment #4
edgarpe commentedOh my...! I was adding users on page admin/user/user/create, logged in as user uid 1. This produced the problem I described. If I log out and register a new user, there is no problem.
Well, it is still a bug but much less critical :)
Comment #5
gregglesOk - I've split my issue out to #283176: users without permission to blog get a blog alias during bulk update.
I'm not sure what else to ask for. When I try to repeat the problem I don't have it.
The section of code to investigate is in pathauto.module that starts with
if (module_exists('blog')) {Comment #6
edgarpe commentedThere IS a problem if I add users via the admin interface (admin/user/user/create) logged in az user no. 1.
There IS NO problem if I use the user/register page to create new accounts.
Try adding new users, not registering them.
Btw XP SP3, Apache 2.0.59, PHP 5.2.4, MySQL 5.0.27 but it is completely unimportant :)
Comment #7
gregglesAs I said in comment #1
Comment #8
gregglesMore than 2 weeks in needs more information without concrete steps to repeat -> closed.