GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.2k stars 415 forks source link

[Bug]: unable to select page in the pages list #1634

Open atomGit opened 1 month ago

atomGit commented 1 month ago

Operating system

linux

Publii version

0.46.1 (build 16918)

Post editor

None

Bug description

unable to select page in "All" pages list

Steps to reproduce

  1. create a page and save it
  2. go back to the pages listing
  3. observe that the page cannot be selected (checkbox) in the "All" list, but can be selected in the "Published" list

Relevant log output

No response

collideous commented 1 month ago

I can report the same for 0.46.1 (build 16918) on OSX Sonoma. The Edit Hierarchy button isn't working either.

bobmitro commented 1 month ago

I can report the same for 0.46.1 (build 16918) on OSX Sonoma. The Edit Hierarchy button isn't working either.

Did you create the pages using version 0.46.0 and then upgrade to 0.46.1? If so, it might not work. Try to recreate the pages using version 0.46.1.

dziudek commented 1 month ago

Alternatively - you can check if under input/config/pages.config.json file all page IDs are present like:

[
    {
        "id": 45,
        "subpages": []
    },
    {
        "id": 44,
        "subpages": []
    },
    {
        "id": 43,
        "subpages": []
    }
]

If not - you can try to recreate them manually. We have added a mechanism to do it automatically, but there can be some edge-cases

If the issue still occurs - please let us know, and also please enable Dev Tools to check what kind of error appears in the JS console

collideous commented 1 month ago

@bobmitro Yes, I used 0.46.0. @dziudek I'll check that tonight.

collideous commented 1 month ago

@dziudek I fixed the pages.config.json. That solved the issue. Thank you.

dziudek commented 1 month ago

@collideous - it is good news, but for me bad news is fact that my fix in 0.46.1 did not fixed the issue automatically, so it required manual update :(