[wp-trac] [WordPress Trac] #10406: wp_timezone_choice in wp-admin/options-general.php breaks page on php 5.3

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 14 14:07:46 UTC 2009


#10406: wp_timezone_choice in wp-admin/options-general.php breaks page on php 5.3
----------------------------+-----------------------------------------------
 Reporter:  demonicpagan    |       Owner:                                                
     Type:  defect (bug)    |      Status:  new                                           
 Priority:  high            |   Milestone:  Unassigned                                    
Component:  Administration  |     Version:  2.8.1                                         
 Severity:  major           |    Keywords:  timezone, wp_timezone_choice, options, general
----------------------------+-----------------------------------------------
 After upgrading the php on my server to php 5.3, I noticed my General
 Settings in the admin page never displayed and broke the page.


 http://temp.stelth2000inc.com/screen/generalsettings.png

 Further digging through the code after people mentioning in the support
 forums about the timezone, I initially removed that section of the page
 (starting on line 97). Page loaded fine (minus the timezone section due to
 removal).

 I evaluated the if statement (if ( !wp_timezone_supported() ) :) to see
 what was returned. It returned false leading me to the else statement.

 Just placing the code within the else statement where the timezone code
 originated and reuploading to my server confirmed it was this section of
 code that was causing some problems.

 I didn't have to dissect much further as I found out that by slowly adding
 things into the table data section, starting with the select box, that
 this bit was causing problems.

 Removing the <select id="timezone_string" name="timezone_string"> &
 </select> from around the php call and just pasting that itself brought me
 back to the original issue, page not displaying properly.

 I am unable to dissect any further, but I'm gathering that somewhere
 within the wp_timezone_choice function, something is not working properly.

 $tzstring returns America/Chicago on my platform

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10406>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list