Title: Warning: DOMDocument::loadHTML(): Empty string supplied as input
Last modified: April 15, 2019

---

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

 *  [Andrews32](https://wordpress.org/support/users/andrews32/)
 * (@andrews32)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/warning-domdocumentloadhtml-empty-string-supplied-as-input-3/)
 * A very good (probably, the best) slider plugin for WP! But after I clicked “Enable‘
   Lazy Load’ Images”, an error occurred on the page with slider:
 * Warning: DOMDocument::loadHTML(): Empty string supplied as input in /home/u/user/
   site.com/public_html/wp-content/plugins/slide-anything/php/slide-anything-frontend.
   php on line 1023
 * Warning: DOMDocument::loadHTML(): Empty string supplied as input in /home/u/user/
   site.com/public_html/wp-content/plugins/slide-anything/php/slide-anything-frontend.
   php on line 1023
 * Warning: DOMDocument::loadHTML(): Empty string supplied as input in /home/u/user/
   site.com/public_html/wp-content/plugins/slide-anything/php/slide-anything-frontend.
   php on line 1023
 * Warning: DOMDocument::loadHTML(): Empty string supplied as input in /home/u/user/
   site.com/public_html/wp-content/plugins/slide-anything/php/slide-anything-frontend.
   php on line 1023
 * (the slider have 4 images, to there are 4 errors). Also, no errors on the Chrome
   console.
 * 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-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/warning-domdocumentloadhtml-empty-string-supplied-as-input-3/#post-11428457)
 * Hi, I’m struggling to replicate this issue on my test site.
 * I have a page that I used to test the ‘Lazy Load’ functionality:
    [https://edgewebpages.com/test-page/](https://edgewebpages.com/test-page/)(
   this slider has the ‘Enable Lazy Load Images’ option selected)
 * I enabled ‘Debug Display’ in my ‘wp-config.php’ file:
 *     ```
       define('WP_DEBUG', true);
       define('WP_DEBUG_DISPLAY', true);
       ```
   
 * I got no errors displayed.
 * I then thought that maybe this error might occur with slides that contained no
   images, so I added a slide containing only text. Still no errors.
 * The line you are getting errors on is the PHP function ‘loadHTML’:
    `$dom->loadHTML(
   mb_convert_encoding($slide_content, 'HTML-ENTITIES', 'UTF-8'));` which loads 
   a provided string into a previously defined DOM object.
 * Maybe this PHP function doesn’t work properly on certain versions of PHP. I have
   PHP version 5.6 running on my hosting – what version of PHP is your host running?
 *  Thread Starter [Andrews32](https://wordpress.org/support/users/andrews32/)
 * (@andrews32)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/warning-domdocumentloadhtml-empty-string-supplied-as-input-3/#post-11428804)
 * Hi, thank you for fast & detailed reply!
    My website runs on PHP 5.6 too + https(
   SSL).
 * After reading your reply I enabled “Other Settings ==> DOMContentLoaded event:”,
   but the error still appears.
 * Every slide is an image (as a slide background), and no content in the slides`
   visual editor.
 * The page with slider is in the first post (under construction)

Viewing 2 replies - 1 through 2 (of 2 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Andrews32](https://wordpress.org/support/users/andrews32/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/warning-domdocumentloadhtml-empty-string-supplied-as-input-3/#post-11428804)
 * Status: not resolved