bjohnson045 / phpMyDirectory

https://www.phpmydirectory.com
GNU General Public License v3.0
34 stars 21 forks source link

Upon saving forms on cp/admin_settings.php and cp/admin_plugin_page.php all checkboxes are checked #25

Open azirer opened 3 years ago

azirer commented 3 years ago

Hi, has anybody experienced something like this in your installations? When I'm on either these pages

-cp/admin_settings.php or -cp/admin_plugin_page.php -including pages like cp/admin_settings.php?group=SomeGroupHere

If I modify a setting and click the submit button when the page reloads it shows all checkboxes of the form as checked including the maintenance mode which results in a non accessible frontend. I don't see any warnings or errors at the php error log neither at the console log of the browser. When I try to save forms on other pages like listings etc they save properly including all checkboxes.

To fix this I have to restore the mysql db. The thing is that I can't reproduce it always following some exact procedure. I think I have to play around the maintenance page and maybe visit once the cp/admin_maintenance.php?action=integrity_check page and afterwards go the settings page and save it.

I'm wondering if it is a leftover of a license check.

azirer commented 3 years ago

Upon some further testing it seems that the problem is in the unencrypted version of includes/class_form.php. When I replace that file with the encrypted version the issue is gone. I'm trying now to narrow it further down to the checkbox section inside class_form.php.

azirer commented 3 years ago

Any idea @bjohnson045 ?

KadronG commented 2 years ago

Has anyone figure this out? I am experiencing this issue and the solution above is not working