Title: [Plugin: WordPress.com Popular Posts] container closing div missing when no top posts fetched
Last modified: August 19, 2016

---

# [Plugin: WordPress.com Popular Posts] container closing div missing when no top posts fetched

 *  Resolved [sebmeric](https://wordpress.org/support/users/sebmeric/)
 * (@sebmeric)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-popular-posts-container-closing-div-missing-when-no-top-posts-fetched/)
 * hi,
 * it seems the closing div is missing when you have the “error: no top-posts fetched”
   message displayed.
 * i added `echo "</div>\n";` on line 230 juste before the `return;` and it’s fine
   now.
 * thanx.
 * [http://wordpress.org/extend/plugins/wordpresscom-popular-posts/](http://wordpress.org/extend/plugins/wordpresscom-popular-posts/)

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

 *  Plugin Author [frasten](https://wordpress.org/support/users/frasten/)
 * (@frasten)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-popular-posts-container-closing-div-missing-when-no-top-posts-fetched/#post-1992124)
 * Thank you for reporting. I’d replace `echo "</div>"` with `echo $after_widget;`.
   
   Can you test if this works for you, so I can commit the fix? Thank you!
 *  Thread Starter [sebmeric](https://wordpress.org/support/users/sebmeric/)
 * (@sebmeric)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-popular-posts-container-closing-div-missing-when-no-top-posts-fetched/#post-1992185)
 * oups 🙂 you’re right, that’s the right thing to do and, of course, it works !
 * thanx
 *  Plugin Author [frasten](https://wordpress.org/support/users/frasten/)
 * (@frasten)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-popular-posts-container-closing-div-missing-when-no-top-posts-fetched/#post-1992197)
 * Thank you for reporting, I’ve just fixed this in the trunk, you’ll see it in 
   the next version.

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

The topic ‘[Plugin: WordPress.com Popular Posts] container closing div missing when
no top posts fetched’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpresscom-popular-posts_b3b7b7.
   svg)
 * [WordPress.com Popular Posts](https://wordpress.org/plugins/wordpresscom-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpresscom-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpresscom-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpresscom-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpresscom-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpresscom-popular-posts/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [frasten](https://wordpress.org/support/users/frasten/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-popular-posts-container-closing-div-missing-when-no-top-posts-fetched/#post-1992197)
 * Status: resolved