Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119838

cbogdan on "[Plugin: WP Mobile Detector] PHP Warning: DOMDocument::loadHTML()"

$
0
0

I discover an error in my error_log file. This is the message:

[14-Oct-2012 13:00:33] PHP Warning:  DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: htmlParseStartTag: invalid element name in Entity, line: 125 in /home/jorjette/public_html/egofelix.com/wp-content/plugins/wp-mobile-detector/functions.php on line 283
[14-Oct-2012 13:00:33] PHP Warning:  DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: Unexpected end tag : strong in Entity, line: 125 in /home/jorjette/public_html/egofelix.com/wp-content/plugins/wp-mobile-detector/functions.php on line 283
[14-Oct-2012 13:00:33] PHP Warning:  DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: Unexpected end tag : p in Entity, line: 216 in /home/jorjette/public_html/egofelix.com/wp-content/plugins/wp-mobile-detector/functions.php on line 283
[14-Oct-2012 13:00:47] PHP Warning:  DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: Opening and ending tag mismatch: div and td in Entity, line: 100 in /home/jorjette/public_html/egofelix.com/wp-content/plugins/wp-mobile-detector/functions.php on line 283
[14-Oct-2012 13:00:47] PHP Warning:  DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: Unexpected end tag : p in Entity, line: 104 in /home/jorjette/public_html/egofelix.com/wp-content/plugins/wp-mobile-detector/functions.php on line 283

Can someone fix this problem? in the file the section with the problem is:

if (class_exists('DOMDocument')) {
		//Resize the images on the page
		$dom = new DOMDocument();
		$dom->loadHTML($html);

i think its about resizing the images or something like that. In one week my error_log become more than 20Mb. Please fix the code man!

http://wordpress.org/extend/plugins/wp-mobile-detector/


Viewing all articles
Browse latest Browse all 119838

Trending Articles