Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
When I do the same on Joomla 3.10.11 everything works fine!
please use the forum for support
@SysAdminWVS What does a validation on https://validator.w3.org/feed/ say? Does that also find errors?
Hello richard67,
thank you for your hint.
At this time the site is an intranet site and has no connection to the internet.
I will create a nat to it and then test the feed on the validator.
Hello richard67,
I've just created access to the intranet site from the internet.
Here are the results of the feed validator
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
line 10, column 155: Self reference doesn't match document location [help]
... a4/index.php?format=feed&type=rss"/>
^
line 49, column 0: description should not contain object tag (4 occurrences) [help]
<guid isPermaLink="true">https://webwvs.wvs-basa.de/intranet/joomla4/inde ...
I think the problem is on the "self" link:
href="https://webwvs.xxxx.de/intranet/joomla4/intranet/joomla4/index.php?format=feed&type=rss"
intranet/joomla4/intranet/joomla4 -> this is duplicated!
Here is the complete atom tag
Joomla! - Open Source Content Management - Version 4.3.2
<atom:link rel="self" type="application/rss+xml" href="https://webwvs.xxx.de/intranet/joomla4/intranet/joomla4/index.php?format=feed&type=rss"/>
de-de
(I changed the domain name for security)
Hello again,
I try to get it work for 3 weeks now.
My application was originally designed to use the System.Xml.Linq class to read the rss feed.
string feedUrl = "https://feedurl of joomlal";
XDocument rssfeedxml;
XNamespace namespaceName = "http://www.w3.org/2005/Atom";
rssfeedxml = XDocument.Load(feedUrl);
If I run the application I get an Exception :
System.Xml.XmlException: Es sind mehrere Stammelemente vorhanden. Zeile 2, Position 2.
bei System.Xml.XmlTextReaderImpl.Throw(Exception e)
bei System.Xml.XmlTextReaderImpl.ParseDocumentContent()
bei System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
bei System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
bei System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
bei System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
So I tried to switch to using System.ServiceModel.Syndication class
XmlReaderSettings settings = new XmlReaderSettings();
settings.ConformanceLevel = ConformanceLevel.Fragment;
var reader = XmlReader.Create(feedUrl,settings);
var feed = SyndicationFeed.Load(reader);
if I run this code, I get also an Exception :
System.Xml.XmlException: Das Element mit dem Namen 'br' und dem Namespace '' ist kein zulässiges Feedformat.
bei System.ServiceModel.Syndication.SyndicationFeed.Load[TSyndicationFeed](XmlReader reader)
If I switchback the feedurl to joomla 3 everything works fine again on both classes.
I also tried different other feeds of the internet, working also fine with my .net code.
If I use the joomla 4 rss-link in FeedReader 3 the feed is loaded.
If I download the xml file using the rss-feed link and do a xml-analysis in notepad++ no problems are found.
That drives me crazy. What is the problem on this?
Why the joomla 3 xml-Code is working and the joomla 4 not?
In between I also updated to joomla 4.3.3 but the problem sill exists.
best regards
Hello,
I hope I coould find the problem between the xml code of Joomla 3.11.12 and 4.3.3.
I've downloaded the xml-Code and compared it with noptepad++. The only relevant diifference between the code is, that in the tag if there is <![CDATA> a line break than in 3.11.12 there is a in 4.3.3 there is only a .
May be that lets my code crushing?
Next I will try to load the xml code from file not from uri and will see if it works if i replace in 4.3.3 the with .
I hope someone can tell me, how to patch it in joomla, so I could test it directly with the syndication module.
best regards
Labels |
Added:
bug
|
Hello,
today I updated to Joomla 4.4 and the issue is still not solved. Due to security I need to update frrom joomla 3 to 4 but I can't as long as the problem is not fixed.
My question is, if there is anybody working to fix this problem, or if there is a workarround on this.
Please let me know how I can go ahead.
best regards
Hello,
I have updated to joomla 4.4.2 the code of my rss-client-app.
When I try to download the rss feed to string
using (WebClient client = new WebClient())
{
string xmlContent = client.DownloadString(feedUrl);
SyndicationFeed feed = SyndicationFeed.Load(System.Xml.XmlReader.Create(new System.IO.StringReader(xmlContent)));
.
.
.
}
I get this in the xmlContet var
"
\nDeprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\inetpub\wwwroot\intranet\joomla4\libraries\vendor\joomla\application\src\Web\WebClient.php on line 286
\n
\nDeprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\inetpub\wwwroot\intranet\joomla4\libraries\vendor\joomla\application\src\Web\WebClient.php on line 289
\n
\nDeprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\inetpub\wwwroot\intranet\joomla4\libraries\vendor\joomla\application\src\Web\WebClient.php on line 292
\n
\nDeprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\inetpub\wwwroot\intranet\joomla4\libraries\vendor\joomla\application\src\Web\WebClient.php on line 295
\n
\nDeprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\inetpub\wwwroot\intranet\joomla4\libraries\vendor\joomla\application\src\Web\WebClient.php on line 298
\n
\nDeprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\inetpub\wwwroot\intranet\joomla4\libraries\vendor\joomla\application\src\Web\WebClient.php on line 301
\n
\nDeprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\inetpub\wwwroot\intranet\joomla4\libraries\vendor\joomla\application\src\Web\WebClient.php on line 304
\n
\nDeprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\inetpub\wwwroot\intranet\joomla4\libraries\vendor\joomla\application\src\Web\WebClient.php on line 307
\n
\nDeprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\inetpub\wwwroot\intranet\joomla4\libraries\vendor\joomla\application\src\Web\WebClient.php on line 310
\n\n\n<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom\">\n\t
.
.
.
Thats why my rss app is not working. It seems to be a bug in Joomla?
Any suggestions welcome.
Best regards
Steffen
Thanks for your response. It seems as if you are using PHP 8.2? Can you check if you are sending a HTTP_USER_AGENT? Looking at the code, it seems as if that is empty on your system, which creates this error.
joomla-framework/application#121 fixes this issue.
Hello Quy,
I replaced the WebClient.php with the fixed Version
I run my application again and looked at the returned XML-String.
The problem is solved using the bug fix.
It is so sad to me, that it needs more tnan a half year to find the reason and get the solution.
great thanks and best regards
Bl0ckS1z3
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-01-18 18:24:10 |
Closed_By | ⇒ | alikon |
closing as fixed upstream
When I load the rss feed link (index.php?format=feed&type=rss) to a feed reader (like feedbro extension of firefox) with joomla version 4.3.2 I get and error "Invalid XML".
On my self-programmed XML-Reader I get an xml exception😄
28.06.2023 13:41:39 System.Xml.XmlException: Es sind mehrere Stammelemente vorhanden. Zeile 2, Position 2.
bei System.Xml.XmlTextReaderImpl.Throw(Exception e)
bei System.Xml.XmlTextReaderImpl.ParseDocumentContent()
bei System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
bei System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
bei System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
28.06.2023 13:42:09 private void ProcessFeed(object source, ElapsedEventArgs e) System.EventArgs
(There are more than one root node)
I need urgently a bug fix.
Best Regards
Steffen
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41080.