This Help forum is for issues relates to the latest release (1.6.x). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here.
Before asking for help please read "How to request help" by clicking on that tab above here.
Question edituser.php error with <default theme>
- moeller
- Topic Author
- Visitor
9 years 5 months ago #1
by moeller
edituser.php error with <default theme> was created by moeller
On the page my account: /webtrees/edituser.php
The user has a special Theme as his default theme (e.g. "clouds").
The user wants to change his Theme back to the default theme and selects the option “<default theme”> When saving this changes the following error occurs:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'setting_value' cannot be null' in /httpd/www.sample-domain.com/htdocs/webtrees/library/WT/DBStatement.php:63 Stack trace: #0 /httpd/www.sample-domain.com/htdocs/webtrees/library/WT/DBStatement.php(63): PDOStatement->execute(Array) #1 /httpd/www.sample-domain.com/htdocs/webtrees/library/WT/User.php(411): WT_DBStatement->execute(Array) #2 /httpd/www.sample-domain.com/htdocs/webtrees/edituser.php(80): WT\User->setPreference('theme', NULL) #3 {main} thrown in /httpd/www.sample-domain.com/htdocs/webtrees/library/WT/DBStatement.php on line 63
Setting the corresponding value directly in the database to “” is working.
The user has a special Theme as his default theme (e.g. "clouds").
The user wants to change his Theme back to the default theme and selects the option “<default theme”> When saving this changes the following error occurs:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'setting_value' cannot be null' in /httpd/www.sample-domain.com/htdocs/webtrees/library/WT/DBStatement.php:63 Stack trace: #0 /httpd/www.sample-domain.com/htdocs/webtrees/library/WT/DBStatement.php(63): PDOStatement->execute(Array) #1 /httpd/www.sample-domain.com/htdocs/webtrees/library/WT/User.php(411): WT_DBStatement->execute(Array) #2 /httpd/www.sample-domain.com/htdocs/webtrees/edituser.php(80): WT\User->setPreference('theme', NULL) #3 {main} thrown in /httpd/www.sample-domain.com/htdocs/webtrees/library/WT/DBStatement.php on line 63
Setting the corresponding value directly in the database to “” is working.
Please Log in or Create an account to join the conversation.
- Matt
- Offline
- New Member
- Software Developer. BCS
Less
More
9 years 5 months ago #2
by Matt
Git Trunk on Linux • webtrees-Facebook developer
Replied by Matt on topic edituser.php error with <default theme>
I think this will be fixed by my change at
github.com/fisharebest/webtrees/pull/278
Git Trunk on Linux • webtrees-Facebook developer
Please Log in or Create an account to join the conversation.
- Shemwell
- Offline
- Junior Member
9 years 5 months ago #3
by Shemwell
Barry
Replied by Shemwell on topic edituser.php error with <default theme>
The “<default theme”> can be changed in Administration - User.
Barry
Please Log in or Create an account to join the conversation.