• Home
  • Get help
  • Ask a question
Last post 16 hours 58 min ago
Posts last week 81
Average response time last week 4 hours 29 min
All time posts 67914
All time tickets 10497
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#2692 – move articles to a other category

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 09 September 2016 19:58 UTC
piet
 Hello,

we need to move articles to a other category.
So before that, and we want not make error.

What is the way to do that ?

Change the article to the new category, and go to sh404sef and make a alias from the old URL to the new one ?

Is it ok...?

Regard
Monday, 12 September 2016 07:38 UTC
wb_weeblr
Hi

Actually, I would suggest the following instead:

After moving the article to a new category, find that Article URL record in sh404SEF manager, take a note of the SEF URL, and then delete the record - with all duplicates.

Then go to the new record and add the old SEF URL as an alias.

This will prevent some old URLs staying in the database.

Rgds
 
Monday, 12 September 2016 19:32 UTC
piet
Yes, thank you very much.

Just when I do that, the modified article goes to the home page...

[xxxx]


What is wrong ?

Regard.
Tuesday, 13 September 2016 08:29 UTC
wb_weeblr
Hi

Just when I do that, the modified article goes to the home page...
It does not go to the home page. It displays using the home page template because... the Iitemid in the non-sef URL is not the right one. Same as previous ticket.

Rgds
 
Tuesday, 13 September 2016 12:58 UTC
piet
ok, but why ?

And now why all new link are false ?

I don't understand waht to do to fix that, definitively.

Regard.
Tuesday, 13 September 2016 13:06 UTC
wb_weeblr
Hi

There is no false link, at least none created by sh404SEF. As explained last time:

NON-SEF URLs are created by Joomla and extensions on your site.

SO:

1 - search for les-fonds-d-ecran/le-fond-d-ecran-d-aout in the URL manager
2 - Look at the corresponding non-sef URL. What is its Itemid? is it the correct one, for this menu item you are using?
Probably not. Then select the right one in the list of duplicates. If there is not duplicate, delete that URL, then maybe next time your site will not use the wrong Itemid.

Rgds
 
Tuesday, 13 September 2016 14:25 UTC
piet
ok thank.

so here, the link for this article
index.php?option=com_content&Itemid=435&catid=105&id=522&lang=fr&view=article

id=522 > ide for the article, it is ok
catid=105 > category id for this article, it is ok
itemid...? it is the menu link, and here it is the home page... so not ok, must be 529


second link (in duplicatas)
index.php?option=com_content&Itemid=529&catid=96&id=522&lang=fr&view=article
itemid is ok
id is correct
but here the catid is not correct, must be 105

so here the only way is to delete the sef url (with duplicate), and nothing happenzs, still the same
index.php?option=com_content&Itemid=435&catid=105&id=522&lang=fr&view=article

Really sorry about that. Maybe there is a thing I do wrong... ?

Regard.
Tuesday, 13 September 2016 14:28 UTC
wb_weeblr
Hi

but here the catid is not correct, must be 105
Which is why I told you above to "...delete the record - with all duplicates. "

If you indeed delete all those links in the URL manager, then it means you still have on your site non-sef links with the wrong category. Now if you added links to that article with the category mentioned in the non-sef URL, you will have to fix them as well (and after fixing them, delete all those bad URLs from the URL manager).

Rgds
 
Tuesday, 13 September 2016 20:01 UTC
piet
OK, I already delete those links in he URL manager.
So you said that I have non-sef links to the wrong category... How canI found them to fix them



And now, in this URL, I have 3 URL non-sef, and the third is the right one. but before, it was not present

index.php?option=com_content&Itemid=529&catid=105&id=522&lang=fr&view=article
index.php?option=com_content&Itemid=435&catid=105&id=522&lang=fr&view=article
index.php?option=com_content&Itemid=529&catid=96&id=522&lang=fr&view=article

Maybe a procedure'll be great
1
2
3
4
etc

And here, I don't have the right one URL.
blog/graphisme/un-projet-bd

