WordPress.org

Ready to get started?Download WordPress

Forums

ShareYourCart
Error on line 204 (1 post)

  1. Mortrall
    Member
    Posted 1 year ago #

    When I'm trying to click on button I'm receiving this:
    Warning: DOMDocument::loadHTML() [domdocument.loadhtml]: Empty string supplied as input in /home/m/mortrall/wp-shop/public_html/wp-content/plugins/shareyourcart/class.shareyourcart-wp-woocommerce.php on line 204

    This is the 204-213 lines (if I'm deleting them - all works fine):

    if(($doc = DomDocument::loadHTML($image)) !== FALSE)
    		{
    			$imageTags =  $doc->getElementsByTagName('img');
    			if($imageTags->length >0 )
    				$src =  $imageTags->item(0)->getAttribute('src');
    
    			//replace image only if src has been set
    			if (!empty($src))
    				$image = $src;
    		}

    How to not delete them, but resolve the issue?

    http://wordpress.org/extend/plugins/shareyourcart/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.