Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000355Friendicacontactspublic2012-03-31 01:592012-06-11 02:06
Reporterdawnbreak 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusnewResolutionopen 
PlatformwebOSlinux/unixOS Versionany
Product Versiondev 
Fixed in Version 
Summary0000355: Error adding new RSS-feed contact
DescriptionI wanted to add the RSS feed from http://www.mdg.no/ [^] and got an empty page as result.

In the Apache error log I found this:
[Sat Mar 31 10:51:05 2012] [error] [client [IP]] PHP Warning: DOMDocument::createElementNS(): Namespace Error in /srv/[path]/friendica/library/HTML5/TreeBuilder.php on line 3040, referer: http://[url]/contacts [^]
[Sat Mar 31 10:51:05 2012] [error] [client [IP]] PHP Fatal error: Call to a member function hasAttribute() on a non-object in /srv/[path]/friendica/library/HTML5/TreeBuilder.php on line 3050, referer: http://[url]/contacts [^]
Steps To ReproduceGo to contacts page and add http://www.mdg.no/ [^] as new contact.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000678)
faya (reporter)
2012-06-11 02:00

I could reproduce the same bug with this page : lesjoiesducode.tumblr.com
and i found that the problem is coming from the social tags like <fb:like> or <g:plusone>.

I solved it in a very dirty way, by adding

if(substr($token['name'],0,3)=="fb:" || $token['name']=='g:plusone')
    return false;

at line 3040 in library/HTML5/TreeBuilder.php so just before the guilty function.

- Issue History
Date Modified Username Field Change
2012-03-31 01:59 dawnbreak New Issue
2012-06-11 02:00 faya Note Added: 0000678
2012-06-11 02:06 faya Issue Monitored: faya


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker