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

Hara Kim - January 4, 2008 - 18:00
Category:bug report» support request

#2

msameer - January 4, 2008 - 19:43
Category:support request» feature request
Priority:critical» normal
Assigned to:Hara Kim» msameer

Article doesn't check for aliases while creating the page.

I'll check it.

#3

msameer - January 4, 2008 - 19:55
Title:Article module is not working with PathAuto...» take int

Works for me. Maybe you need to clear your cache ?

#4

msameer - January 4, 2008 - 20:01
Title:take int» Article module is not working with PathAuto...

I meant that creating aliases manually works for me. I don't use pathauto.

#5

Hara Kim - January 5, 2008 - 02:06
Category:feature request» support request

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

msameer - January 5, 2008 - 03:24

It should work without problems.

Is this the case only with the pathauto generated aliases ?

#7

Hara Kim - January 5, 2008 - 04:37

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

msameer - January 5, 2008 - 13:23

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

Hara Kim - January 5, 2008 - 16:41

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

msameer - January 5, 2008 - 19:47

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

Hara Kim - January 5, 2008 - 19:57

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

msameer - January 6, 2008 - 02:02

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

Hara Kim - January 7, 2008 - 04:37

ok I will test it in the next few days and let you know

#14

Hara Kim - January 7, 2008 - 11:11

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

msameer - January 7, 2008 - 14:34

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

Hara Kim - January 7, 2008 - 16:33

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

msameer - January 7, 2008 - 19:35

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

Hara Kim - January 7, 2008 - 21:01

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

msameer - January 7, 2008 - 22:11

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

Hara Kim - January 8, 2008 - 06:41

no this error occurred after I uploaded the new article module

#21

msameer - January 8, 2008 - 21:53
Status:active» closed

If you don't answer my questions then I won't be able to provide help.

#22

Hara Kim - January 9, 2008 - 13:16

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

msameer - January 10, 2008 - 10:45
Status:closed» active

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

Hara Kim - January 11, 2008 - 08:22

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

msameer - January 26, 2008 - 20:51

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

Hara Kim - January 26, 2008 - 23:44

"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

msameer - February 3, 2008 - 21:43

I can't really reproduce this. I have the option there in the pathauto admin page.

 
 

Drupal is a registered trademark of Dries Buytaert.