Title: plugin outputting broken code?
Last modified: August 30, 2016

---

# plugin outputting broken code?

 *  Resolved [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-outputting-broken-code/)
 * Hi,
 * I just installed your plugin and created a sidebar widget. I think it may be 
   outputting broken html, which is resulting in all other widgets which are lower
   in my sidebar getting displayed outside of the sidebar. Here’s the code that’s
   being output; as you can see, there is a superfluous div end-tag in your widget.(
   I fixed line throws and indentation to make the code easier to read, but otherwise
   it is exactly as it was output.) That div end-tag is “ending” the sidebar prematurely
   and throwing everything off.
 *     ```
       <div id="primary" class="aside main-aside">
       	<ul class="xoxo">
       		<li id="sb-easy-image-widget-2" class="widget-1 widget-first widget-odd sidebar-image-widget widgetcontainer widget-sb-easy-image">
       			<style type="text/css"># .gallery-caption { display: none !important; }</style>
       			<dl class='gallery-item'>
       				<dt class='gallery-icon landscape'>
       					<img width="285" height="222" src="http://ourdomain.org/wp-content/uploads/2015/07/sb-river.jpg" class="attachment-full" alt="sb-river" />
       				</dt>
       			</dl><br style="clear: both" />
       			</div>
       		</li>
       		<li id="black-studio-tinymce-2" class="widget-2 widget-last widget-even sponsors-widget widgetcontainer widget_black_studio_tinymce">
       			<div class="textwidget">
       				<h4>Sponsors</h4>
       				<p>Learn about our<br /><a href="/sponsorship-opportunities/">sponsorship opportunities</a>.</p>
       			</div>
       		</li>
       	</ul>
       </div>
       ```
   
 * [https://wordpress.org/plugins/easy-image-display/](https://wordpress.org/plugins/easy-image-display/)

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

 *  Thread Starter [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-outputting-broken-code/#post-6312502)
 * By the way, this happens both when I use a widget or when I paste a shortcode
   into a text widget.
 *  Thread Starter [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-outputting-broken-code/#post-6312505)
 * As a workaround, I can put an extra opening div tag into the text widget, and
   that ‘fixes’ the problem:
 *     ```
       <div>
       [sb_easy_image num='1' order="random" link="none" size="full" ids="585-590" captions="off"]
       ```
   
 *  Plugin Author [Shellbot](https://wordpress.org/support/users/shellbot/)
 * (@shellbot)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-outputting-broken-code/#post-6312580)
 * Hi, thanks for the report.
 * Rather than having an extra closing div tag, it looks like you’re actually missing
   the opening one with the gallery ID. I’m unable to reproduce this on a default
   install, which may mean it’s a conflict with something else you have running 
   on your site.
 * As a first step, please try deactivating all other plugins and switching to the
   default Twenty Fifteen theme. If the markup is now correct, you can reactivate
   everything one by one and let me know what exactly is causing the conflict.
 * If deactivating everything doesn’t fix the issue, I’ll need to look into this
   further. Any and all info you can give about your settings and site configuration
   would be helpful.
 *  Thread Starter [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-outputting-broken-code/#post-6312616)
 * Hi Shellbot,
 * Thanks for your response (and thanks for the plugin!) Yes, you are right that
   it must be a conflict with another plugin or my theme. I tried installing your
   plugin on a very clean sandbox site that I use for testing and did not get the
   problem there.
 * I’m not sure whether or not I’ll have the time to do a proper test for you. I
   tried disabling the several plugins that were my first best guesses as the ones
   that might cause the conflict but I was wrong.
 * Right now I’ll need to stick with my work-around. If I can make time to troubleshoot
   further, I’ll let you know. Thanks again!
 *  Plugin Author [Shellbot](https://wordpress.org/support/users/shellbot/)
 * (@shellbot)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-outputting-broken-code/#post-6312618)
 * No worries. I’ll mark this one resolved for now since you have a functioning 
   workaround, but if you do figure out which other plugin was conflicting let me
   know and I’ll investigate.

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

The topic ‘plugin outputting broken code?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-image-display_f8ee8f.svg)
 * [Easy Image Display](https://wordpress.org/plugins/easy-image-display/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-image-display/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-image-display/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-image-display/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-image-display/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-image-display/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Shellbot](https://wordpress.org/support/users/shellbot/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-outputting-broken-code/#post-6312618)
 * Status: resolved