Developer forum

Forum » Ecommerce - Standard features » 404 Productdetail page not found

404 Productdetail page not found

Sander Veltman
Reply

Hi,

Problem

In our ecom section of Dynamic Web we have a shop in 2 languages with a group tree -> See 01 EcomGroupsSettings.png

Whitin this 2 languages the group has several products -> See 02 EcomGroupsNavigation.png

The frontend uses for each language a different template page -> 03 TemplateId.png

In our source code model the raw url is
Dutch: https://vakantiebeurs.jaarbeurs.dev/subcategorie.aspx?ID=6977&GroupID=GROUP14873
English: https://vakantiebeurs.jaarbeurs.dev/subcategory.aspx?ID=7013&GroupID=GROUP14873

Unfortunately the dynamic web templates renders a wrong url -> See 04 WebsiteWrong.png
Dutch: https://vakantiebeurs.jaarbeurs.dev/nl-nl/producten/subcategorie/facilitair/diensten/schoonmaakservice-12
English: https://vakantiebeurs.jaarbeurs.dev/en-us/products/subcategory/services/services/cleaning-services-9

Settings

When we change the url settings -> See 05 Settings.png

The template renders correct -> See 06 WebsiteCorrect.png

In the database al the data seems correct -> See 07 Database.png

Question

Why do we get an 404 error?

 

01_EcomGroupsSettings.png 02_EcomGroupsNavigation.png 03_TemplateId.png 04_WebsiteWrong.png 05_Settings.png 06_WebsiteCorrect.png 07_Database.png

Replies

 
Nicolai Pedersen
Reply

Hi Sander

It is because you set the "Ensure unique paths for each area" checkbox and uses the same domain for both areas. As the greyed out help text indicates, setting that checkbox requires different hosts to be defined for each website. Unchceck it, and it should work. Also make sure you have chosen the right ecommerce language in website settings.

The issue has just been discussed in more detail: http://doc.dynamicweb.com/forum/feature-requests/feature-requests/improving-ensure-unique-paths-for-each-area

BR Nicolai

 

 
Sander Veltman
Reply

Hi Nicolai,

Thank you for your reply.

I read the discussion in the thread you mentioned and this seems like the same problem indeed.

Unfortunately the problem is not solved when uncheck the "Ensure unique for each area" checkbox.

I inspected the ecommerce language in website settings -> See 01 Website language settings.png

I unchecked the Ensure unique for each area checkbox -> 02 Ecommerce settings.png

But we still get the 404 error.

In the thread you metioned that the URLs have to be unique to be resolved
In our case they are -> See 03 Language name in the URL.png

You mentioned also that 'The rest of the URL, which is the ecommerce information, http://dwtest.ditnyewebsite.dk/en/produktside/group/product are not affected by that checkbox anyways - so if you have 2 groups called the same name in the same level, no matter which checkboxes you set, Dynamicweb with the current implementation, would add -1 to one of them.'
But in our case the productnames and groupnames are unique by language -> See 04 EcomGroupsSettings.png
And there is no second groupname with the same name in the database for that shop so why is an index used -> See 05 Database.png

Do you have any idea?

 

 

 

 

01_Website_language_settings.png 02_Ecommerce_settings.png 03_Language_name_in_the_URL.png 04_EcomGroupsSettings.png 05_Database.png
 
Nicolai Pedersen
Reply

The checkbox you have disabled in your dump2 above, is not the right one... Try logging in with english backend, and locate the "Ensure unique for each area" checkbox.

 
Sander Veltman
Reply

Hi Nicolai,

You are right I unchecked the wrong checkbox.

Now I unchecked the "Ensure unique for each area" checkbox -> See 01 Ecommerce settings.png

Unfortunately the problem is not solved.

I still get the 404 error.

 

 
Nicolai Pedersen
Reply

Hi Sander

Can I get access to the site? Also from your screenshot I can see that you have checked the "404 for products not in website shop" and "404 for products not in website language". Try removing those.

 
Sander Veltman
Reply

Hi Nicolai,

I also unchecked the "404 for products not in website shop" and "404 for products not in website language" checkboxes.

Unfortunately the problem is still not solved.

I will setup a test environment, so it is possible the acces the site.

When this is ready I will inform you and post the url and user credentials.

 
Sander Veltman
Reply

Hi Nicolai,

This morning I installed the test site.

The url is: https://vakantiebeurs.jaarbeurs.test1.innovadis.com

I will sent you the credentials by email.

When you navigate to: Facilitair -> Schoonmaakservice 

The page is displayed correct (See 01 Navigation.png)

Then switch language (See 02 Switch language.png)

The 404 is shown.

Regards Sander

 

01_Navigation.png 02_Switch_language.png

 

You must be logged in to post in the forum