WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme Customizer Problem (8 posts)

  1. Arie Putranto
    Member
    Posted 2 years ago #

    I'm currently developing theme and was only using Chrome to test everything. Everything went well so then I test it on other browser. It was great, it works well on every modern browser but then something strange happened.

    I'm testing it on customizer. Chrome load the theme perfectly and everything's good. Opera and Firefox shows nothing but blank screen.

    I have checked on Butterfly and Firebug, and it shows no error. I have disabled all styles and scripts but still Opera and Firefox failed to load my theme on Customizer.

    I think it strange because Chrome does showing it?

    What possibly be wrong? Can anyone tell?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

  3. Arie Putranto
    Member
    Posted 1 year ago #

    I've always turn debug on and enable error logging. None of them shows any error even PHP Notice. As I said, it works perfectly on Chrome. No error on Chrome, Firebug, Butterfly, Apache log whatsoever.

    As I said, it works perfectly on Chrome, and I'm able to load the theme via customizer on Chrome, and only on Chrome.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    It could be a javascript issue. FF in particular tends to hang onto js errors like grim death - sometimes needing a manual kill to force it to let go even after it's been shut down.

  5. Arie Putranto
    Member
    Posted 1 year ago #

    I don't know. I have disables all scripts but still nothing.
    Just out of curiosity, FF indeed returns WARNING:

    Use of attributes' specified attribute is deprecated. It always returns true.

    on jquery.js line 2. But I am aware that it shouldn't be the problem.

  6. Arie Putranto
    Member
    Posted 1 year ago #

    I check on the AJAX response results (XHR) and it turns out there's no WP_CUSTOMIZER_SIGNATURE line at the end of it.

    It turns out, after I manually add a WP_CUSTOMIZER_SIGNATURE line after </html> on my footer.php template file, customizer loads my theme perfectly.

    Now I'm trying to find out how is that WP doesn't add that line on my theme.

    Just FYI, that line is exists in Chrome

    Wierd ...

  7. Arie Putranto
    Member
    Posted 1 year ago #

    It works fine after I:

    remove_filter( 'shutdown', 'wp_ob_end_flush_all', '1' );
    add_filter( 'shutdown', 'wp_ob_end_flush_all', '1001' );
  8. Arie Putranto
    Member
    Posted 1 year ago #

    So I mark this as resolved. I will stick to the workaround until further investigation on what cause the problem.

    Thx

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags