Articles not available with SEF activated

Phoca Documentation - creating documentation in Joomla! CMS
loquelaman
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 09 Mar 2009, 14:20

Articles not available with SEF activated

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Articles not available with SEF activated

Post by Jan »

Hi, which SEF method do you use? Which Itemid got the Phoca Documentation menu link?
If you find Phoca extensions useful, please support the project
loquelaman
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 09 Mar 2009, 14:20

Re: Articles not available with SEF activated

Post 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!
loquelaman
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 09 Mar 2009, 14:20

Re: Articles not available with SEF activated

Post 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!
loquelaman
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 09 Mar 2009, 14:20

Re: Articles not available with SEF activated

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Articles not available with SEF activated

Post by Jan »

:idea: if the article was not found, then you should check your SEF settings :idea: maybe some wrong creating?
If you find Phoca extensions useful, please support the project
loquelaman
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 09 Mar 2009, 14:20

Re: Articles not available with SEF activated

Post 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.
codejunkie
Phoca Professional
Phoca Professional
Posts: 167
Joined: 11 Apr 2009, 01:30
Contact:

Re: Articles not available with SEF activated

Post 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?
Download Phoca Download Menu Module for listing Sections or Categories.
loquelaman
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 09 Mar 2009, 14:20

Re: Articles not available with SEF activated

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