Developer forum

Forum » Swift » website setting breaks languagePicker with No layout selected error

website setting breaks languagePicker with No layout selected error

Christoffer Rosendahl Frede
Reply

Hi there.

when setting the website setting "The selected domains can only reach this website" checkbox to true,

the languagepicker in preferences modal throws an error "No layout selected for website" and it is not possible to change language.

it seems like it is a bug in swift versions 1.6.1 and 1.8.0, where i can produce the error.

allthough i see that there is mentions of similar issues in dynamicweb as a whole, so maybe it is not swift issue ?

see similar issues mentioned here in this forum link: https://doc.dynamicweb.com/forum/cms-standard-features/cms-standard-features/no-layout-selected-for-website

/best regards Christoffer


Replies

 
Scott Forsyth Dynamicweb Employee
Scott Forsyth
Reply

Hi Christoffer,

I ran into this same issue yesterday. It occurred on 9.8. We upgraded to 9.13 and that solved it. The fix mentioned in your link above was fixed August last year in 9.12 (afaik), so anything after that should have the fix.

Scott

 
Christoffer Rosendahl Frede
Reply

this still seems to be an issue on 9.17.2.

is the fix lost somewhere in version higher than 9.13 ?

/best regards Christoffer

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Code is still there.

Can you show your setup of preferences and how it looks like when you change language in your frontend - there are several ways to set this up so need som more info to reproduce.

Thanks, Nicolai

 
Christoffer Rosendahl Frede
Reply

Hi Nicolai.

Nice to know the code is there :-)

i have reproduced the problem on our swift demo site. When i set the checkbox "The selected domains can only reach this website" is set to true,

it breaks the PreferenceModal when trying to change language with this error message:

<div class="modal-dialog modal-dialog-centered modal-sm" id="PreferencesModalContent">No layout selected for website</div>

and it is not possible to change language. in the dropdown on desktop however it works as expected.

swiftWebsiteSelectedDomains.png
 
Christoffer Rosendahl Frede
Reply

and here is a screendump of the pref settings:

/Christoffer

swiftdemoPrefSettings.png
 
Anett Nissen
Reply

This seems to also be a problem when using the new Publications and opening pages from another website via Download Publication Item which is a form that POSTs URL with default.aspx?ID=xxx
Removing this setting allows the page to be opened

 

You must be logged in to post in the forum