Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisite: Can't create other locale pages sometimes. #2265

Closed
Pixney-William opened this issue Aug 21, 2020 · 10 comments
Closed

Multisite: Can't create other locale pages sometimes. #2265

Pixney-William opened this issue Aug 21, 2020 · 10 comments

Comments

@Pixney-William
Copy link
Contributor

Bug Description

Multisite, when i from a russian page, click on the english site to create an english version. Then change the title to something in english and click save. I get the error belowl

When this happens you are kind of stuck trying to fix it. The page id showing in the error, is the "index page id" of the russian site. So seems to be some weird connection i can not for my life figure out what it is.

Extra Detail

image

image

Environment

Statamic version: 3.0.0

PHP version: 7.3

Install method (choose one):

  • Fresh install from statamic/statamic
@Pixney-William
Copy link
Contributor Author

Seems to be similar to : #2172 and #2176

@Pixney-William
Copy link
Contributor Author

Seems like if i set root to false .. i can start editing it.. and then turn it back to true the problem is gone.. But it appears again sometimes.. but be connected somehow.

@Pixney-William
Copy link
Contributor Author

i basically have this:

structure:
  root: true
  max_depth: 2
  tree:
    default:
      -
        entry: 748d1f91-9a64-4ebd-9d22-ea647c3a67b1
      -
        entry: 4a35d49d-ec8b-4eb3-ac14-b91c3c85da40
      -
        entry: 10def8ee-85c2-43ab-9203-14e559824196
      -
        entry: dc98ab42-d317-4079-aa81-d1451549bb1c
      -
        entry: 0def804d-36cb-4407-844a-351c87099044
      -
        entry: 53de7657-13fa-4320-87a0-a419668fd315
      -
        entry: dc803b9a-a857-49f2-9752-987d2553aaeb
      -
        entry: 211c23b0-7f40-4be2-bad8-a0614e8a19fd
      -
        entry: 38225fca-2da8-42dc-aec4-9932053fd162
    en:
      -
        entry: 25c21fc5-3c74-43b8-8f1a-180fb061d9be
      -
        entry: 5e5b49e3-c603-4578-a505-8480893d70ee
      -
        entry: df198dde-d5b3-467d-bc61-84160b3056bf
      -
        entry: 76a8da2e-7cfb-442b-99d1-6e958af3af98
      -
        entry: dd61bc79-1cef-400a-80be-4dfbb0e699ff
      -
        entry: 0512583f-baa1-44c5-a94f-e4ea9b4f6a22
      -
        entry: 364f0df3-ea48-483c-b232-ff16db4efd0b

and it complains 748d1f91-9a64-4ebd-9d22-ea647c3a67b1 not being in the structure of the en locale
which it obv isnt. But why does it even look for it

@Pixney-William
Copy link
Contributor Author

so i guess the question is why does it want 748d1f91-9a64-4ebd-9d22-ea647c3a67b1 in its structure when it really should want 25c21fc5-3c74-43b8-8f1a-180fb061d9be in its structure... and it is.

@Pixney-William
Copy link
Contributor Author

If i do set root to false, i am able to save the page. I am also able to change data in for example my "content blocks" replicator.

However, the title is not saved?

ezgif com-video-to-gif

@Pixney-William
Copy link
Contributor Author

image

@Pixney-William
Copy link
Contributor Author

So basically this is all about not using the root set for the locale. Instead, it always refers to the default locale root id.

@Pixney-William
Copy link
Contributor Author

In regular collections, where you don't require a ROOT to be set, an entry is saved without errors thrown. However, the title field is never updated. It just reverts to what is being used by the default locale.

@Pixney-William
Copy link
Contributor Author

For your info, it is also related to : #2211

@jasonvarga
Copy link
Member

I believe this is solved now in 2059206, coming in 3.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants