WordPress.org

Ready to get started?Download WordPress

Forums

Theme's widgets closes automatically after dragged in sidebar (4 posts)

  1. Serpentsoft
    Member
    Posted 7 months ago #

    I'm developing a new WordPress theme and suddenly the widgets closed automatically after drag and drop in the sidebar, i solved this problem by putting (ob_start();) at the beginning of (functions.php) and (ob_end_clean();) at the end of the file.

    But unfortunately this problem appears again and i googled it but i didn't found solution (all developers talking about deactivate plugins and reactivate it), Actually i have no plugins unless default (Akismet and Hello Dolly) and both deactivated.

    thanks for help.

  2. Timothy Jacobs
    Member
    Posted 7 months ago #

    ob_start and the like are suppressing the errors in your code. Remove those lines and then in your wp-config.php file change the WP_DEBUG constant to TRUE. That should then give you some clue where your errors are coming from.

  3. Serpentsoft
    Member
    Posted 7 months ago #

    thank you, there's no bugs and i disabled all functions included too, But still not working.

  4. organdonor47
    Member
    Posted 7 months ago #

    i had this same issue. resolved by removing a close php tag at the end of functions.php - not sure why that works to be honest as i've not dug any deeper, but hope it helps :)

Reply

You must log in to post.

About this Topic

Tags