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

Cannot delete or edit menu #291

Open
roast247 opened this issue Mar 20, 2025 · 8 comments
Open

Cannot delete or edit menu #291

roast247 opened this issue Mar 20, 2025 · 8 comments

Comments

@roast247
Copy link

Whenever I try deleting a menu item or let alone edit one, it defaults as if nothing happened or saved. It's a bit irritating.

Image
Image
Image

@givanz
Copy link
Owner

givanz commented Mar 20, 2025

Thanks for the bug report, I fixed delete bug in latest.zip you can update the files on your server.

For edit I couldn't find any bug either for menu or menu items, if the bug persists after update please provide more details for edit bug.

Database used mysql/sqlite/posgresql, php version, if installed in a subfolder etc.

@roast247
Copy link
Author

I am using MySQL and the issue kind of persists with adding and deleting other elements. For example, I am deleting the footer section and I press save, and it shows up even after I clear cache. Same with the main menu, If I delete or add nothing changes. Happens especially with drop downs.

@givanz
Copy link
Owner

givanz commented Mar 20, 2025

Saving is successful? Maybe there is a caching layer on your hosting, check your hosting cpanel for a clear cache button.

You can also test on localhost or another server to make sure that is a hosting issue.

Menu operations are made directly on the database there is no caching layer, if you are using sqlite maybe the file is cached by the hosting file system.

For footer section you can also try to set write permissions to the active theme folder.

chmod -R 0777 themes/landing

@roast247
Copy link
Author

I checked the caching on my server and nothing. It is still not getting rid of the menu items or editing them.

@givanz
Copy link
Owner

givanz commented Mar 20, 2025

Does it show any error? can you check your php error log and paste the errors here?

I tried on localhost, docker image and a shared hosting account and I'm unable to find issues with menu items editing/removal or sections/footer removal from pages.

Please try on another hosting/server.

@roast247
Copy link
Author

It isn't throwing me any errors and I've checked my error logs, nothing there in regards to this issue. I'm hosting this on a private vps

@roast247
Copy link
Author

So I delete a menu item, I save, I reload and the same menu Item that I just deleted shows up again, even after clearing cache and saving and doing it over and over.
Image
Image
Image

@givanz
Copy link
Owner

givanz commented Mar 20, 2025

Thanks for the images, I understand now.

Delete for dynamic elements (from database) is not implemented in the editor because it's not clear what it should do, hide the element from page or delete it from the database.

This can be problematic for products and posts if delete removes the item from database.

I will think for a proper solution to this, probably I will hide the delete button for dynamic content to avoid confusion.

You can delete menu items from admin > pages > menus

http://demo.vvveb.com/admin/index.php?module=content/menus&action=menu&menu_id=1

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

No branches or pull requests

2 participants