Multilanguage | 'invalid desktop json!'
-
Hi there!
Using the awesome multilanguage for a website is causing some problems which I cannot seem to fix.
When creating a simple project with one image and/or text, the website is unable to fetch some json. This happens in either the translated page (i.e from GE to GB) or on the 'original' page (i.e from GB to GE).
On page load, the console logs:
invalid desktop json!
Loading the homepage while on the translated site logs the following:
GET http://localhost/~user/test/en/wp-json/wp/v2/posts/71 401 (Unauthorized)
Full json response:
// http://localhost/~user/test/en/wp-json/wp/v2/posts/41 { "code": "rest_forbidden", "message": "Sorry, you are not allowed to do that.", "data": { "status": 401 } }
The not translated homepage logs the same.
Any idea what's causing this? Thanks.
Best,
K
UPDATE #1:
I found out that the caption below the image is causing the problems. I guess it has something to do with that piece of text (caption) not having a option to translate. For now, deleting the caption seems to help.
UPDATE #2:
Got it, you have to click on the flag that you are editing with the gridder. Add the image and add the caption. After that, click on the other flag and start editing the image caption by double clicking. Edit the caption line (even when you want to have the same text, like names of people, places etc). Click ok. Finally, update/publish the page and voila, it works!
-
Perfect :-) :-) :-)
Need custom programming for your Lay Theme site?
I regularly add new features to Lay Theme for free, based on user feedback. But if you or your client need something more specific, I’m happy to offer custom paid programming tailored to your project.
Email info@laytheme.com with the subject "Custom paid programming for Lay Theme" and a short description of what you need — I’ll reply with a cost estimate.
Custom features I build often make it into future Lay Theme updates, so your idea might benefit the whole community.
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it