For issues related to the current stable release please use it's own Help forum.
IMPORTANT:Please read this before using an git or nightly build version: wiki.webtrees.net/en/GIT

Before asking for help please read "How to request help" by clicking on that tab above here.

TOPIC: [SOLVED] webtrees 2.0: Radio-button Tree Prefs Not Saving

webtrees 2.0: Radio-button Tree Prefs Not Saving 6 months 2 weeks ago #1

  • dbq-andersons
  • dbq-andersons's Avatar
  • Offline
  • New
  • Posts: 39
Hi Everyone,

Still playing around with the 2.0.0 Alpha. As I mentioned in my last post, it's been a while since I've set up a tree site from scratch. Hopefully, Greg is a patient man :-)

When I change certain Family Tree Preferences (Theme menu toggle, Hit counter, Use silhouettes, Automatically expand sources (to name a few)), those changes are not being saved. I get "The preferences for the family tree “Scrubbed Tree” have been updated." at the top of the page that loads after I save, but the settings I changed are still where they were when I started.

The more I dig, it looks like items that are drop downs or blanks (such as URL, Default individual, Default theme, webtrees reply address) are saving just fine. Check-boxes (such as close relative event selection and facts for new individuals) are working, too. The radio-button options on that page seem to be the ones giving me issues.

This is on a freshly unzipped install with no data yet in the tree. I am seeing the same behavior after I run my gedcom import, but wanted to try a bare-bones install to see if the issue manifested...which it is whether I use Firefox or Chrome. I am not seeing this behavior in version 1.7.X.

Would appreciate any nudge in the direction of what I'm doing wrong... I'll keep digging as well.

Cheers,

Bill Anderson
Onalaska, WI
Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
Webtrees 1.7.12 | NGINX 1.14.0 | PHP 7.2.13-1 | MySQL 5.7.25
Ubuntu 16.04 LTS Running on a PC in My Basement
The administrator has disabled public write access.

webtrees 2.0: Radio-button Tree Prefs Not Saving 6 months 2 weeks ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10838
This sounds like a bug.

For 2.0, I am adding lots of "strict type checks".

PHP is a "loosely typed" language. Text can be used as numbers. Numbers can be used as true/false, etc.

Loose typing has some advantages, but is also a frequent source of error - and so PHP 7 introduces "strict types".

I am converting to strict types wherever possible, and this looks like one of those type mismatches.

It will be something like a text value from the database ("0" or "1") and a true/false value expected by the form controls.

I've just created an entry on the github issue tracker.

github.com/fisharebest/webtrees/issues/1890
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

webtrees 2.0: Radio-button Tree Prefs Not Saving 6 months 2 weeks ago #3

  • dbq-andersons
  • dbq-andersons's Avatar
  • Offline
  • New
  • Posts: 39
Thanks, Greg. Let me know if you need anything else from me.

Cheers,

Bill
Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
Webtrees 1.7.12 | NGINX 1.14.0 | PHP 7.2.13-1 | MySQL 5.7.25
Ubuntu 16.04 LTS Running on a PC in My Basement
The administrator has disabled public write access.

webtrees 2.0: Radio-button Tree Prefs Not Saving 6 months 2 weeks ago #4

  • dbq-andersons
  • dbq-andersons's Avatar
  • Offline
  • New
  • Posts: 39
UPDATE:

I just pulled down the latest build, toggled a few radio buttons on the tree settings page and things look good.

Thanks for the fix, Greg.

Cheers!
Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
Webtrees 1.7.12 | NGINX 1.14.0 | PHP 7.2.13-1 | MySQL 5.7.25
Ubuntu 16.04 LTS Running on a PC in My Basement
The administrator has disabled public write access.

[SOLVED] webtrees 2.0: Radio-button Tree Prefs Not Saving 6 months 2 weeks ago #5

  • dbq-andersons
  • dbq-andersons's Avatar
  • Offline
  • New
  • Posts: 39
Problem solved.
Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
Webtrees 1.7.12 | NGINX 1.14.0 | PHP 7.2.13-1 | MySQL 5.7.25
Ubuntu 16.04 LTS Running on a PC in My Basement
The administrator has disabled public write access.
Powered by Kunena Forum