index.php?option=com_content&Itemid=529&catid=97&id=529&lang=fr&view=article
index.php?option=com_content&id=529&lang=fr&view=article

So I deleted these 2 urls (with duplicate), but it was not recreated...
So what can I do here ?

Thank you for your help.
Tuesday, 13 September 2016 20:05 UTC
piet
Ah ok now it is ok, We must wait 15 minutes and we can see the new sef url, which is now ok.

But a procedure'll be great.

Regard.
Wednesday, 14 September 2016 09:13 UTC
wb_weeblr
Hi

There is no procedure I can think of. What's happening is not happening in sh404SEF, and there is nothing I can outline to do to prevent it.

Fixing things is a matter of selecting the correct non-sef URL, but preventing it requires that we know where those URLs with wrong Itemid are created, and that's not something I can do.

Here is how Joomla and sh404SEF work:

- when there is a link somewhere on a page, a non-sef link, created either by Joomla, by an extension or by you in an article, Joomla finds it and passes it to sh404SEF to be recorded and transformed into a SEF URL.

For instance, if you have a link:

index.php?option=com_content&Itemid=529&catid=105&id=522&lang=fr&view=article

on the home page, Joomla passes it to sh404SEF. sh404SEF searches in the database to know if we have seen this URL before.
If found, it returns the current associated SEF URL. If not already seen, it builds the SEF (for instance /example-page) and stores both URLs in the database.

Now if later on, another non-sef is found by Joomla:

index.php?option=com_content&Itemid=529&catid=96&id=522&lang=fr&view=article

sh404SEF does not find it in the database. So it builds the SEF, and the SEF is also /example-page. It means this is a duplicate, and it's also stored in the databases, but marked as #2 duplicate.

So in this case you can see the non-sef URL, with catid=105, was left over in the database from the time the articles where in that category.

Another consequence is that whatever non-sef URL is the first one takes the main spot. All others are considered duplicates.

And here, I don't have the right one URL.

blog/graphisme/un-projet-bd



index.php?option=com_content&Itemid=529&catid=97&id=529&lang=fr&view=article

index.php?option=com_content&id=529&lang=fr&view=article
You mean you don't have a link with the right category, the new one? was this an article that was changed category?

If so, it means until now Joomla never saw the correct link on any page that was displayed to a user. So just displaying a page with a link to that blog is enough for a URL to be created.
Again, I am not saying that you should try to display /blog/graphisme/un-projet-bd. You should (or a user should request) a page with a link to /blog/graphisme/un-projet-bd

Rgds

 
Tuesday, 20 September 2016 20:15 UTC
piet
Ok.

Thank you very very much for these explanation. I can change now wrong URLs.

But how many times this error'll be appears ?

Here again the wrong URL was selected


blog/ecolo/101-gestes-ecolos-53-couvrir-les-casseroles



index.php?option=com_content&id=530&lang=fr&view=article

index.php?option=com_content&Itemid=529&catid=98&id=530&lang=fr&view=article


So I changed it to the righ one (second one here).

For me now, I think it is simple to change URL,... but impossible to explain that to a customer, ins't it ?

Regard.
Wednesday, 21 September 2016 08:05 UTC
wb_weeblr
Hi

But how many times this error'll be appears ?
There is no error from sh404SEF side. The errors, if any, are caused by creating incorrect non-sef URL being created.

For me now, I think it is simple to change URL,... but impossible to explain that to a customer, ins't it ?
Certainly hard to do. The fix is in only creating correct non-sef URLs, which might be tricky, because it depends on the extensions and modules you use, and even Joomla is not doing it correctly all the time.
In last version, we introduced a new feature under the "By component" tab of sh404SEF, that may help. Two columns were added:


On the first, one you can select to force an Itemid. On the next column, you can select which menu item to use.

I would suggest you set com_content to "Override if missing", and select your blog menu item in the next dropdown. That should fix at least some, if not all of the issues you mention here.
Be sure to test when changing that setting, in case of side effects on other pages.

Rgds
 
Thursday, 06 October 2016 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.