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

Reordering Static pages does not save config #870

Open
Sheriffof0 opened this issue Jan 31, 2025 · 6 comments
Open

Reordering Static pages does not save config #870

Sheriffof0 opened this issue Jan 31, 2025 · 6 comments
Labels

Comments

@Sheriffof0
Copy link

Describe the bug
I have a Static page with approximately 150 subpages - each basically a date in a year e.g. 'Friday, 19th April 1942'
Obviously I wish to order them by date ascending.
When I attempt to do so by dragging sub pages into the correct order and using [save config] I see an alert telling me 'Page order saved successfully!' and I dismiss the alert.
I then discover that the page order is not saved at all.
I have logged out and back in, cleared cache and tried numerous times to no avail.

To Reproduce
Using a large list of sub pages ≥ 150,
Reorder one or more by manual drag and drop
Save reo-order

Expected behavior
Re-ordered list is saved

Screenshots/Errors
If applicable, add screenshots and/or error messages to help explain your problem. You may need to check your webserver's error logs.

HTMLy Version
HTMLy v3.0.3

Server Info (please complete the following information):

Operating System | linux
Apache Version | 2.4.62
Kernel Version | 5.14.0-503.14.1.el9_5.x86_64
PHP Version | 7.4

Link to installation (optional, but usually helpful)
https://sheriffof0.com/fred&doreen/

Additional context
Add any other context about the problem here.

@Sheriffof0 Sheriffof0 added the bug label Jan 31, 2025
@danpros
Copy link
Owner

danpros commented Jan 31, 2025

Hello,

Check the site and seems the subpage already in order (see the menu).

   Friday, 3rd January
   Monday, 6th January
   Thursday, 9th January
   Thursday, 23rd January
   Friday, 13th March
   Sunday, 26th April
   Thursday, 30th April
   Sunday, 3rd May
   Tuesday, 5th May

You can use the doks theme to check it properly.

@Sheriffof0
Copy link
Author

Sorry, I should have been clearer.
The problem is with the sub-pages of 1946 which has the largest number of dates.
Not sure if that is the particular problem.
All the other pages allowed for re-ordering....

@Sheriffof0
Copy link
Author

Sheriffof0 commented Jan 31, 2025

By the way, I should say how impressed I am by this extremely useful and compact CMS.
It seems perfect for a number of projects I have in mind.
This is the first of them.

@danpros
Copy link
Owner

danpros commented Feb 1, 2025

Sorry, I should have been clearer.

No problems.

The problem is with the sub-pages of 1946 which has the largest number of dates.

Let me try to create similar sub-pages structure to test it

danpros added a commit that referenced this issue Feb 1, 2025
@danpros
Copy link
Owner

danpros commented Feb 1, 2025

Bug confirmed. Thanks.

To fix this while waiting for a newer version, you can replace /system/includes/functions.php with the latest version in this repo (https://github.com/danpros/htmly/blob/master/system/includes/functions.php)

@Sheriffof0
Copy link
Author

Sheriffof0 commented Feb 1, 2025

Many thanks for the quick turnaround!
A really nice product which I will use, favourably review & recommend.
Happy to assist in improving it if only in a small way.

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

No branches or pull requests

2 participants