[wp-trac] [WordPress Trac] #47166: When option gmt_offset is blank, wordpress will give a 500 error
WordPress Trac
noreply at wordpress.org
Tue May 7 11:05:16 UTC 2019
#47166: When option gmt_offset is blank, wordpress will give a 500 error
--------------------------------+-----------------------------
Reporter: silvanthus | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 5.1.1
Severity: minor | Keywords:
Focuses: |
--------------------------------+-----------------------------
If for any reason the gmt_offset option is "", wordpress will give a type
error:
A non-numeric value encountered in /wp-includes/functions.php on line 70
and 162
This can then only be solved by editing the database or reinstalling
wordpress as the settings page cannot be loaded.
If a default value would be set (e.g. 0), the user can fix the problem in
the settings page.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47166>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list