Something wrong about canonical URL

  • Posts: 251
  • Thank you received: 2
10 years 2 months ago #208231

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- Error-message(debug-mod must be tuned on) -- : Error page 404 not found

Hi,
I'm going crazy.

I created the first two products of my new ecommerce and all works fine.
But the further products don't work no more. I always got a 404 page.

I tryed to change the setting of SEF URL. I Tryed to change the setting Joomla SEF.
I tryed to delete all the canonical url via mass action, but nothing to do, doesn't work.

The only two products that still work fine are "coffe table" and "panton chair", the first two that I created.

Need help, please!
Thank you so much.

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 2 months ago #208260

Maybe I understood that if I use Force Canonical on Listing and setting "Use Canonical URL and generate if missing" , when I add a new product and save it, then I have to quickly navigate on front end through the menu path that I would assign as canonical for that product.

It is correct?

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 2 months ago #208275

Hi,

Yes. If you don't, the first link generated will be the one used.
Usually, it's best to proceed differently.
Instead of doing what you describe, set the "Force Canonical on Listing" setting to "Use Canonical URL if available".
For all the products already with their correct canonical URL, it won't change anything.
For the new products that you then create, the system will generate the URL on each listing page. So you'll have all the time you want to browse your website frontend and copy/paste the URL that you want as canonical URL in your products.

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 2 months ago #208325

Hi Nicolas,
unfortunately, and I don't know why, doing what you describe return me an error 404 page.

The only way, for me, is using the procedure described in my second post.

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 2 months ago #208392

What I would obtain is a URL like this www.mywebsite.com/product-name.html

Now I set set the "Force Canonical on Listing" setting to "Use Canonical URL if available", but it still behaves like "Use Canonical URL and generate if missing".

If I set the fill the canonical url with "/product-name.html" I get an error 404 page.

Last edit: 10 years 2 months ago by Nello.

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 2 months ago #208397

Hi,

It's normal that you get that error because that's not what the canonical URL system is for.
You're supposed to put in the "canonical URL" field of the product a valid URL of the product page.
That's why I said that you have to copy/paste it from a listing of products on your frontend.
If you just put whatever you want in it, you'll get a 404 page as the URL won't be accepted by the Joomla SEF system.
If you want to be able to use whatever you want for the URL of the product page, what you need instead is to use a third party SEF system with the capability of having URL aliases like sh404SEF.

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 2 months ago #208526

I try to list products using an hidden menu, I call it shop.
Then I set the canonical URL like this "shop/product.html". With some of the existing products it works. For all the new it won't works.
I still get 404 page.
It is frustrating!

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 1 month ago #208637

I still have the problem.

I set set the "Force Canonical on Listing" setting to "Use Canonical URL if available".
All new products in all category and all listing page returns error 404 page

www.hidesign.it/tmp/new/it/poltra.html
www.hidesign.it/tmp/new/it/poltrone/poltra.html
www.hidesign.it/tmp/new/it/sedie/poltra.html

Please Help me to understand.
Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 1 month ago #208705

I need to check your backend settings in order to tell you exactly what is wrong.
Please provide such access via our contact form with a link to this thread.

The following user(s) said Thank You: Nello

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 1 month ago #208710

Access details sent!

Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 1 month ago #208722

Hi,

I got the access. I tried to enter a canonical URL to a product but the URL isn't change to the canonical URL on the products listing. So that would mean that the "Force Canonical on Listing" setting is turned off.
Unfortunately, the access you provided doesn't allow me to access your HikaShop configuration so I couldn't see or change your SEF settings.
Would it be possible to get access to that ?

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 1 month ago #208748

I'm sorry. Please try access again.

Anyway, I tried all three settings of "Force Canonical on Listing", and returns always error 404.
I tried also to reinstall hikashop, but nothing changes.

Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #209230

Hi,

The menu used for this category listing is the menu with the id "103" so I guess that this menu was a category listing menu, but it is no more the case, in your Joomla menu listing (in backend) I can see that this menu is now a "Menu heading" menu.

So as it was a category listing menu, the settings are still present in HikaShop, but now the links for the subcategories can't be correct with automatic generation, you have to use a menu with the category listing type.

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 1 month ago #209748

I'm sorry but i really don't understand.
I tried to set the menu as category listing or product listing, but the result it's always the same. ERROR 404

Please Log in or Create an account to join the conversation.

  • Posts: 329
  • Thank you received: 94
10 years 1 month ago #209752

Your canonical URL path doesn't happen to begin with a number, does it? There's a little known quirk that causes the URL to fail and result in a 404 page if your canonical URL in the product configuration begins with a number. ;)


~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 1 month ago #209766

I found the bug. At least it seems to be.
The system return 404 if the alias of product is composed by only one word Ex. "nameofproduct".
While If the product alias is "name-of-product" all works fine.

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
10 years 1 month ago #209768

I think you have to pay me for the debug ahahah :P

Please Log in or Create an account to join the conversation.

Time to create page: 0.109 seconds
Powered by Kunena Forum