Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Forum: Fixing WordPress
    In reply to: JQuery Not Working
    Thread Starter sterfry68

    (@sterfry68)

    That was it?! Wow, amazing how something that simple can trip you up sometimes! Guess I was glossing over the instructions I was reading.

    You rock, Man! Thanks.

    Forum: Fixing WordPress
    In reply to: JQuery Not Working
    Thread Starter sterfry68

    (@sterfry68)

    oops was referencing localhost, not communityclear.com. fixed that but still no bones. Not a problem with .htaccess, but I know more now. I’ll keep looking and post what I find. In the mean time let me know if you think of anything. Thanks for your help, Andrew.

    Forum: Fixing WordPress
    In reply to: JQuery Not Working
    Thread Starter sterfry68

    (@sterfry68)

    Ah, must be blocking it somehow. I’ll check my .htaccess file.

    Forum: Fixing WordPress
    In reply to: JQuery Not Working
    Thread Starter sterfry68

    (@sterfry68)

    OK. I’ll check Firebug out right now.

    Here’s an example of the non-working jquery:
    http://communityclear.com/deleteme/test_ajax.html

    Here’s one that does work.
    http://communityclear.com/deleteme/test_ajax_works.html

    The only difference between the two is that in the first one I’m referencing the local JQuery file, and in the second one I’m referencing the one on the CDN (also changed the document ready call in my JS).

    Forum: Fixing WordPress
    In reply to: JQuery Not Working
    Thread Starter sterfry68

    (@sterfry68)

    Yes, let me move it to a public server so you can see what I’m talking about.

    Are you talking about firebug or something like that? I’m not too familiar with that, but I’ll give it a go.

    Thread Starter sterfry68

    (@sterfry68)

    resolved

    Thread Starter sterfry68

    (@sterfry68)

    FYI for those who might also run into this problem:

    Looks like this is NOT a bug but expected behavior. PHP’s date() function will always return UTC. Should use wordpresses current_time() function instead. Did not know!

    You can read more here:

    http://core.trac.ww.wp.xz.cn/ticket/23384

    Thread Starter sterfry68

    (@sterfry68)

    found it

    http://codex.ww.wp.xz.cn/Reporting_Bugs

    I’m going to report this as a bug

    Thread Starter sterfry68

    (@sterfry68)

    Yes, I’m sure. That’s what date_default_timezone_set() does. It changes your application’s timezone from the default set on your server. I checked and both my php.ini file and .htaccess file are set to the right timezone.

    This must be a bug if it’s returning UTC for you too.

    Anyone know where post bugs?

    Thread Starter sterfry68

    (@sterfry68)

    If you run this: <?php echo date_default_timezone_get(); ?> what do you see? Do you see the timezone that you set in dashboard? Or do you see UTC? No matter what I set in the dashboard, the above code returns UTC for me. The cuprit for me is the line that you identified in your latest post.

    I’m not trying to resolve an issue. I’m trying to identify what might be a bug in the wp-settings file.

    Maybe this isn’t the place to report potential bugs?

    Thread Starter sterfry68

    (@sterfry68)

    FYI. As a temporary solution I’ve created this function. I call it every time I need to use my local time (America/Denver).

    function zzz_reset_timezone(){
    /*the core seems to be changing the timezone to UTC: (wp-settings.php line
    * 36) and never changig it back; change it to what it’s set to in the
    * options table as a temporary fix.
    */
    $current_offset = get_option(‘gmt_offset’);
    $tzstring = get_option(‘timezone_string’);

    if ( false !== strpos($tzstring,’Etc/GMT’) )
    $tzstring = ”;

    if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
    if ( 0 == $current_offset )
    $tzstring = ‘UTC+0’;
    elseif ($current_offset < 0)
    $tzstring = ‘UTC’ . $current_offset;
    else
    $tzstring = ‘UTC+’ . $current_offset;
    }

    date_default_timezone_set( $tzstring );
    //end code for temporary fix
    }

    Thread Starter sterfry68

    (@sterfry68)

    Hi Peter,

    Thanks for the response. However that’s not my issue. I’m wondering if this is a bug in the core. That particular line in the wp-settings.php file seems to be changing the timezone to UTC independent of what you set it to in the dashboard, and it never changes it back. Anyone else seeing this?

    I see the same issue. I believe I found the problem. It’s not that the text is white on a white bg. It’s that the text isn’t there at all. If you look in your “source” for your html page you’ll see that the text between the <label> tags is “<? _e(‘Remember me’); ?>” This means that the server didn’t recognize the shorthand opening “<?” php tag. So you can fix it if you go to line 112 in your forms.php file in the s8-custom-login-and-registration/inc/forms.php file and modify it to read:

    <label for=”remember-me”><?php _e(‘Remember me’); ?></label>

    Worked for me. Of course any changes you make here will be overwritten each time there’s an update. Hopefully they will fix this problem in the next udpate.

Viewing 13 replies - 1 through 13 (of 13 total)