Support » Plugin: ShareYourCart » Error on line 204

  • 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/

  • The topic ‘Error on line 204’ is closed to new replies.