Comments (25)
We've identified the issue and I'm working on a fix right now
from wn-pages-plugin.
@ivang76 the backend system/updates is non functional for now. Once the marketplace is released, it will be possible to use either that or composer to manage plugins/themes.
from wn-pages-plugin.
You must use Winter.Pages version 2.0.2.
from wn-pages-plugin.
Well... I do... But I upgraded from the Rainlab versions of the plugins. Could that be the problem?
from wn-pages-plugin.
Did you run the migrations?
php artisan migrate
from wn-pages-plugin.
Yes. I've even reinstalled the both plugins several times. No luck. Regular textfields is translatable. Lite when you add buttons to the menu, but not the big "content"-field or the "title"-field. And if i add /en or /sv in the url to get the different translation, all I get is "Page not found". Maybe it's more a Winter.Translate issue than a Winter.Pages issue...
from wn-pages-plugin.
I confirm that this problem still exists. I found such a pattern: if you enter content and a title for different languages, the last entered data is driven into the storage of all languages. That is, if I first enter information for the first language, and then for the second - after saving on the site itself, I will only see what I entered for the second language.
from wn-pages-plugin.
I can't reproduce this.
Can you try this from a fresh install of winter cms and plugins? Also, don't include plugins other than translate and pages.
from wn-pages-plugin.
What have I done to repeat the problem:
- utf8mb4_unicode_ci database for Cyrillic support
- Installed Winter CMS using install.html
- Entered commands in the console:
composer require winter/wn-pages-plugin
php artisan winter:up
composer require winter/wn-translate-plugin
php artisan winter:up
- Settings -> Language Management (/backend/winter/translate/locales):
Added the language "Π ΡΡΡΠΊΠΈΠΉ" with the code "ru", the "default" checkbox is set. I changed the order of languages, now Russian is in the first place, English is in the second - Added to the standard page template:
{%component 'localePicker' %}
with the "Force URL schema" setting
{% component 'staticPage' %}
- Changed the backend interface language to Russian
- After these operations, I create a page. After entering Cyrillic texts and clicking on the "Save" button, for some reason, the CMS displays a red icon that the page has not been saved. I press it a second time and the unsaved data notification icon disappears
I try to open the page - it opens correctly in Russian.
Then I try to edit the page again, but in English. I'm saving it. The new content replaces what I entered in Cyrillic. Now, when opening the /en/my-page and /ru/my-page pages, the same content opens
from wn-pages-plugin.
Do you see any errors in the JavaScript console when you save the page (first or second time) ?
from wn-pages-plugin.
Do you see any errors in the JavaScript console when you save the page (first or second time) ?
Now I tried to change the pages again and they are saved as they should, in the sense that they are saved the first time. There are no errors in the browser console. I will add that PHP 8.1.9 and Apache 2.4 are used on the server
from wn-pages-plugin.
And if you create a new page?
from wn-pages-plugin.
And if you create a new page?
Yes, there are no error notifications on the frontend. I figured out the reason for the unsaved entry icon: this happens when I write text in the content field and immediately press Ctrl + S. If I write text and after a longer period of time click on "Save" - the icon does not appear. So the appearance of the icon is not related to the save bug.
from wn-pages-plugin.
Ok.
But you said the bug didn't show up the second time around. I wanted to know if this is true for any NEW page you create.
from wn-pages-plugin.
I apologize for my Google Translate, but this bug works in all cases: both when editing and when saving. In that text about re-saving, it was the icon that confused me. In fact, saving the document is always processed and it happens according to the same scenario with the presence of a bug: for the standard locale, only the last texts entered in the form fields are saved. For the minor locale, all fields are empty.
from wn-pages-plugin.
Here is the video: video link
from wn-pages-plugin.
Can you please try version 2.0.2 and confirm the bug does not trigger?
from wn-pages-plugin.
@LukeTowers from my testing, something got broken with version 2.1.0 (worked fine up to 2.0.3)
from wn-pages-plugin.
Can you please try version 2.0.2 and confirm the bug does not trigger?
There is no bug on version 2.0.2. Translations work
from wn-pages-plugin.
Hi @LukeTowers, have you an idea of a timeline for this fix maybe? I found it as well and at the moment I just forced the downgrade but the editors missed some contents and they have overwritten urls, so you can imagine ;-)
thank you!
from wn-pages-plugin.
any updates?
thank you
from wn-pages-plugin.
Still working on the fix, just finished the improvements to the four plugins (Translate, Sitemap, Pages, & Blog) that will allow for multilingual sitemaps so I'm moving back to fixing this issue now.
from wn-pages-plugin.
@ivang76 @hambern @brutalhost, if you can test this fix in your environment, that'd be nice!
from wn-pages-plugin.
Thanks for fixing this! π
from wn-pages-plugin.
@mjauvin sorry for the late and thanks a lot for the fix. I'm using the latest version on different sites and everything seems work correctly!
just one question... I don't remember if there was some artisan command or similar for this, but I see that the versions in the backend system/updates are different from the ones managed via composer. How can I keep them updated?
from wn-pages-plugin.
Related Issues (17)
- Snippet properties not updating HOT 1
- Two snippets of the same type share the same values HOT 1
- Cannot install plugin via composer HOT 3
- Template not recognized HOT 2
- Missing keywords field HOT 1
- isActive marker for / url HOT 3
- WYSIWYG Insert Link, Insert Image, and Insert Audio Menus Close Too Quickly HOT 25
- WYSIWYG can't translate internal links HOT 4
- How to show "Last Modified" date on frontend HOT 7
- Unable to insert link in richeditor HOT 4
- How too add support for Hindi language HOT 2
- wrong "Unsaved changes" notification after duplication HOT 5
- Translated content not duplicated HOT 3
- Feature request: Static links HOT 6
- Automatic generated slug not detected when saving new page HOT 3
- Froala Editor - Unlicensed copy of the Froala Editor. Use it legally by purchasing a license. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wn-pages-plugin.