Page 1 of 1

Articles not available with SEF activated

Posted: 18 Nov 2009, 14:01
by loquelaman
For some reason my Phococumentation is not working when SEF and apache rewrite is enabled. The rest of the site works fine.

Links to sections work fine, links to categories are fine, but links to articles throw a 404.

Here is an article url with SEF and apache rewrite off:
../mysite/index.php?option=com_content&view=article&catid=176:what-is-myguide&id=682:what-is-myguide

and this works fine.

Here's what I get with SEF and apache rewrite on:
../mysite/component/content/article/176-what-is-myguide/682-what-is-myguide.html

And this does NOT work (404)

Any ideas why? The rest of the site works normally with SEF and apache rewrite on. Only Phoca documentation is struggling!! :cry:

Many thanks in advance for any help.

Re: Articles not available with SEF activated

Posted: 18 Nov 2009, 15:57
by Jan
Hi, which SEF method do you use? Which Itemid got the Phoca Documentation menu link?

Re: Articles not available with SEF activated

Posted: 18 Nov 2009, 16:24
by loquelaman
Thanks!

In the Joomla SEO settings I have Search Engine Friendly URLS: Yes and Use Apache mod_rewrite:yes, Add suffix to URLs:Yes

I'm not sure what you mean by this: "Which Itemid got the Phoca Documentation menu link?"

But the menu id of the menu item that links to the Phoca documentation component is 892.

Section id = 72
Category id = 176
Article id = 682

Thanks for your time!

Re: Articles not available with SEF activated

Posted: 18 Nov 2009, 17:19
by loquelaman
A discovery:

The 404 page displays the error:

Blah, blah, blah...

Article #176 not found

Notice it is trying to load the ARTICLE id 176. But this is the SECTION id!

Re: Articles not available with SEF activated

Posted: 18 Nov 2009, 17:38
by loquelaman
Another possible hint:

../mysite/component/content/article/176-what-is-myguide/682-what-is-myguide.html

If I remove the above bold string from the URL in the browser, the page loads correcty.

Please help :x

Cheers

Re: Articles not available with SEF activated

Posted: 18 Nov 2009, 18:40
by Jan
:idea: if the article was not found, then you should check your SEF settings :idea: maybe some wrong creating?

Re: Articles not available with SEF activated

Posted: 19 Nov 2009, 10:25
by loquelaman
SEF is working perfectly fine throughout the site.

/mysite/component/content/article/176-what-is-myguide/682-what-is-myguide.html

This is the url. 176 is the Category, 682 is the Article.

The error thrown is Article #176 not found

There is no article 176, 176 is the category, not the article.

This happens consistently troughout all the Phoca documentation Sections, Categories and Articles. But the rest of the site works fine.

Re: Articles not available with SEF activated

Posted: 19 Nov 2009, 14:32
by codejunkie
Let's try a few things.

What is the Alias assigned to the Section, the Category, and the Article? Have any of these been renamed after the initial save?

Can you create a menu item for an Article Section Blog Layout and an Article Category Blog Layout? Check those links to that article you are having troubles with.

Have you cleaned your cache?

Re: Articles not available with SEF activated

Posted: 19 Nov 2009, 16:10
by loquelaman
Thanks a lot,

The aliases are as they appear in the URL. The articles appear no problem in Section blog layout and Category blog layout.
This issue is the same for all articles displayed using Phoca documentation. So I think we are missing the point a bit here.

The problem seems to be with the format of thr url or at least the interpretation of the URL.

../mysite/component/content/article/176-what-is-myguide/682-what-is-myguide.html

For some reason, Joomla is trying to display an article with id equal to the id in the URL relating to the Category (176) instead of the article id (682)

So if I replace the "category number" above (176) with a legitimate article id, the article with that id will be displayed.

Alternatively, if i remove the category part of the URL:

176-what-is-myguide

leaving me with:

../mysite/component/content/article/682-what-is-myguide.html

The correct Phoca documentation page will be displayed.