How to reproduce

1. Create a new site with two languages enabled, in my case: Catalan (ca) and English (en).
2. Add an hierarchical_select in the 'page' content type.
3. Create a new node (node/add/page). This should works.
4. Set Catalan (ca) the default language and disable English (en) in /admin/settings/language/overview
5. Create a new node (node/add/page) and use the hierarchical_select combo. This should fail with a "Received an invalid response from the server" error message.

This is failing because the AJAX system is trying recover the data from _YOUR_SITE_/ca/hierarchical_select_json, and this is returning a 404 page not found error.

If you only have one language enabled the correct URL is _YOUR_SITE_/hierarchical_select_json, not _YOUR_SITE_/_LANGUAGE_CODE_/hierarchical_select_json, this second call it's only correct with a multilingual site.

6. If you return to /admin/settings/language/overview and then enable the English (en) language, hierarchical_select works again.

So, you need to enable English language, although not using, to ensure that the hierarchical_select_json calls are working.

CommentFileSizeAuthor
#2 hs-base_path.patch1.24 KBoriol_e9g

Comments

oriol_e9g’s picture

Title: Hierarchical Select don't work if you disable english language » Hierarchical Select doesn't work if you disable English language
oriol_e9g’s picture

Issue summary: View changes

Typos

oriol_e9g’s picture

Issue summary: View changes

Better path

oriol_e9g’s picture

Issue summary: View changes

better path

oriol_e9g’s picture

Status: Needs work » Needs review
StatusFileSize
new1.24 KB

We have fixed the problem with this patch

oriol_e9g’s picture

Issue summary: View changes

typos

gold’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Tidying up the issue queue. The 6.x version is no longer supported. Only reopen this if it also applies to the 7.x.