Title: Warning: DOMDocument::loadHTML(): Empty string supplied as input
Last modified: September 22, 2018

---

# Warning: DOMDocument::loadHTML(): Empty string supplied as input

 *  Resolved [ianstewart](https://wordpress.org/support/users/ianstewart/)
 * (@ianstewart)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/warning-domdocumentloadhtml-empty-string-supplied-as-input-2/)
 * I have created my first SA Slider on the homepage of this site: ekhaya.org.uk(
   NOT ekhaya.org) and am getting the following message appear multiple times at
   the top of the page:
 * Warning: DOMDocument::loadHTML(): Empty string supplied as input in /www1/f9d/
   www.ekhaya.org.uk/web/wp-content/plugins/slide-anything/php/slide-anything-frontend.
   php on line 680
 * The site is using the X-theme and page editing is via Cornerstone.
 * The slider itself appears to be functioning correctly, hoe can I eliminate this
   warning message?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-domdocumentloadhtml-empty-string-supplied-as-input-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [ianstewart](https://wordpress.org/support/users/ianstewart/)
 * (@ianstewart)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/warning-domdocumentloadhtml-empty-string-supplied-as-input-2/#post-10713665)
 * I have been to workaround the problem. I identified that the slides with no “
   foreground” content and only a “background” image are throwing the error. By 
   adding a spurious period into the body of the slider page, and coloured the same
   as the background, the error messages are avoided.
 * Is there a better way to have an image fill as much of the window as possible?
   I found that using the ‘Add Media’ option does not render images as large as 
   adding them to the background.
 * Ian
 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/warning-domdocumentloadhtml-empty-string-supplied-as-input-2/#post-10715494)
 * Ok, this error is occurring because you have the “Remove JavaScript Content” 
   checkbox ticked.
 * This new “Remove JavaScript Content” feature strips out any JavaScript from your
   slide content, but is unfortunately throwing out this error if you have no slide
   content to check in the first place.
 * I will implement a fix for this shortly, but in the meantime, just un-check this
   box.
 *  Thread Starter [ianstewart](https://wordpress.org/support/users/ianstewart/)
 * (@ianstewart)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/warning-domdocumentloadhtml-empty-string-supplied-as-input-2/#post-10719043)
 * Thank you so much for your prompt reply Simon, much appreciated.
 * Thanks too for the workround, I discovered that any kind of HTML in the page 
   content overcomes the problem too, even <p></p>
 * I look forward to the proper solution, but the pressure is off from my client.

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

The topic ‘Warning: DOMDocument::loadHTML(): Empty string supplied as input’ is 
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slide-anything.svg)
 * [Slide Anything - Responsive Content / HTML Slider and Carousel](https://wordpress.org/plugins/slide-anything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slide-anything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slide-anything/)
 * [Active Topics](https://wordpress.org/support/plugin/slide-anything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slide-anything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slide-anything/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ianstewart](https://wordpress.org/support/users/ianstewart/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/warning-domdocumentloadhtml-empty-string-supplied-as-input-2/#post-10719043)
 * Status: resolved