Article module is not working with PathAuto...
Hara Kim - January 4, 2008 - 17:59
| Project: | Article |
| Version: | 5.x-2.4 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | msameer |
| Status: | active |
Jump to:
Description
Hello I have tried uninstalling the pathauto and article modules multiple times I have been trying to figure out whats wrong for the last 3 hours =). When I create url aliases for my article categories everything works fine even the aliases... Yet on my article page the categories are still using the older urls..
For example if you look below:
http://www.hpkmedia.com/article
If you look at the business category the url is: http://www.hpkmedia.com/article/26
But since I made the aliases what I want listed as the url is: http://www.hpkmedia.com/article/business
For some reason on my article page it is not updating im very confused please help thanks!

#1
#2
Article doesn't check for aliases while creating the page.
I'll check it.
#3
Works for me. Maybe you need to clear your cache ?
#4
I meant that creating aliases manually works for me. I don't use pathauto.
#5
I have cleared cache many times, thats not the problem. The aliases work fine they are just not being used in the article module at all where as the rest of the drupal site it is being utilized. Is there anyway to let the article module know that I needs to be using aliases please look at my examples carefully and let me know if something is unclear thanks!
#6
It should work without problems.
Is this the case only with the pathauto generated aliases ?
#7
I dont think you understand the problem if you look on my site everything but the article module is using the url aliases. Now when looking at the main page of the article module it is not using the aliases that are created already...
Look here at my category for example "Business" category : http://www.hpkmedia.com/article
The business category is using the url : http://www.hpkmedia.com/article/26
The url should be : http://www.hpkmedia.com/article/business
Do you understand the issue?
If you look at this sample article : http://www.hpkmedia.com/business/1-business-building-tool-in-network-mar... and look under the category it is listed in... (which is "Business" category)
you will see this is linking to the correct url : http://www.hpkmedia.com/article/business
#8
I do understand the problem and it works fine for me. My question is still there: Is this the case only with the pathauto generated aliases ?
#9
Thats the thing I dont know? Im not sure how to create alises for "article/etc" can you show me your article site? Also do you have aim, msn or yahoo as I am just trying to fix this =) I can help whatever way I can
#10
I don't use pathauto on my website. I'm trying with a local installation.
I've installed pathauto and it doesn't work with article.
Article generates links using article/ while pathauto generates entries in the database in the form taxonomy/term/
That's why drupal can't replace article/26 with article/business while generating the links.
I'm not really sure how to provide integration with pathauto...
#11
ok thank you for confirming one of the main reasons I was asking was to see if I Was doing something wrong.. Now we both understand each other which is great =).
Currently how does the linking system work for the article module?
Than maybe we can figure out a way to integrate it with the pathauto module as I'm sure maybe people would be greatful to utilize both modules
#12
I've implemented pathauto integration but I didn't test it enough.
Please try 5.x-2.x-dev (You might need to wait until the tarball gets regenerated) and report any issues. You also have to enable the integration from the article settings page.
#13
ok I will test it in the next few days and let you know
#14
Hmm I cant seem to find where to download it?
Can you direct me to where I can download the dev version I checked the "view all the releases" but didnt see it there
#15
It's on the main module page.
Here's a link: http://ftp.drupal.org/files/projects/article-5.x-2.x-dev.tar.gz
#16
Hmm tried it out I enabled the settings in the article module but nothing happened..
So I went to the pathauto settings and it wouldn't let me save the url aliases for the article categories I also got this error
warning: Invalid argument supplied for foreach() in /home/xxxxx/domains/hpkmedia.com/public_html/modules/pathauto-5.x-2.0.tar/pathauto/pathauto.module on line 261.
#17
It will create an alias whenever you create a new article category.
What do you mean by 'it wouldn't let me save the url aliases for the article categories' ? What's the error message you've got ?
#18
Hmm I tried creating new category and it seems no different from the original article module.. When you can, can you install both modules on a test site and check it out Thank you very much!!
#19
Maybe because you are getting an error which you did not reveal until now ? ;-)
I already have a local installation and it works fine.
How did you create the new category ?
#20
no this error occurred after I uploaded the new article module
#21
If you don't answer my questions then I won't be able to provide help.
#22
I'm sorry I accidentally must of skipped that part... I am just creating a category in the category section of the admin back end. I created a content type for articles and added a term. Thanks so much for the help
#23
For the 3rd time I'm asking about the error you've got from pathauto ?
What's the error message you got when you tried to save the URL aliases for article in the pathauto admin page ?
Please help me help you!
#24
I told you in the 16th post I couldnt figure out what you were asking...
In my 16th post here it says :
Hmm tried it out I enabled the settings in the article module but nothing happened..
So I went to the pathauto settings and it wouldn't let me save the url aliases for the article categories I also got this error
warning: Invalid argument supplied for foreach() in /home/xxxxx/domains/hpkmedia.com/public_html/modules/pathauto-5.x-2.0.tar/pathauto/pathauto.module on line 261.
#25
And I'm still asking: What do you mean by "it wouldn't let me save the url aliases" ? did it corrupt your database ? did drupal display a warning ? did your monitor explode ?
#26
"it wouldn't let me save the url aliases" ? I meant the url setting options for the article content was not there at all I tried it on a fresh install on a different domain and still couldnt get it to work.
I believe it didnt corrupt the database as when I disabled the article module and used the orginal version everything was back to normal and no errors.
Drupal gave me this warning that I listed above: warning: Invalid argument supplied for foreach() in /home/xxxxx/domains/hpkmedia.com/public_html/modules/pathauto-5.x-2.0.tar/pathauto/pathauto.module on line 261.
did your monitor explode ? I am not sure what you mean by explode
Thank you very much for helping me figure this out =)
#27
I can't really reproduce this. I have the option there in the pathauto admin page.