- 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.

Comments

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

This 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.

greggles’s picture

And, for fun, here is a patch which fixes that behavior in the bulk update.

edgarpe’s picture

Well, 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).

edgarpe’s picture

Oh 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 :)

greggles’s picture

Ok - 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')) {

edgarpe’s picture

There 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 :)

greggles’s picture

As I said in comment #1

This worked fine for me on a test site.

greggles’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

More than 2 weeks in needs more information without concrete steps to repeat -> closed.